'Cell Contains Formula NOT blank

i have a row with three cell each one contains formula and all formula result is blank, my question how can i use if formula to have the following result? - in case all 3 cell blank ---> (0) in case one or two cell have value (not blank) ---> (33)

Regards,



Solution 1:[1]

Use:

=IF(OR(LEN(A1:C1)>0),33,0)

Solution 2:[2]

Not 0 or Not ""?

  • A blank cell is a cell that doesn't contain anything. Since there is a formula in those cells, you are probably asking if the value is 0 or "". Maybe both.

If you mean blank as in value 0:

If you will treat an error value as a value then use the following:

=IFERROR(IF(AND(A1=0,B1=0,C1=0),0,33),33)

Otherwise use the following:

=IFERROR(IF(AND(A1=0,B1=0,C1=0),0,33),0)

or e.g.

=IFERROR(IF(SUM(A1:C1)=0,0,33),0)

If you mean blank as in value "":

If you will treat an error value as a value then use the following

=IFERROR(IF(AND(A1="",B1="",C1=""),0,33),33)

Otherwise use the following:

=IFERROR(IF(AND(A1="",B1="",C1=""),0,33),0)

or e.g.

=IFERROR(IF(TEXTJOIN("",,A1:C1)="",0,33),0)

There are many other solutions

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Scott Craner
Solution 2 VBasic2008