ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF, AND, OR conditions? (https://www.excelbanter.com/excel-worksheet-functions/19848-if-conditions.html)

MEJ

IF, AND, OR conditions?
 
I need M1 to answer "Y"(yes) if several logical conditions are met. I
already have this:
=IF(AND(Q155,L124,P1=""),"Y","")

but I also need M1 to answer "Y" if the following is true (i.e., it would be
an "or" statment in logics).
=IF(AND(Q160,L114,P1="Y"),"Y","")

How do I combine them?

Bob Phillips

=IF(OR(AND(Q155,L124,P1=""),AND(Q160,L114,P1=" Y"))"Y","")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"MEJ" .(donotspam) wrote in message
...
I need M1 to answer "Y"(yes) if several logical conditions are met. I
already have this:
=IF(AND(Q155,L124,P1=""),"Y","")

but I also need M1 to answer "Y" if the following is true (i.e., it would

be
an "or" statment in logics).
=IF(AND(Q160,L114,P1="Y"),"Y","")

How do I combine them?




bj

=IF(or(AND(Q155,L124,P1=""),AND(Q160,L114,P1=" Y")),,"Y","")


"MEJ" wrote:

I need M1 to answer "Y"(yes) if several logical conditions are met. I
already have this:
=IF(AND(Q155,L124,P1=""),"Y","")

but I also need M1 to answer "Y" if the following is true (i.e., it would be
an "or" statment in logics).
=IF(AND(Q160,L114,P1="Y"),"Y","")

How do I combine them?


Jason Morin

One way:

=IF(OR(AND(Q155,L124,P1=""),AND
(Q160,L114,P1="Y")),"Y","")

HTH
Jason
Atlanta, GA


-----Original Message-----
I need M1 to answer "Y"(yes) if several logical

conditions are met. I
already have this:
=IF(AND(Q155,L124,P1=""),"Y","")

but I also need M1 to answer "Y" if the following is

true (i.e., it would be
an "or" statment in logics).
=IF(AND(Q160,L114,P1="Y"),"Y","")

How do I combine them?
.



All times are GMT +1. The time now is 03:51 AM.

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