US stock indexes close mostly higher; oil up

U.S. stock indexes closed mostly higher Wednesday after a sharp increase in crude oil prices helped drive market-leading gains for energy companies.

Banks and other financial stocks declined the most as bond yields headed lower, which translates into lower interest rates on loans and lower profits for banks.

The Dow Jones industrial average ended in the red, while the Standard & Poor's 500 index and Nasdaq composite eked out modest gains. Two stocks rose for every one that fell on the New York Stock Exchange.

"After yesterday's bounce back, you're seeing a little sideways action today," said Jeff Zipper, managing director at the Private Client Reserve of U.S. Bank.

The S&P 500 index added 2.56 points, or 0.1 percent, to 2,361.13. The Dow fell 42.18 points, or 0.2 percent, to 20,659.32. The Nasdaq composite index gained 22.41 points, or 0.4 percent, to 5,897.55.

Bond prices rose. The 10-year Treasury yield fell to 2.39 percent from 2.42 percent.

A day after Wall Street rallied on news that U.S. consumer confidence reached its highest level since 2000, the market got another dose of encouraging economic data Wednesday.