Nested IF(nested if statements) and if(nested if statements) logic

anderma8

New Member
Joined
Oct 29, 2008
Messages
40
Office Version
  1. 365
Platform
  1. Windows
I think I read all of the "nested if statements" in the forum but I couldn't find my solution - so sorry for starting another one! Here is my situation:

Field AM5 possible values: F, FA, LTI, RMTC, OI, OILWL, [blank]
Field AN5 possible values: E, DC TP

IF AM5 contains: F, LTI, RMTC, OI, OILWL
AND
IF AN5 contains either E or DC

I have the individual nested statements working but not a combined one.

Thanks in advance!
Mark
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try:

=IF(AND(OR(AM5={"F","LTI","RMTC","OI","OILWL"}),OR(AN5={"E","DC"})),"True","False")
 
Upvote 0
I ended up using it on a test sheet and it works! It must be something on my end. THANK YOU VERY MUCH!
 
Last edited:
Upvote 0
Just for kicks, what would it look like if a 3rd nested if of numbers was to be used? I tried:
=IF(AND(OR(D9={"F","LTI","RMTC","OI","OILWL"}),OR(E9={"E","DC"}),OR(f9={1,2}),"TRUE","FALSE"))

but this does not work.
 
Upvote 0
GOT IT:
=IF(AND(OR(D9={"F","LTI","RMTC","OI","OILWL"}),OR(E9={"E","DC"}),OR(F9={1,2})),"TRUE","FALSE")

It took a walk and a cup of coffee!
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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