Stocks struggled to a mixed finish on Wall Street Thursday after an early rally sputtered.

Losses in health care stocks mostly offset gains in industrial companies, banks and elsewhere in the market. The listless day of trading came as investors looked ahead to Friday, when major banks, including Wells Fargo and JPMorgan Chase, are due to report their first-quarter results.

On Thursday:

The S&P 500 index added 0.11 points to 2,888.32.

The Dow Jones Industrial Average fell 14.11 points, or 0.1%, to 26,143.05.

The Nasdaq composite slid 16.88 points, or 0.2%, to 7,947.36.

The Russell 2000 index of small-company stocks gave up 2.41 points, or 0.2%, to 1,579.14.

For the week:

The S&P 500 is down 4.42 points, or 0.2%.

The Dow is down 281.94 points, or 1.1%.

The Nasdaq is up 8.67 points, or 0.1%.

The Russell 2000 is down 3.42 points, or 0.2%.

For the year:

The S&P 500 is up 381.47 points, or 15.2%.

The Dow is up 2,815.59 points, or 12.1%.

The Nasdaq is up 1,312.08 points, or 19.8%.

The Russell 2000 is up 230.58 points, or 17.1%.