Change positive numbers to negative in Excel and Google Sheets

=IF(A2>0,-A2,A2)

A2 = positive number cell

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