The year is nearing its end, and now is a good opportunity to look at what happened throughout the year to the stocks you follow. If you know the important things a company achieved, as well as any challenges it failed to overcome, then you can make a better decision about whether it deserves a spot in your portfolio.

Today, I'll look at Hewlett-Packard (NYSE:HPQ). As a member of the blue-chip Dow Jones Industrials (DJINDICES:^DJI), the tech company has a long history of delivering computers, printers, and other computer equipment to consumers. But over the past several years, the revolving door to the executive suite has left HP in a terrible position to deal with changing trends in what consumers want from technology. Below, you'll find more on what moved shares of Hewlett-Packard in 2012.

Stats on Hewlett-Packard

Year-to-Date Stock Return


Market Cap

$27.2 billion

1-Year Revenue Growth


Net Loss, Trailing 12 Months

($12.65 billion)

Dividend Yield


CAPS Rating


Source: S&P Capital IQ.

Why did Hewlett-Packard plunge this year?
HP has had a terrible year, as its past failures have finally come home to roost. For years, the company adopted the same strategy as rival Dell (UNKNOWN:UNKNOWN) by focusing on the PC market, and for a long time, that was a winning game-plan. But as the shift to mobile devices like smartphones and tablets has evolved, HP has found itself scrambling to survive as the PC market declines.

Unfortunately, CEO Meg Whitman has inherited a mess, and she has admitted that she'll need a lot of time to right the ship. With masses of workers are laid off in an effort to cut costs, employee morale isn't on Whitman's side. Moreover, ideas like developing an HP smartphone seem destined to fail from the start, given the already huge competition in the space and the fact that Apple (NASDAQ:AAPL) and rivals like Samsung using Google's Android operating system already have a commanding presence within the industry.

HP's crowning failure, though, came just last month when the company said it would have to take $8.8 billion in write-offs from its purchase of information technology company Autonomy. Allegations of serious accounting improprieties by Autonomy have led to an ongoing debate between HP and former leaders of Autonomy, but the fact remains that the company remains mired in scandal and can't take quick action to recover.

HP's best hope is to emulate peer IBM (NYSE:IBM) by transforming itself into a better-diversified information technology business. That won't happen overnight, as this year's performance shows, but if it happens eventually, it could pull HP back up from its downward spiral.

Click here to add Hewlett-Packard to My Watchlist, which can find all of our Foolish analysis on it and all your other stocks.

Fool contributor Dan Caplinger owns shares of Apple. The Motley Fool owns shares of Apple, Google, and IBM. Motley Fool newsletter services recommend Apple, Google, and IBM. Try any of our Foolish newsletter services free for 30 days. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.