use "if" formula???

  • Thread starter Thread starter taurus99
  • Start date Start date
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
 
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
 
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
 
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")
 
If you want it to PASS if any one or more is TRUE use the OR operator.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top