NEW YORK (TheStreet) -- Microsoft (MSFT) led the S&P 500 into all-time-high territory on Friday after it beat analyst expectations on earnings. Shares were surging 6.4% to $35.88 in afternoon trading. The S&P was gained 0.3% to 1,756.82 to extend its 2013 advance to 24%.
Seattle-based Microsoft reported first-quarter earnings of 62 cents a share, over 53 cents a share in the year-ago quarter. Revenue was 16% higher to $18.53 billion.
Analysts surveyed by Thomson Reuters had anticipated earnings of 54 cents a share on $17.79 billion in revenue. Expectations for the quarter had been conservative as investors dealt with uncertainty over management's succession plan and an expensive acquisition of Nokia's mobile arm.
The main source of growth, Microsoft's commercial segment -- which houses Office software licenses and enterprise-level sales -- posted a 10% year-on-year revenue increase to total $11.2 billion. Within the segment, commercial cloud revenue grew 103%. The Devices and Consumer segment grew 4% to $7.46 billion.
"We saw strong focus across our teams, generating record first-quarter revenue even as we navigate a fundamental business transition. Our enterprise renewals were very healthy and our devices and consumer business continued to improve," said CFO Amy Hood in a statement.
For the second quarter, the company anticipates revenue between $23.1 billion to $24.1 billion, more than analysts' prediction of $22.9 billion. In the Devices and Consumer segment, management expects revenue of $5.2 billion to $5.4 billion. Hardware sales are expected to climb 35% to 45%, boosted by the expanded Surface line and Xbox One launch.