Investors shrugged off disappointing readings on the job market and euro-zone economic confidence, sending the Dow Jones Industrial Average more than 100 points higher for the third time this month.
The benchmark rose 113.90, or 0.9%, to 13204.62, gaining ground after better-than-expected housing data Thursday morning and rising further in the afternoon for its third-straight increase.
The Standard & Poor's 500-stock increase jumped 9.29 points or 0.7%, to 1399.98, after touching the round-numbered 1400 value in intraday trading for the first time in nearly three weeks. Telecommunications and consumer discretionary led gains in eight of the S&P 500's 10 sectors. The Nasdaq Composite added 20.98, or 0.7%, to 3050.61.
"You have strong housing data--which really bodes well for the American consumer--offset by global macro headwinds," said Seth Setrakian, co-head of U.S. equities at First New York Securities. "What people are trying to do is find the best domestic-centric companies to invest in."
Homebuilder PulteGroup climbed 10%, the most since October, after reporting its first quarter loss was slimmer than a year earlier. Software maker Citrix Systems jumped 12% after raising its 2012 profit forecast and reporting better-than-expected earnings.
Meanwhile, Exxon Mobil slid 0.9% and United Parcel Service, considered a barometer of global trade because of the breadth of its air and truck delivery operations, retreated 1.8% after both reported profits that missed analysts' expectations.
The number of U.S. home buyers who signed contracts to purchase previously owned homes rose sharply more than expected in March to the highest level in nearly two years.
The National Association of Realtors said its seasonally adjusted index for pending sales of existing homes jumped 4.1% from a month earlier to 101.4. Economists expected a 1.3% increase, according to a Dow Jones Newswires survey.
"Home sales being up that 4%, that's a very big positive, and it shows what the prior gains in jobs and consumer confidence have provided," said Sean Kraus, chief investment officer of CitizensTrust in Pasadena, Calif.
Meanwhile, new applications for unemployment benefits fell less than analysts expected last week, a sign the labor market's recovery is slowing.
Initial jobless claims decreased by 1,000 to a seasonally adjusted 388,000, the Labor Department said. Economists expected a decline to 376,000, according to a Dow Jones Newswires poll. The department also revised the prior week's reading slightly higher.
The Kansas City Fed's manufacturing composite index, an average of the indexes covering production, new orders, employment, delivery times and raw-materials inventories, fell to 3 in April from 9 in March. The April index is the lowest since a -2 reading in December 2011. Readings above zero denote expansion. On a year-over-year comparison, the composite index remained at 24.
"You had bad economic news all week," said Ron Sloan, senior portfolio manager at Invesco. "It's a sign of a pretty strong tape when it can move up through all of that. Probably, these prices aren't justified."
The European Commission's overall economic sentiment indicator fell more than expected to 92.8 in April from 94.5 in March. Economists had been expecting a slight decline to about 94.2.
Most Asian markets firmed, with Japan's Nikkei Stock Average up less than 0.1% and Hong Kong's Hang Seng Index up 0.8%. China's Shanghai Composite slipped 0.1%.
Crude-oil futures added 0.4% to finish at $104.55 a barrel, while gold futures gained 1.1% to settle at $1,659.60 an ounce. The U.S. dollar fell against the euro and the yen.
In corporate news, Watson Pharmaceuticals jumped 6.8% after it confirmed plans to buy Swiss rival Actavis, a deal that would make the suitor the third-largest global generic drug maker.
Aetna slumped 8.2% after the health insurer reported first-quarter earnings that missed forecasts, with the portion of premiums paid out to cover medical costs increasing.
H&R Block slid 11% after forecasting lower 2012 revenue than analysts expected. The tax preparer said it planned to eliminate 350 full-time positions and close about 200 underperforming stores as part of a strategic realignment aimed at saving $85 million to $100 million a year by the end of fiscal 2013.
Dow Chemical fell 3.4% after the company's first-quarter earnings edged above estimates but revenue fell short and gross margin declined.
Programmable chip maker Xilinx climbed 6.8% after the company reported fiscal fourth-quarter earnings and revenue that exceeded expectations.
Skechers surged 14% after the footwear company reported a narrower-than-forecast loss and said it expects to return to profitability later this year.
MetroPCS tumbled 11% as it reported sharply slower growth in pay-as-you-go customers in the first quarter and earnings and revenue that missed analysts' forecasts.
-By Matt Jarzemsky, Dow Jones Newswires; 212-416-2240; firstname.lastname@example.org