use "if" formula???

T

taurus99

How do I get cell E to return PASS OR FAIL, if any the cells A1:AD equal TRUE?

A B C D E
TRUE FALSE TRUE FALSE FAIL
 
L

Lars-Åke Aspelin

How do I get cell E to return PASS OR FAIL, if any the cells A1:AD equal TRUE?

A B C D E
TRUE FALSE TRUE FALSE FAIL


Assuming AD should be read as D1 you may try this in cell E1:

=IF(AND(A1:D1),"PASS","FAIL")

Hope this helps / Lars-Åke
 
L

Lars-Åke Aspelin

Assuming AD should be read as D1 you may try this in cell E1:

=IF(AND(A1:D1),"PASS","FAIL")

Hope this helps / Lars-Åke

The formula i proposed will return "PASS" if all four cells are TRUE,
otherwise it will return "FAIL".

You can experiment by swaping the "PASS" and "FAIL" and/or replacing
AND with OR in the proposed formula to get the result you are after.

Hope this helps / Lars-Åke
 
D

dede

If you do have only 4 column ypou can use this but if you will have more, I
think you will need to use Lookup formulas but I need to try more in between,
use this :

=IF(OR(A2=TRUE;B2=TRUE;C2=TRUE;D2=TRUE);"FAIL";"PASS")
 
M

mikebres

If you want it to PASS if any one or more is TRUE use the OR operator.

=IF(OR(A2:D2),"PASS","FAIL")
 
Top