1

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. – marikamitsos Feb 3 at 12:33
1

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 ,)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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