Formula reflecting mutliple results

G

Guest

What formula to write on D column:

To show “fail†when there’s an “a†or “x†on any column of A, B & C.
To show “pass†when only “bâ€, or “c†or “e†(not a or x) on A, B & C columns.

A B C D
a a x fail
c b x fail
e c b pass
e e a fail
c b c pass
c b b pass
 
G

Guest

This formula should do the trick:

=IF(OR(A9="a",B9="a",C9="a",A9="x",B9="x",C9="x"),"fail","Pass")
 
G

Guest

P.S. You'll have to replace the row number 9 with the relevant row for your
layout. I just happened to insert the formula in row 9
 
D

Dana DeLouis

This array formula only checks for "a" or "x".

=IF(OR((A1:C1="a"),(A1:C1="x")),"Fail","Pass")

Ctrl+Shift+Enter
 
D

Dave Peterson

If you can always just have Pass/Fail (only depend on a's and x's):

=IF(SUM(COUNTIF(A1:C1,{"a","x"}))>0,"Fail","Pass")

If you can have other options besides a,x, b,c,e:
=IF(SUM(COUNTIF(A3:C3,{"a","x"}))>0,"Fail",
IF(SUM(COUNTIF(A3:C3,{"b","c","e"}))>0,"Pass","Undefined"))

If you're going to compose in MSWord, you should turn those smart quotes off.
It really clutters up your message's intent.

Maybe composing in NotePad would be better????
 

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

Top