NEW YORK ( TheStreet) -- Major U.S. equity indices rallied Friday and the Dow Jones Industrial Average managed to erase losses from two consecutive losing sessions. Stocks also got a lift from Hewlett-Packard's ( HPQ) promising earnings.

The Dow Jones Industrial Average gained 120 points, or 0.9%, to 14,001. The index is up 6.8% this year.

Breadth within the Dow was positive, as winners outpaced losers 25 to five. Hewlett-Packard, Home Depot ( HD) and Coca-Cola ( KO) were the biggest leaders on the Dow.

HP reported Thursday a profit of 82 cents a share on revenue of $28.4 billion. Analysts predicted the PC maker would post earnings of 71 cents a share on revenue of $27.79 billion during its fiscal first quarter.

HP said its outlook for the second quarter was for profit of 80 cents to 82 cents a share, and full-year earnings of $3.40 to $3.60 a share, higher than Wall Street's estimate of $3.32. Shares surged 12% on Friday.

Pfizer ( PFE), UnitedHealth Group ( UNH) and Alcoa ( AA) were among the biggest decliners on the blue-chip index.

Volumes totaled 3.35 billion shares on the New York Stock Exchange and 1.57 billion shares on the Nasdaq. Advancers beat declining issues by a 3.1-to-1 ratio on the NYSE and by a 2.6-to-1 ratio on the tech-heavy index.

The S&P 500 added 13 points, or 0.9%, to 1,516. The index dropped 0.3% for the week. Nasdaq tacked on 30 points, or 1%, to 3,162. It lost 0.95% for the shortened trading week.

No major economic reports were released Friday. Federal Reserve Governor Jerome Powell spoke at a monetary policy forum at the Grand Hyatt in New York on Friday. Powell said he did not believe the challenges Congress faces as it regards short-term fiscal policy will interfere with the central bank's monetary policy.

"No current market signal suggests that the United States is near the point of losing the market's confidence," Powell said at the forum. "The market has every reason to believe -- and apparently still does believe -- that the United States will continue the difficult task of fiscal consolidation until the job is done."

Stocks slumped on Thursday after jobless claims rose more than expected and general business conditions came in soft. The early part of Thursday's session showed that equities continued to reel from the minutes of the Fed's January meeting, as it suggested central bankers were more open to scaling back quantitative-easing measures in 2013.

Gold futures for April delivery slid $5.80 to settle at $1,572.80 an ounce at the Comex division of the New York Mercantile Exchange, while futures for April crude oil contracts climbed 29 cents to close at $93.13 a barrel.

The benchmark 10-year Treasury was rising 3/32, diluting the yield to 1.971%. The dollar was up 0.1%, according to the U.S. dollar index.

In corporate news, United Airlines ( UAL) said Thursday it would delay the grounded Boeing ( BA) 787 Dreamliner from flying any routes through June 5, and it postponed a new Denver-to-Tokyo flight. United Airlines shares increased 1.7%, while Boeing ticked up 0.9%.

KKR ( KKR) submitted a $75-a-share offer for industrial machinery maker Gardner Denver ( GDI). KKR gained 2.3%, while Gardner Denver popped 5%.

Abercrombie & Fitch ( ANF) reported earnings on Friday of $1.95 a share on revenue of $1.47 billion. Analysts forecast the clothing retailer would post fourth-quarter earnings of $1.96 a share on revenue of $1.49 billion. Shares of the company tumbled 4.5%.

Texas Instruments ( TXN) increased its quarterly dividend by 33% to 28 cents a share and said it planned to buy back $5 billion of its stock. The chipmaker's shares climbed 5.2%.

A Securities and Exchange Commission filing showed new Citigroup ( C) CEO Michael Corbat received pay of $11.5 million in 2012. Shares of the company rose 1% on Friday.

Charter Communications ( CHTR) reported a fourth-quarter loss of 41 cents a share on revenue of $1.91 billion, which was a 4.3% increase from a year earlier. Analysts had been expecting the cable company to post a loss of 28 cents a share on revenue of $1.91 billion. Shares popped 10%.

-- Written by Joe Deaux in New York.

>Contact by Email.

More from Markets

Global Stocks Rise on Tech Resurgence; Dollar Past 3-Month High Ahead of Q1 GDP

Global Stocks Rise on Tech Resurgence; Dollar Past 3-Month High Ahead of Q1 GDP

AMD Rises Above the Competition; Loan Losses Mount for Big Banks -- ICYMI

AMD Rises Above the Competition; Loan Losses Mount for Big Banks -- ICYMI

McKesson Internal Review Clears Senior Management of Wrongdoing on Opioids

McKesson Internal Review Clears Senior Management of Wrongdoing on Opioids

Starbucks Surprises Wall Street With U.S. Sales Up a Paltry 2%

Starbucks Surprises Wall Street With U.S. Sales Up a Paltry 2%

Dow Jumps 238 Points as S&P 500, Nasdaq Also Climb

Dow Jumps 238 Points as S&P 500, Nasdaq Also Climb