ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Multiple Nested IFs, ORs, Ands (https://www.excelbanter.com/excel-worksheet-functions/125264-multiple-nested-ifs-ors-ands.html)

Shelly

Multiple Nested IFs, ORs, Ands
 
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

Scott

Multiple Nested IFs, ORs, Ands
 
Try:
=IF(OR(AND(B42="x",B8="y"),AND(B43="x",B9="y"),AND (B44="x",B10="y")),"Yes","")

Scott

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

Any help is apprecaited. THANKS



David Biddulph

Multiple Nested IFs, ORs, Ands
 
=IF(OR(AND(B42=x,B8=y),AND(B43=x,B9=y),AND(B44=x,B 10=y)),"Yes","")
--
David Biddulph

"Shelly" wrote in message
...
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




Elkar

Multiple Nested IFs, ORs, Ands
 
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


"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

Any help is apprecaited. THANKS


Shelly

Multiple Nested IFs, ORs, Ands
 
EXCELLENT! Thank you!

"Scott" wrote:

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

Scott

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

Any help is apprecaited. THANKS




Harlan Grove

Multiple Nested IFs, ORs, Ands
 
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","")



All times are GMT +1. The time now is 11:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com