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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
=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,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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