Syntax for 2 AND conditions within an OR function.

M

Mike K

Greetings all,

I'm close, I think.
I need to OR two AND conditions. The 60/45 and 12/40 are text formatted

A1 A2
"60/45" AND "Green"
OR
A1 A2
"12/40" AND "Red"

True = YES
False = NO

Thanks Folks!

Mike
 
H

Harlan Grove

Bob Phillips wrote...
or

=IF(OR(A1&A2="60/45Green",A1&A2="12/40Red"),"yes","no") ....
....

In this particular case concatenation works, but it isn't reliable in
general.
 
B

Bob Phillips

Harlan,

Are you referring to numbers?>

Bob

Harlan Grove said:
Bob Phillips wrote... "Red")),"yes","no")
...

In this particular case concatenation works, but it isn't reliable in
general.
 
H

Harlan Grove

Bob Phillips wrote...
Are you referring to numbers?
....

No. The result of the concatenation operator, &, is always text.

But the point is that using OR(x&y="foobar",x&y="doodah") when the
fully qualified test is OR(AND(x="foo",y="bar"),AND(x="doo",y="dah"))
can lead to error when, e.g., x = "foob" and y = "ar" or x = "do" and y
= "odah". IOW, x&y=A&B doesn't necessarily give the same result as
AND(x=A,y=B).
 
Top