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

  • Please remember that as per site guidelines when an answer addresses your question, you should accept it and even upvote it so others can benefit as well. Commented Feb 3, 2020 at 12:33

3 Answers 3


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


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

  • that definitely worked until I had to add two zeroes. Then it gave me blank. How would you take in account for blanks staying blank and zeroes adding together to make zero and still be shown? Commented May 28, 2021 at 22:00

Not an expert on sheets (so this may somehow identical to marikamitsos's answer, though their solution did not work for me for 0-valued rows)

I have done this in Google Sheets recently


It simply concatenates the range and checks if the result is empty. If so, it also results in an empty string. If not, it tries to resolve the sum.

You could probably adapt this with ISNUMBER or whatever other validation you need to do to before applying the sum as well.


Big thanks for your comments here.

I found the code for my table for delivery software working on Google Sheets.enter image description here

I use the code =IF(CONCATENATE(H41)="";"";SUM(H41+20/1440)) to add 20 minutes more for my tasks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.