Conditional formula

snash

Board Regular
Joined
Jan 12, 2006
Messages
222
Hi there,
I want a column to return the values either Channel or Non-channel based on the following criteria but having trouble with the exact formula:

If column A(District) = Intercompany and
If column B(country) = US and
if column C(Product group) = Fruit or Veg
then Show as Channel or else show as Non-channel.


What's the correct logic in writing this in excel formula?

thanks in advance for your help.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
This should work
Code:
=IF(AND(A2="intercompany",B2="us",OR(C2="fruit",C2="veg")),"Channel","Non-Channel")
 
Upvote 0
snash, Good morning.

Try to use:

Code:
=IF(AND(A1="Intercompany",B1="US",OR(C1={"Fruit","Veg"})),"Channel","Non-channel")

Is that what you want?

I hope it helps.
 
Upvote 0
Ok, I'm throwing a little mix in:

Everything will be "Channel" except:

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?
 
Upvote 0
Is this what you want?
Code:
=IF(AND(A2="intercompany",B2<>"chocolate",C2="us",OR(D2={"fruit","veg","minerals"})),"not channel","Channel")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
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