IF OR/AND Statement with multiple conditions

Des_cool

New Member
Joined
Jun 28, 2021
Messages
8
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
I am stuck on this IF AND statement that adds additional conditions. I am able to find one condition but I am trying to add on to it when other conditions are met within the same cell.
e.g.
IF(AND(B2="TEST",C2="one"),"Good","")
this above statement worked to fine this condition but how do I add additional conditions within C2 e.g. if B2="TEST", C2 ="two" or C2="three" or C2="four". I would like to capture all these conditions and mark as "Good"?

What is the best way to write this function? I tried IF OR/AND statements that didn't work. Thanks in advance for your assistance!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
How about
Excel Formula:
=IF(AND(B2="TEST",OR(C2={"one","two","three","four"})),"Good","")
 
Upvote 0
Try

Excel Formula:
=IF(AND(B2="TEST",OR(C2="one",C2="two",C2="three",C2="four")),"Good","")
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,448
Members
448,966
Latest member
DannyC96

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