PITTSBURGH — Even as consumers shifted buying behaviors because of higher costs, Kraft Heinz Co. managed to generate higher sales and profits in the first quarter while raising its earnings guidance for the year.

Carlos A. Abrams-Rivera, executive vice president and president of North America, said the company had anticipated a move by lower-income consumers to value retailers.

“There have been some channel shifts, which we expected,” Mr. Abrams-Rivera said May 3 in a call with investment analysts. “And for the lower-income consumers, this means kind of moving to more value-focused retailers or into dollar channels. Now for high-income consumers, that also means thinking about what are the places that it can go in instead of maybe the specialty retailers to more traditional grocery and clubs. And for us, what we’re looking to do is actually making sure that we have the right solutions for those on their respective channels. So whether that is more club size packaging and brands like Mac & Cheese and Jell-O and adding more dollar SKUs, so that consumers who are stretched are actually able to stay within the category.”

Kraft Heinz net income in the first quarter was $837 million, equal to 68¢ per share on the common stock, up 8% from $776 million, or 63¢ per share, in the same period a year ago. Net sales were $6.49 billion, up 7% from $6.05 billion in the first quarter last year.

“We delivered strong results in the first quarter of 2023, with net sales growth across both our North America and International zones that continues to be fueled by Foodservice, Emerging Markets, and US Retail GROW platforms,” ​​said Miguel Patricio, chairman and chief executive officers. “I am very proud of the entire Kraft Heinz team as we continue to deliver on what we can control by unlocking efficiencies and reinvesting in our brands and capabilities. Our team’s continued focus on executing against the strategy is coming to fruition, but it’s not time to declare victory just yet. We remain committed to advancing our business transformation, and we are confident we have the right strategy in place to win with customers and consumers, and to deliver profitable growth and create value for our stockholders.”

In comments during an investor call May 3, Mr. Patricio highlighted the contribution of emerging markets and food service in the company’s first-quarter results.

“We have been consistently saying that we’ll grow through emerging markets, and we grew 23% this quarter, we’ll grow through food service globally, and we grew about 29% this quarter, and we’ll grow through our priority growth platforms in US, Easy Meals and Taste Elevation where we had double-digit growth,” he said. “The rest of the portfolio has to free up resources to invest in our strategy. These results are possible not only because of our strategy, but because of everything that is behind our strategy.”

Net income was higher because of non-cash impairment charges in the 2022 period, partially offset by unrealized losses in commodity hedges this year (versus gains last year). Adjusted EBITDA was higher because of pricing actions and efficiency gains.

“These factors more than offset higher supply chain costs (reflecting inflationary pressure in procurement and manufacturing costs), unfavorable volume/mix, higher commodity costs (mainly in soybean and vegetable oils, energy, and sweeteners), higher general corporate expenses, an unfavorable impact from foreign currency (1.6 pp), and an unfavorable impact of Cyclone Gabrielle in New Zealand in the first quarter of 2023,” the company said.

The 7.3% increase in first-quarter net sales from a year earlier included a negative 2.1 percentage point impact from currency. Organic net sales were up 9.4% with a 14.7 percentage point contribution from pricing. Volume/mix was down 5.3 percentage points, attributed by the company to “elasticity impacts from pricing actions.”

Updating guidance for the year, the company said it expects earnings per share of $2.83 to $2.91, up from $2.67 to $2.75, as its most recent guidance. Kraft Heinz said EBITDA growth in 2023 should be 4% to 6% from the year before, adjusted for currency swings and for an extra week in the current year. The company confirmed its sales guidance for the year of up 4% to 6% from 2022.

Assumptions in the guidance include high single-digit inflation for the year, including low double-digit inflation in the first half and mid-single-digit inflation in the second half. Further pricing actions are anticipated, helping boost gross profit margins.

“Adjusted gross profit margin is now expected to expand 125 to 175 basis points versus prior year,” Kraft Heinz said. “This expansion is expected to fund incremental investments across marketing, research and development, and technology.”

Further discussing the company’s strategy for dealing with shopper behavior shifts, Mr. Abrams-Rivera said the company is taking a more holistic view of how consumers put a meal together.

“Being savvy about how we go about our promotional activities in certain categories so that we can, in fact, be there with consumers with the right overall kind of meal solution,” he said. “So if you think about what a grilled cheese sandwich can do with Kraft Singles, what Kraft mac-and-cheese can do in terms of families, what else can (mayo) and others can do, us being able to be there for those kind of meal solutions is part of that answer as well.

“The one other thing I would say is if you look at that same channel shift within Foodservice, we’re also making sure that we are adjusting, too, for that. We are seeing how our business continues to grow in QSR and for us is continuing to grow that business. And we are doing that and we’re growing our share of that business as well. So it’s making sure that consumers are shifting to — from certain restaurants to QSR. We are making sure that we are there for them, too, to continue to drive our products and continue to drive our growth, which is the way it resulted in Q1.”

Investors were impressed by the results and the guidance. In early trading on Nasdaq May 3, Kraft Heinz Shares rose as much as 5%, reaching $41.45, up $2.02 from the previous closing price.