How the Dow Jones industrial average and other major indexes fared on Friday

Markets Associated Press

A deal giving Greece more time to repay its debts swung the U.S. stock market higher Friday and drove it to a record high.

Continue Reading Below

While expected, the deal between the struggling country and its European creditors left investors relieved. Any failure to reach an accord could have sent tremors through markets at a time when Europe is trying to revive its regional economy.

On Friday:

The Dow Jones industrial average rose 154.67 points, or 0.9 percent, to 18,140.44.

The Standard & Poor's 500 index added 12.85 points, or 0.6 percent, to 2,110.30.

The Nasdaq composite rose 31.27 points, or 0.6 percent, to 4,955.97.

Continue Reading Below

For the week:

The Dow Jones industrial average rose 121.09 points, or 0.7 percent.

The Standard & Poor's 500 index is up 13.31 points, or 0.6 percent.

The Nasdaq composite has gained 62.13 points, or 1.3 percent.

For the year:

The Dow is up 317.37 points, or 1.8 percent.

The S&P 500 index is up 51.40 points, or 2.5 percent.

The Nasdaq is up 219.91 points, or 4.6 percent.