Eli Lilly (LLY -1.00%) made the best of bad news in the fourth quarter of 2012. Although revenue and earnings fell from the prior year, the company beat analyst expectations on both fronts. Shares were up nearly 3% in early trading today.

By the numbers
For the full year, revenue fell by 7% to $22.6 billion from 2011. Revenue for fourth quarter was $5.96 billion, which was down 1% year-on-year.  However, that amount beat average analyst expectations of $5.81 billion.

Earnings per share for all of 2012 came in at $3.66, a drop of 6% compared to 2011. For the fourth quarter, Lilly earned $0.74 per share, 4% lower than the prior year. Excluding special items, earnings per share for the fourth quarter were $0.85. While that number reflects a 2% decline from 2011, it topped average analyst expectations of $0.78 per share.

Lilly upped its earnings guidance for full-year 2013 from $4.03 to $4.18 per share to $4.10 to $4.25 per share. Non-GAAP earnings guidance was also raised from $3.75 to $3.90 per share to $3.82 to $3.97 per share. Both GAAP and non-GAAP earnings guidance increases were due to the estimated benefit from a one-time impact associated with the R&D tax credit in the American Taxpayer Relief Act of 2012.  

Behind the numbers
The reason for Lilly's falling revenue and earnings can be summed up in one word: Zyprexa. Sales of the schizophrenia drug plunged by $2.9 billion in 2012 as it lost market share to generics. 

Lilly's good news from both fourth quarter and the full year were that other drugs in its portfolio saw strong growth, which helped to mitigate some of Zyprexa's decline. Sales for antidepressant drug Cymbalta jumped by 20% to nearly $833 million in 2012. Forteo, which is used in the treatment of osteoporosis, saw sales grow by $201 million, a 21% increase. Heart drug Effient's sales shot up at the fastest rate, with its 51% growth reflecting nearly $155 million additional revenue in 2012.

Animal Health provided the other significant boost to revenue. Sales for the business unit increased by nearly $358 billion, a 21% jump over 2011. Overall, though, the growth from animal health and the aforementioned drugs couldn't overcome the huge drop-off from Zyprexa and lesser sales declines from Humulin and Evista. 

Looking ahead
The future for Lilly presents yet another good news/bad news picture. On the positive side, cancer drug Erbitux, which the company developed with Bristol-Myers Squibb (BMY -8.51%), continues to gain regulatory approvals across the world. Lilly also received European approval recently with its partner Boehringer Ingelheim for diabetes drug Trajenta.

Several drugs far along in Lilly's pipeline show potential. Phase 3 results were positive for ramucirumab in the second-line treatment of gastric cancer. Lilly is likely to submit for regulatory approval for the drug in the coming months. The company could also file for approval for other drugs in 2013, including diabetes drugs dulaglutide and empagliflozin. Rheumatoid arthritis drug baricitinib, licensed from Incyte (INCY -1.08%), will be in phase 3 this year and could prove to be a winner down the road for both companies.

However, there have been some bumps in the road for Lilly with late-stage pipeline products. Potential Alzheimer's disease drug solanezumab failed to meet its primary endpoint in a phase 3 trial. Lilly is pressing on with another phase 3 study of the drug. Also, Bristol is backing out of its collaboration on necitumumab, which is in a phase 3 study for squamous non-small-cell lung cancer.

The worst news, though, is that Lilly appears destined to repeat its Zyprexa experience with other big revenue-generating drugs. Cymbalta, the company's top product with nearly $5 billion in 2012 sales, goes off patent later this year. So does Humalog, which accounted for nearly $2.4 billion in sales last year. Evista, another $1 billion per year drug, loses patent protection next year.

These challenges won't present big headaches for Lilly in 2013. Actually, the year could turn out to be a pretty good one for the company if Cymbalta and animal health continue their winning ways. Shareholders might also be pleased, especially considering that the company plans to complete a $1.5 billion share buyback this year. Lilly bought back $400 million of shares under this program in 2012.

Beyond this year presents a different story. Unless some of Lilly's newer products really experience turbocharged sales, the numbers don't look promising. Lilly made the best of bad news from 2012 and could pull off a repeat performance this year. Doing so going forward won't be nearly as easy.