If and then formula

Roo007

New Member
Joined
Nov 15, 2015
Messages
36
If you could help with the formula real quick I’d appreciate it. In cell A1 I have a drop-down list of states example AZ, TX, NY, NJ. And sell A2 I have drop-down list with letters a BOO, TRX, ETC.
And cell A3 I needed to function as: if A1 contains AZ, CA, NY, or TX & A2=BOO then A3 will say TRUE or YES or something like that.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
How about
Excel Formula:
=AND(A2="BOO",OR(A1={"AZ","CA","NY","TX"}))
 
Upvote 0
Solution
That's where you put the formula.
 
Upvote 0
Ok, it worked. I guess when i typed it, i messed something up. But when I copied it, it worked. Thank you!!
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0
No, but if you just want to bring it to somebodies attention, you could use conditional formatting to highlight the cell
 
Upvote 0

Forum statistics

Threads
1,216,066
Messages
6,128,573
Members
449,459
Latest member
20rayallen

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