Google Sheets – How to Make SUMIF Default to Blank Instead of 0

google docsgoogle sheetsgoogle-sheets-query

My goal is to sum values in a row if they are present and leave the cell empty it there are no values. I used a formula: =SUMIF(A1:C1; "<>"; A1:C1) – but Google Sheets inserts a default value 0 – I don't want the default value.

Example:
A, B, C colums are number values. D is the sum column.

This is how my formula works:

enter image description here

This is how I want it to work:

enter image description here

Best Answer

You can omit the 0 by wrapping tour formula with the IF function:

=IF(SUMIF(A3:C3;"<>");SUMIF(A3:C3;"<>");"")

(Depending on your sheet's locale, ; could be replaced with ,)