Google-sheets – How to set a formula for a entire column

google sheets

I need to apply a simple formula into a entire column, this is to prevent having to keep pasting the formula into said column when i add a row…

=IFERROR(D1-C1) 

is the formula that i want to fill the entire column G.

Best Answer

Use:

=ARRAYFORMULA(IFERROR(D:D-C:C, "error"))