Multiple IF Statement

wizardmagu

Board Regular
Joined
Dec 27, 2012
Messages
58
Office Version
  1. 365
Platform
  1. Windows
I have an IF formula I am trying to get worked out but am having a challenge with it giving me what I need

Column C can be CASED or TOTE and column D can be 0, 1, 2, 3. I want to return "Yes" when any of the following are TRUE

Column C = "Tote" and Column D is 1
Column C = "Cased" and Column D is 2
Column C = "Cased" and Column D is 3

This is the formula I am trying but not sure what I am doing with the OR and AND statement :(

=IF(OR(AND(C12="TOTE",D12=1),AND(C12="Cased",D12=2),AND(,C12="Cased",D12=3)),"Yes","No")
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
=IF((AND(C12="Tote",D12=1)),"Yes",IF((AND(C12="Cased",D12=2)),"Yes",IF((AND(C12="Cased",D12=3)),"Yes","")))
 
Upvote 0
Solution

Forum statistics

Threads
1,213,514
Messages
6,114,078
Members
448,547
Latest member
arndtea

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