Lowe's raised its full-year outlook on Wednesday after posting strong quarterly results driven by online sales growth and professional customer spending. The company reported comparable sales growth of 1.8% for the fiscal third quarter ended October 30, powered by a 17.4% increase in online sales and solid pro and home services performance. Net sales reached $22.76 billion.

The company lifted its full-year sales guidance to roughly $92.5 billion from $92 billion and raised comparable sales guidance to up 0.5% from flat. CEO Marvin Ellison told CNBC that Lowe's posted its sixth straight quarterly comparable sales increase and saw appliances deliver its largest revenue growth in five years. He said the company plans to gain market share despite economic headwinds and a sluggish housing market.

Lowe's recorded a $250 million pretax benefit from tariff refunds during the quarter, which added 34 cents to earnings per share. The company reported net income of $1.67 billion, or $2.98 per share, versus $1.62 billion, or $2.88 per share, in the year-ago quarter.

Ellison said do-it-yourself and professional customers are focusing on repair and maintenance projects rather than major renovations. He expects consumers to remain cautious through year-end but said November sales are tracking in line with expectations.

CFO Brandon Sink noted that diesel prices reached approximately $6 per gallon, up about 15% from the second quarter, adding cost pressure the company is managing through its fourth quarter guidance.