Another roller-coaster day left Wall Street essentially where it began on Wednesday, after stocks veered on worries about how badly a slowing economy will hit corporate profits.

The S&P 500 finished virtually unchanged, but only after it tumbled to a morning loss of 1.7% and then roared all the way back. The Dow Jones industrial average erased a 460-point loss to finish up 9 points. The Nasdaq composite fell 0.2% after coming back from a 2.3% drop.

Microsoft helped to lead the way lower after giving a forecast for upcoming results that fell short of some analysts’ expectations. Microsoft fell as much as 4.6% in the morning before paring its loss to 0.6%.

All told, the S&P 500 slipped 0.73 points, or less than 0.1%, to 4,016.22. The Dow rose 9.88 points, or less than 0.1%, to 33,743.48, and the Nasdaq fell 20.91 points, or 0.2%, to 11,313.36.

The yield on the 10-year Treasury dipped to 3.44% from 3.46% late Tuesday. The two-year yield fell to 4.14% from 4.21%.

Benchmark U.S. crude oil for March delivery rose 2 cents to $80.15 a barrel Wednesday. Brent crude for March delivery fell 1 cent to $86.12 a barrel.

Gold for February delivery rose $7.20 to $1,942.60 an ounce. Silver for March delivery rose 19 cents to $23.94 an ounce and March copper fell 1 cent to $4.24 a pound.

The dollar fell to 129.55 Japanese yen from 130.06 yen. The euro rose to $1.0913 from $1.0885.

Wheat for March rose 6.75 cents at $7.4125 a bushel; March corn was off 2.25 cents at $6.7475 a bushel, March oats was up 3 cents at $3.78 a bushel; while January soybeans advanced 14 cents at $15.025 a bushel.

— Associated Press