# How to make SUMIF not default to 0 but to blank in Google Sheets?

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: This is how I want it to work: • 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. Feb 3 '20 at 12:33

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

• 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? May 28 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

``````=IF(CONCATENATE(A3:C3)="","",SUM(A3:C3))
``````

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.

I found the code for my table for delivery software working on Google Sheets. I use the code `=IF(CONCATENATE(H41)="";"";SUM(H41+20/1440))` to add 20 minutes more for my tasks.
{"ft_lang_label":"__label__en","ft_lang_prob":0.85522556,"math_prob":0.7679387,"size":352,"snap":"2021-31-2021-39","text_gpt3_token_len":98,"char_repetition_ratio":0.123563215,"word_repetition_ratio":0.0,"special_character_ratio":0.2869318,"punctuation_ratio":0.16091955,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96546125,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-26T06:11:47Z\",\"WARC-Record-ID\":\"<urn:uuid:6782b424-3566-4fe5-a135-8c6926055f9a>\",\"Content-Length\":\"187756\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:eea528cd-5078-418e-ac32-3a4591d38420>\",\"WARC-Concurrent-To\":\"<urn:uuid:25faa0be-8c27-4e5d-be3f-95dc371e155d>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://webapps.stackexchange.com/questions/138465/how-to-make-sumif-not-default-to-0-but-to-blank-in-google-sheets\",\"WARC-Payload-Digest\":\"sha1:VT3JLMX4ZCPKFEJ3QXQ25L4IITZAEPAA\",\"WARC-Block-Digest\":\"sha1:HTCJLDADSFLWDABJ2BQ6HUBKZID2N3NH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057830.70_warc_CC-MAIN-20210926053229-20210926083229-00364.warc.gz\"}"}