U.S. stock indexes closed slightly higher Wednesday as gains in banks were partly offset by a slump in energy companies.
Crude oil prices fell sharply following an unexpected buildup in supplies last week. That sent energy stocks lower.
The Standard & Poor's 500 index rose 3.81 points, or 0.2 percent, to 2,433.14.
The Dow Jones industrial average added 37.46 points, or 0.2 percent, to 21,173.69.
The Nasdaq composite gained 22.32 points, or 0.4 percent, to 6,297.38.
The Russell 2000 index of small-company stocks picked up 1.78 points, or 0.1 percent, to 1,396.67.
For the week:
The S&P 500 is down 5.93 points, or 0.2 percent.
The Dow is down 32.60 points, or 0.2 percent.
The Nasdaq is down 8.42 points, or 0.1 percent.
The Russell 2000 is down 8.71 points, or 0.6 percent.
For the year:
The S&P 500 is up 194.31 points, or 8.7 percent.
The Dow is up 1,411.09 points, or 7.1 percent.
The Nasdaq is up 914.26 points, or 17 percent.
The Russell 2000 is up 39.54 points, or 2.9 percent.