IF function

snash

Board Regular
Joined
Jan 12, 2006
Messages
222
In a new column I want the result to be "Channel" except for the following criteria:

If column A(District) = Intercompany and
if column C(Product group) <> Chocolate
and column B(Country) = US with
column C(Product group) = Fruit, veg or Minerals

Does this make sense?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Your original logic flow is a little unclear to me. I took it to mean either of two conditions (OR statement) may be true to override the default of Channel:

So either:
1. A = Intercompany AND C <> Chocolate
2. B = US AND C = any of {Fruit, Veg, Minerals}

Use the following formula:
=IF(OR(AND(A2="Intercompany",C2<>"Chocolate"),AND(B2="US",ISNUMBER(MATCH(C2,{"Fruit","Veg","Minerals"},0)))),"YOUR CHOICE","Channel")
 
Upvote 0
thanks a million - glad you were able to dicpher what I couldn't write :) It works perfectly - Thank you!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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