NEW YORK (TheStreet) -- From selloffs triggered by a global bond rout to rebound rallies, it's been an eventful week for the stock market.

Equities ended the week with slight gains, though essentially went nowhere over Friday's session. Consumer sentiment and weak industrial data in April squelched any lingering optimism from Thursday's rally. 

For the week, the S&P 500 climbed 0.3%, the Dow Jones Industrial Average added 0.4%, and the Nasdaq was up 0.9%. 

But over Friday's session, the S&P 500 and Dow barely moved more than a few points from their flatline, while the Nasdaq ended the session down just 0.05%. The S&P 500 notched a record close, though a mere 2 points from the high set on Thursday. 

The latest poor data suggested a bounceback from the dismal first quarter could be more gradual than hoped for. Consumer sentiment in May fell to a preliminary reading of 88.6, a seven-month low, according to the University of Michigan's consumer survey. Economists had expected a May level of 94.5 after a final reading of 95.9 in April.

"Consumers in May became more convinced that the rebound from the economic slowdown in Q1 would be neither quick nor robust. In particular, the weak March employment report appears to have undermined confidence," said Michelle Girard, chief U.S. economist at RBS Securities.

Industrial production remained weak in April, down 0.3%, notching its fifth straight decline. Economists had expected a flat reading after the measure fell 0.6% in March.

"Industrial production in April was dragged down by a drop back in utilities output, as the earlier weather-related distortion was unwound, and a sharp decline in oil and gas drilling," said Paul Ashworth, chief U.S. economist at Capital Economics.

If you liked this article you might like

7 Essential Rules for Investing in Tech Stocks

Politics Hang Heavy Over FCC's Review of Sinclair-Tribune Media

Microsoft's New Xbox One X Shows It's Done Trying to Please Everyone

Cord Cutters Aren't Just Leaving Pay-TV Because of Price

Netflix Shares Could Rise 16% on Big Boost in Subscribers