Stocks decline for the week, but gain for the day the chart for more market data. By Ken Sweet, contributing writer

NEW YORK(CNNMoney) -- U.S. stocks finished the week lower as concerns about corporate results plagued the market. But Friday's session resulted in gains after positive news about inflation and consumer sentiment.

For the week, the Dow Jones industrial average (INDU) lost 0.4%, and both the S&P 500 and Nasdaq lost 0.7%. Big losses on Tuesday, triggered by disappointment about Alcoa's results and a spike in oil prices, couldn't be overcome the rest of the week.

The Dow rose 57 points Friday, or 0.5%, to 12,342; the S&P 500 (SPX) gained 5 points, or 0.4%, to 1,320.

The Nasdaq Composite (COMP) lagged the other two indexes, adding 4 points, or 0.2%. The tech-heavy index was weighed down by a 8% drop in Google (GOOG, Fortune 500) shares, which fell after the company reported a profit of $8.08 a share late Thursday, missing Wall Street analyst forecasts.

Investors focused Friday on economic reports.

The Labor Department's latest Consumer Price Index showed prices rose 0.5% in March. While the inflation data was in line with expectations, core CPI -- which strips out volatile food and energy prices -- came in lower than forecasts, rising 0.1% during the month.

Although gas and food have soared recently, core CPI has remained relatively tame.

"We're starting to see companies passing along their costs to consumers, and that's going to be an ongoing concern," said Bruce McCain, chief investment strategist at Key Private Bank.

Investors also welcomed a positive economic report from the University of Michigan, whose U.S. consumer sentiment index rose to a reading of 69.6 in April from 67.5 in March. Economists had been looking for a reading of 69. Stocks moved higher after the report.

"It's not going to be a straight line up, but things are just generally getting better," said Harry Clark, CEO of Clark Capital Management.

The biggest drag on the Dow was Bank of America (BAC, Fortune 500), whose shares slipped more than 2% after the bank's earnings fell short of analyst estimates. BofA said it earned a profit of 17 cents a share while analysts were looking for a profit of 27 cents a share.

Clark said investors are setting up for next week, when more than a fifth of S&P 500 companies will report their quarterly results.

"Earnings are going to be positive overall, and that's going to be bullish for the market until the summer," he said.

U.S. stocks ended little changed Thursday, erasing bigger losses from earlier in the session, as commodities and energy stocks climbed. The gains in oil offset weakness in the banking and technology sectors.

Economy: The Federal Reserve said U.S. industrial production rose 0.8% in March, marginally better than the 0.6% expected by economists.

Companies: Mattel (MAT, Fortune 500) shares rose 4%, making it among the best-performing stocks in the S&P 500, after the toy maker posted a first-quarter profit of 5 cents a share, a penny better than expectations.

World markets: Globally, investors mulled the latest economic data from China, which showed that the world's second-largest economy grew at a 9.7% pace year-over-year in the first quarter. That rate was faster than economists had expected.

Meanwhile, inflation rose at a feverish pace of 5% in the first quarter, led by surging food prices.

Asian markets ended mixed. The Shanghai Composite rose 0.3%, the Hang Seng in Hong Kong was flat and Japan's Nikkei fell 0.7%.

In Europe, Ireland was hit with another downgrade from Moody's Investors Service, which cut the country's credit rating to "Baa3," one notch above junk status.

European stocks closed higher. Britain's FTSE 100 gained 0.5%, the DAX in Germany added 0.4% and France's CAC 40 was up 0.1%.

Currencies and commodities: The dollar rose against the euro, but fell versus the Japanese yen and the British pound.

Oil for May delivery rose $1.30 to $109.41 a barrel.

Gold futures for June delivery rose $14.90 to $1,486.80 an ounce, heading for yet another record close for the precious metal.

Bonds: The price on the benchmark 10-year U.S. Treasury rose, pushing the yield down to 3.41% from 3.49% late Thursday.  To top of page

Frontline troops push for solar energy
The U.S. Marines are testing renewable energy technologies like solar to reduce costs and casualties associated with fossil fuels. Play
25 Best Places to find rich singles
Looking for Mr. or Ms. Moneybags? Hunt down the perfect mate in these wealthy cities, which are brimming with unattached professionals. More
Fun festivals: Twins to mustard to pirates!
You'll see double in Twinsburg, Ohio, and Ketchup lovers should beware in Middleton, WI. Here's some of the best and strangest town festivals. Play
Overnight Avg Rate Latest Change Last Week
30 yr fixed4.19%4.26%
15 yr fixed3.23%3.27%
5/1 ARM3.34%3.45%
30 yr refi4.17%4.23%
15 yr refi3.21%3.25%
Rate data provided
View rates in your area
Find personalized rates:
Index Last Change % Change
Dow 16,982.59 0.00 0.00%
Nasdaq 4,444.91 -4.65 -0.10%
S&P 500 1,978.91 0.00 0.00%
Treasuries 2.49 0.02 0.89%
Data as of 11:55pm ET
Company Price Change % Change
Apple Inc 99.02 1.35 1.38%
Facebook Inc 74.92 -0.27 -0.36%
Bank of America Corp... 15.50 -0.09 -0.58%
Dollar Tree Inc 54.87 0.65 1.20%
Family Dollar Stores... 75.74 15.08 24.86%
Data as of 4:03pm ET


Herbalife shares tumble after the maker of nutritional supplements reports earnings that fall short of analysts' estimates. More

New annual report from U.S. government shows the long-term prognosis for Medicare has improved thanks to slower health spending, while the outlook for Social Security remains unchanged. More

Online dating site OkCupid found its users were more likely to have conversations when it told them they were more compatible than in reality. More

Actor-founded This Bar Saves Lives had Hollywood connections, but learned Start-Up 101 the hard way. More

Steve Mason, a pastor from California, inherited more than $100,000 in student loan debt when his 27-year-old daughter died suddenly in 2009. With interest and late penalties, the debt has since ballooned to $200,000. More

Market indexes are shown in real time, except for the DJIA, which is delayed by two minutes. All times are ET. Disclaimer Morningstar: © 2014 Morningstar, Inc. All Rights Reserved. Disclaimer The Dow Jones IndexesSM are proprietary to and distributed by Dow Jones & Company, Inc. and have been licensed for use. All content of the Dow Jones IndexesSM © 2014 is proprietary to Dow Jones & Company, Inc. Chicago Mercantile Association. The market data is the property of Chicago Mercantile Exchange Inc. and its licensors. All rights reserved. FactSet Research Systems Inc. 2014. All rights reserved. Most stock quote data provided by BATS.