If statement with multiple text conditions

cr2289

New Member
Joined
Jul 21, 2016
Messages
26
Office Version
  1. 365
Platform
  1. Windows
Have a spreadsheet with conditions in column I and based on the value of column I, need to place a value in column Q. The formula is in column Q. All values are text. This is what I've tried.

IF(OR(I3={"AAA", "BBB", "CCC", "DDD}), "Jones", IF(OR(I3={"EEE", "FFF", "GGG'", "HHH"}), "Doe", IF(OR(I3={"III", "JJJ", "KKK", "MMM"}), "Smith"))

This isn't working for me. Help please?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
=IF(OR(I3={"AAA","BBB","CCC","DDD"}),"Jones",IF(OR(I3={"EEE","FFF","GGG'","HHH"}),"Doe",IF(OR(I3={"III","JJJ","KKK","MMM"}),"Smith")))
 
Upvote 0
You have to do it like this
Rich (BB code):
=IF(OR(I3={"AAA","BBB","CCC","DDD"}),"Jones" ,"Do the rest here")
 
Upvote 0
Yes! After I changed the periods to commas, filled in the missing quote marks, and corrected the backwards brackets, it worked perfectly! Thank you , CA_Punit and VBE313!
 
Upvote 0

Forum statistics

Threads
1,214,854
Messages
6,121,941
Members
449,056
Latest member
denissimo

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