May 16 (Reuters) - A positive forecast from retail bellwether Walmart on Thursday signaled a resilient U.S. shopper, in line with earlier remarks by one of its key suppliers and one of its retail rivals.

American shoppers are opening their wallets, spending money on bargain-priced goods in stores and online, with many people turning to Walmart's delivery service for convenience, Walmart executives said on Thursday.

The nation's largest retailer raised its full-year outlook and reported better-than-expected first quarter results. Its shares surged by nearly 7%, driving shares of rivals such as Target, Dollar General and Dollar Tree higher.

Procter & Gamble, one of Walmart's biggest and most important suppliers, recently also raised its full year profit forecast. On April 19, executives at P&G, which makes Tide detergent and Dawn dish soap, disclosed that its volumes grew around 3% in the U.S., its top market.

Earlier this week, rival Home Depot maintained its annual forecast despite reporting a bigger-than-expected drop in sales. Analysts said this could indicate that Home Depot expects an improving spending environment in the second half of the year.

To be sure, several retailers and food companies have noted what appears to be worsening or ongoing financial strain on low-income Americans making less than $35,000 a year. Walmart, the leading grocery retailer in the United States, accepts food stamps and seeks to keep merchandise prices low in order to draw bargain seekers of all income levels.

It offered discounts on 45% more food and grocery products in April than during the year-earlier period, executives said on Thursday.

But higher-income households earning more than $100,000 annually also opened their wallets. They were instrumental in driving Walmart's online sales of general merchandise, its executives disclosed on Thursday.

U.S. government data on Wednesday showed that retail sales were unexpectedly flat in April as higher gasoline prices and rents pulled spending away from other goods.

Walmart executives on Thursday said the price gaps Walmart maintains with competitors helped increase visits to its stores and website in the first quarter even though the average amount spent per transaction remained flat compared to a year ago.

"The fight is for the middle and upper (income) consumer that's still able to spend," said Don Nesbitt, senior portfolio manager at F/m Investments, which owns Walmart shares.

(Reporting by Ananya Mariam Rajesh, Aishwarya Venugopal in Bengaluru, Siddharth Cavale in New York Editing by Nick Zieminski)