Lowe's posted strong quarterly results on Wednesday and raised its full-year outlook, citing strength among professional shoppers.

For the fiscal third quarter, the company reported comparable sales growth of 1.8%. Online sales rose 17.4%, and pro and home services sales were "solid," according to the company. Net sales reached $22.76 billion.

Lowe's now expects full-year sales of roughly $92.5 billion, up from its earlier projection of $92 billion. It also expects comparable sales to rise 0.5%, compared with previous guidance of flat.

CEO Marvin Ellison told CNBC that the company will keep pursuing growth despite economic headwinds and a sluggish housing market. He said Lowe's posted its sixth straight quarterly comparable sales increase. Appliances saw their largest revenue growth in five years.

"We believe irrespective of the macro environment we're in, we're going to take share because there's a lot of share out there that we can go and get, and we're going to be aggressive to go and get that share," Ellison told CNBC.

Lowe's reported a pretax benefit of approximately $250 million from tariff refunds during the quarter. The benefit added 34 cents to earnings per share. Ellison said the company plans to use those funds to enhance the customer experience and bring value to shoppers.

Ellison said do-it-yourself and pro customers are not investing in major renovation projects. Instead, they are spending on repair and maintenance.

For the quarter ended Oct. 30, Lowe's reported net income of $1.67 billion, or $2.98 per share. A year earlier, it reported $1.62 billion, or $2.88 per share.

Lowe's executives said on an analyst call that high fuel costs accelerated through the third quarter. CFO Brandon Sink said diesel prices are currently around $6 per gallon, up about 15% compared with the second quarter. The company is reflecting those costs in its fourth-quarter guidance.

Ellison told CNBC he remains optimistic about holiday spending and said November sales are in line with expectations so far. Competitor Home Depot reported earlier this week that it is seeing resilience among professional shoppers.