armandoferrari
New Member
- Joined
- May 14, 2019
- Messages
- 3
Hello,
I am trying to write a formula that checks whether or not an order was placed after/before hours in different time zones across three states. Would really appreciate if someone could help.
I've tried nesting a few IFs with OR and AND but can't seem to figure out the correct combination/order. This is the base formula i'm working off of; =IF(AB2>=(--"8:00 PM"),"Yes","No")
The 'time' (using Eastern) is in cell AB2
The 'state' (OR, KY, or IN) is in cell X2
I am essentially trying to write: tell me Yes if an order is placed after 8pm or before 9am in KY and IN, after 11pm or before 12pm in OR, or tell me No.
Another way of looking at it with the cells; IF (AB2 is >=8pm or <9am, and X2 is either "IN" or "KY") or (AB2 is >=11pm or <12pm and X2 is "OR") give me the result Yes, if false give me the result No.
Not sure if this could even be done.
Thanks,
Armando
I am trying to write a formula that checks whether or not an order was placed after/before hours in different time zones across three states. Would really appreciate if someone could help.
I've tried nesting a few IFs with OR and AND but can't seem to figure out the correct combination/order. This is the base formula i'm working off of; =IF(AB2>=(--"8:00 PM"),"Yes","No")
The 'time' (using Eastern) is in cell AB2
The 'state' (OR, KY, or IN) is in cell X2
I am essentially trying to write: tell me Yes if an order is placed after 8pm or before 9am in KY and IN, after 11pm or before 12pm in OR, or tell me No.
Another way of looking at it with the cells; IF (AB2 is >=8pm or <9am, and X2 is either "IN" or "KY") or (AB2 is >=11pm or <12pm and X2 is "OR") give me the result Yes, if false give me the result No.
Not sure if this could even be done.
Thanks,
Armando