Change the negative number to zero in Excel and Google Sheets

=IF(A2<=0,0,A2)

A2 = negative number cell

Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.