Question regarding the use of If Statement with multiple And/Or conditions

Ublondgirl

New Member
Joined
Jan 7, 2019
Messages
2
Hello,

I am trying to write a formula which encompasses all the following conditions, and am having trouble figuring out how to put them all into one formula with And/Or statements.

Here's the criteria:

If B2 = Full Time and F2 < 172
Or if B2 = Part Time and F2 > 160
Or if B2 = seasonal and F2 > 120

Then "Check"
otherwise "ok"

I can get two of the three in using And & OR, but can't figure out how to add the 3rd condition in there. Any assistance would be greatly appreciated!!!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi,

Try:

=IF(OR(AND(B2="Full Time",F2<172),AND(B2="Part Time",F2>160),AND(B2="Seasonal",F2>120)),"Check","Ok")
 
Upvote 0
Hi & welcome to MrExcel.
How about
=IF(OR(AND(B2="Full Time",F2<172),AND(B2="Part Time",F2>160),AND(B2="seasonal ",F2>120)),"Check","ok")

Beaten2it
 
Last edited:
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,328
Messages
6,124,295
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top