snash

Board Regular
Joined
Jan 12, 2006
Messages
217
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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
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,213,565
Messages
6,114,338
Members
448,570
Latest member
rik81h

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