Summation in Excel -


i want write formula in excel works follow, cannot handle despite numerous trials.
want make sum of 3 cells. of these cells may missing values (represented double dot ".."). formula has show sum of non-missing values. in particular, whether there @ least 1 non-missing value among 3 cells, result must sum of non-missing values. if there missing, result must missing ("..").

to sum can use:

=sumif(a1:c1,"<>..",a1:c1) 

but if want .. in answer use:

=if(sumif(a1:c1,"<>..",a1:c1)=0,"..",sumif(a1:c1,"<>..",a1:c1)) 

edit : displaying 0 in answer if numbers 0 pointed out @jayvee in comment.

=if(and(sumif(a1:c1,"<>..",a1:c1)=0,countif(a1:c1,"<>..")=0),"..",sumif(a1:c1,"<>..",a1:c1)) 

enter image description here


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -