Multiple Nested IFs, ORs, Ands

G

Guest

I've been playing with nested IFs, ORs, and Ands, with no luck. There may be
an easier way to do what I want, but I'm trying to accomplish the following:

If (B42 = x and B8 = y) or if (B43 = x and B9 = y) or if (B44 = x and B10 = y)
Then insert Yes into cell B1

Any help is apprecaited. THANKS
 
S

Scott

Try:
=IF(OR(AND(B42="x",B8="y"),AND(B43="x",B9="y"),AND(B44="x",B10="y")),"Yes","")

Scott
 
G

Guest

Try this, in cell B1 enter:

=IF(OR(AND(B42="x",B8="y"),AND(B43="x",B9="y"),AND(B44="x",B10="y")),"Yes","No")

HTH,
Elkar
 
H

Harlan Grove

Shelly wrote...
I've been playing with nested IFs, ORs, and Ands, with no luck. There may be
an easier way to do what I want, but I'm trying to accomplish the following:

If (B42 = x and B8 = y) or if (B43 = x and B9 = y) or if (B44 = x and B10 = y)
Then insert Yes into cell B1
....

An alternative,

=IF(SUMPRODUCT((B42:B44=x)*(B8:B10=y)),"Yes","")
 

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