The stock market struggled to hang on to meager gains after investors found little to like in weak corporate earnings reports and news of only tepid growth in the U.S. economy in the third quarter.
The Dow Jones industrial average was up eight points at 13,111 shortly before the close of trading. The Standard & Poor's 500 index fell a fraction of a point to 1,413 and the Nasdaq composite rose seven points to 2,993.
Stocks rose in the morning before a mild midday sell-off, then recovered somewhat in the afternoon.
The morning gains came after the Commerce Department estimated that the U.S. economy expanded at a 2 percent annual rate from July through September. That was better than the previous quarter, and better than analysts expected, but not strong enough to bring down the unemployment rate.
Even economic data that is mixed or positive won't outweigh weak earnings, said Lawrence Creatura, a portfolio manager with Federated Investors. Reports like the one on Friday that measure gross domestic product tend to be backwards-looking, while companies are offering forecasts about the months ahead, he said.
"Company earnings trump macro data. Because investors own Apple, they don't own GDP," Creatura said.
Apple was down $4.46 to $605.08 after saying its profit will decline this holiday season.
Even with Friday's rise, stocks lost ground this week, inflecting a sort of death-by-a-thousand-cuts on the rally that began in September. The Dow was down 220 points for the week, or 1.7 percent. The S&P has fallen 20 points, or 1.4 percent.