How to Combine 2 IF(AND statements with an OR

meppwc

Active Member
Joined
May 16, 2003
Messages
423
I have 2 formulas below that are working correctly, but looking for the proper syntax to combine them with an OR

=IF((AND(U2="35 & above",U2="Critical")),A2,"")
=IF((AND(V2="7 or more days since last update",U3="Critical")),A2,"")

I was trying to do something like below but is not working

=IF((AND(U2="35 & above",U2="Critical")),OR(IF((AND(V2="7 or more days since last update",U3="Critical")),A2,"")
 

Some videos you may like

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Perhaps

=IF(OR(AND(U2="35 & above",U2="Critical"),AND(V2="7 or more days since last update",U3="Critical")),A2,"")
 

Vidar

Well-known Member
Joined
Jul 19, 2012
Messages
1,254
I have 2 formulas below that are working correctly, but looking for the proper syntax to combine them with an OR

=IF((AND(U2="35 & above",U2="Critical")),A2,"")
=IF((AND(V2="7 or more days since last update",U3="Critical")),A2,"")

I was trying to do something like below but is not working

=IF((AND(U2="35 & above",U2="Critical")),OR(IF((AND(V2="7 or more days since last update",U3="Critical")),A2,"")

Hi
There might be something wrong With Your References. I'm guessing here.
In the first one, should it say V2 and U2? And the second one V3 and U3?
If so, try this (not tested)
=IF(OR(AND(V2="35 & above",U2="Critical"),AND(V3="7 or more days since last update",U3="Critical")),A2,"")
 

Watch MrExcel Video

Forum statistics

Threads
1,108,960
Messages
5,525,904
Members
409,671
Latest member
nasseralateek

This Week's Hot Topics

Top