(For a Reuters live blog on U.S., UK and European stock markets, click or type LIVE/ in a news window.)

* Ford slows EV ramp-up, Q2 commercial vehicle profit booms

* Chip stocks climb after Intel's surprise quarterly profit

* P&G tops estimates but signals slowing China demand

* Core June PCE at 4.1% vs est 4.2%

July 28 (Reuters) - All three major U.S. indexes ended the week with gains after a slew of earnings from big technology companies, economic data and central bank announcements boosted investor confidence in a soft landing for the U.S. economy.

"You put all that together and you end up with this idea that this Goldilocks economy might continue for a little while, with inflation clearly coming down," said Scott Ladner, Chief Investment Officer at Horizon Investments.

U.S. annual inflation slowed considerably in June, likely pushing the Federal Reserve closer to ending its fastest interest rate hiking cycle since the 1980s, data showed on Friday.

In the 12 months through June, the PCE price index advanced 3.0%. That was the smallest annual gain since March 2021 and followed a 3.8% rise in May.

"People are more sanguine about the possibility of inflation being under control and the economy avoiding a recession," said Win Murray, director of research at asset manager Diamond Hill.

According to preliminary data, the S&P 500 gained 44.32 points, or 0.98%, to end at 4,581.73 points, while the Nasdaq Composite gained 262.47 points, or 1.87%, to 14,312.58. The Dow Jones Industrial Average rose 169.42 points, or 0.48%, to 35,452.14.

On Wednesday, Federal Reserve Chair Jerome Powell said the Fed was not forecasting a recession and did not rule out another rate hike, saying it would follow future economic data.

To complete a week of encouraging signs, more than half of the firms listed on the S&P 500 have reported second quarter earnings as of Friday, out of which 78.7% have surpassed analyst expectations, according to Refinitiv data.

Barclays said investors flocked to equities this week, with inflows of $10 billion to U.S.-listed stocks, according to a note to clients.

Most of the 11 major S&P 500 sectors posted gains, led by communications services, which gained as big tech companies kept an upward trend after announcing earnings earlier this week.

On the earnings front, Intel's results and forecast pointed to an improving PC market, sending the chipmaker's shares up.

Peers Nvidia and Marvell Technology also gained.

On Thursday, the blue-chip Dow snapped its longest winning streak since 1987 as U.S. Treasury yields pressured stocks after news that the Bank of Japan will allow long-term interest rates to rise.

The Bank of Japan made its yield curve control policy more flexible and loosened its defense of a long-term interest rate cap, in moves seen by investors as a prelude to an eventual shift away from massive monetary stimulus.

The yield on the U.S. 10-year note slipped from 4% hit in the previous session, lifting megacap growth and technology stocks sharply higher.

Procter & Gamble climbed after the consumer behemoth beat analysts' estimates for quarterly sales.

Ford Motor shed after Chief Executive Jim Farley outlined a change in the automaker's product strategy, slowing the ramp-up of money-losing electric vehicles.

Enphase Energy fell after the solar inverter maker's third-quarter revenue forecast missed expectations, while Juniper Networks tumbled as the network operator forecast third-quarter revenue below market estimates.

Exxon Mobil fell after the oil giant posted a 56% slump in quarterly profit, while peer Chevron shed after forecasting annual production near the low end of its previously estimated range.

Reata Pharmaceuticals surged after Biogen agreed to buy the rare disease drugmaker for nearly $6.5 billion.

(Reporting by Carolina Mandl, in New York, and Bansari Mayur Kamdar and Johann M Cherian in Bengaluru; Editing by Maju Samuel and Deepa Babington)