Major U.S. stock indexes finished mostly lower Friday after another day of volatile trading.

Losses in technology, energy and industrial stocks outweighed gains in retailers and other consumer-focused companies. Smaller company stocks outgained the rest of the market. The benchmark S&P 500 index ended the week with its first weekly gain since November, though the market remains on track for its worst December since 1931.

On Friday:

The S&P 500 index fell 3.09 points, or 0.1 percent, to 2,485.74.

The Dow Jones Industrial Average dropped 76.42 points, or 0.3 percent, to 23,062.40.

The Nasdaq added 5.03 points, or 0.1 percent, to 6,584.52.

The Russell 2000 index of smaller-company stocks climbed 6.11 points, or 0.5 percent, 1,337.92.

For the week:

The S&P 500 rose 69.12 points, or 2.9 percent.

The Dow added 617.03 points, or 2.8 percent.

The Nasdaq climbed 251.53 points, or 4 percent.

The Russell 2000 gained 45.84 points, or 3.6 percent.

For the year:

The S&P 500 is down 187.87 points, or 7 percent.

The Dow is down 1,656.82 points, or 6.7 percent.

The Nasdaq is down 318.87 points, or 4.6 percent.

The Russell 2000 is down 197.59 points, or 12.9 percent.