A late rally Friday prevented the stock market from having its worst week in nearly a year.
Investors seemed to largely ignore the ongoing debate in Washington over raising the country's borrowing limit. Troubling questions over Europe's financial health and manufacturing in the U.S. weighed down stock prices for much of the day, overwhelming a very strong earnings report from Google Inc.
Google jumped nearly 13 percent, the most of any stock in the Standard and Poor's 500 index, after the company said its revenue hit a record last quarter.
The Dow Jones industrial average added 42.61, or 0.3 percent, to 12,479.73.
The Standard and Poor's 500 rose 7.27, or 0.6 percent, to 1,316.14.
The Nasdaq composite rose 27.13, or 1 percent, to 2,789.80.
For the week to date:
The Dow is down 177.47, or 1.4 percent.
The S&P is down 27.66, or 2.1 percent.
The Nasdaq is down 70.01, or 2.4 percent.
For the year to date:
The Dow is up 902.22, or 7.8 percent.
The S&P is up 58.50 or 4.7 percent.
The Nasdaq is up 136.93, or 5.2 percent.