multiple if statement formula help

plost33

Well-known Member
Joined
Oct 2, 2008
Messages
866
I have the following formula which works great. I need to add one arguement to it. I have indicated its location in red in the second example. It should read: "if K2 is not "Mobilization/Build Out" OR "Demobilization".

i cannot seem to get the OR part to work.

=IF(AND(H2="Wild Well Control",B2<>"Talisman - Project Delayed Start",K2<>"Mobilization/Build Outs"),S2,IF(AND(B2<>"Talisman - Project Delayed Start",K2<>"Mobilization/Build Outs"),S2-Q2,"Mobe/Delay"))

=IF(AND(H2="Wild Well Control",B2<>"Talisman - Project Delayed Start",or(K2<>"Mobilization/Build Outs",K2<>"Demobilization")),S2,IF(AND(B2<>"Talisman - Project Delayed Start",K2<>"Mobilization/Build Outs"),S2-Q2,"Mobe/Delay"))
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Will this work?
=IF(AND(H2="Wild Well Control",B2<>"Talisman - Project Delayed Start",or(NOT(K2<>"Mobilization/Build Outs"),NOT(K2<>"Demobilization"))),S2,IF(AND(B2<>"Talisman - Project Delayed Start",K2<>"Mobilization/Build Outs"),S2-Q2,"Mobe/Delay"))
 
Upvote 0
Or and AND logic can get very tricky/confusing...

This
OR(K2<>"Mobilization/Build Outs",K2<>"Demobilization")
Will ALWAYS be TRUE, never false..
With the exeption of an Error Value in K2, then the OR returns the same error.

Think about it, wrap your head around it.

No matter what you put in K2, the OR will be true.

If K2 DOES = "Mobilization/Build Outs", then certainly K2 does NOT = "Demobilization"
So the OR is TRUE (1 of the 2 arguments was true).

If K2 DOES = "Demobilization", then certainly K2 does NOT = "Mobilization/Build Outs"
So the OR is TRUE (1 of the 2 arguments was true).

If K2 = ANYTHING else, then K2 certainly does not equal either "Mobilization/Build Outs" or "Demobilization"
So the OR is TRUE (both arguments are true)


I think you mean AND
So just add it to the original AND

=IF(AND(H2="Wild Well Control",B2<>"Talisman - Project Delayed Start",K2<>"Mobilization/Build Outs",K2<>"Demobilization"),S2,IF(AND(B2<>"Talisman - Project Delayed Start",K2<>"Mobilization/Build Outs"),S2-Q2,"Mobe/Delay"))

Hope that helps.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,794
Members
452,943
Latest member
Newbie4296

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