The S&P 500 index on Friday closed above the 1,500 level for the first time in more than five years as strong U.S. earnings reports from Procter & Gamble and others helped the benchmark extend its rally to eight days.
The Dow Jones industrial average was up 70.50 points, or 0.51 percent, at 13,895.83. The Standard & Poor's 500 Index was up 8.11 points, or 0.54 percent, at 1,502.93. The Nasdaq Composite Index was up 19.33 points, or 0.62 percent, at 3,149.71.
For the week, the Dow rose 1.8 percent, the S&P climbed 1.1 percent and the Nasdaq rose 0.5 percent. It was the fourth straight week of gains for all three indexes.
Data showed sales of new U.S. single-family homes fell in December but rose in 2012 to the highest level since 2009, a sign the troubled U.S. housing market has turned a corner.
"Economic data in the U.S. has been trending higher, albeit modestly. Things are incrementally better," said Quincy Krosby, market strategist at Prudential Financial in Newark, New Jersey.
"The market was able to move forward despite deterioration in Apple and that's also a positive."
Apple shares dropped 1.2 percent to $444.99, and the iPhone maker was swapping places as the most valuable U.S. company with ExxonMobil Corp through the afternoon.
Adding to the bullish tone, German business morale improved for a third consecutive month in January to its highest in more than six months. In addition, European banks said they will repay the European Central Bank much more than expected of the loans the bank gave them during the crisis.
"Good news in credit markets helps set the stage for (more investment in) riskier assets," Krosby said.
Procter & Gamble shares rose 3.6 percent to $72.99 after the world's top household products maker's quarterly profit soared past expectations. The company also raised its sales and earnings outlook for the fiscal year.
The benchmark S&P 500 index is up more than 5 percent so far in January. The equity market's strong start this year has been attributed to solid corporate results, an agreement in Washington to extend the government's borrowing power, encouraging signs from the global economy and seasonal inflows into stocks.
Helping to lift the Nasdaq Composite, Starbucks , rose 4.5 percent to $57.01 after the coffee retailer reported stronger-than-expected sales in the United States and Asia.
Thomson Reuters data through Friday showed that of the 147 S&P 500 companies that have reported earnings, 68 percent exceeded expectations. Since 1994, 62 percent of companies have topped expectations, while the average over the past four quarters stands at 65 percent.
Halliburton Co shares jumped 5 percent to $39.69 after the world's second-largest oilfield services company reported higher-than-expected earnings and sales for the fourth quarter.
Reuters contributed to this report.