I am trying to write a formula to total data in column C and column E (C+E) only when C or E have data. In other words, when C and E are blank, i would like the formula to return "-". When C or E have data, including a 0, i would like the formula to add C+E.
My only experience with sumif is for ranges, e.g. contiguous data.
My initial alternative was =if(c8+d8>=0,c8+d8,"-") but, for some reason, that returns a 0 even though c8 and d8 are blank.
I have also tried, =if(c8<>"",c8,"-")+if(e8<>"",e8,"-"). This returns a #VALUE ! error.
Any suggestions?
My only experience with sumif is for ranges, e.g. contiguous data.
My initial alternative was =if(c8+d8>=0,c8+d8,"-") but, for some reason, that returns a 0 even though c8 and d8 are blank.
I have also tried, =if(c8<>"",c8,"-")+if(e8<>"",e8,"-"). This returns a #VALUE ! error.
Any suggestions?