If Or Or Or Statement Then

elsaidmi

New Member
Joined
Mar 19, 2015
Messages
29
Good afternoon,

I need to write a formula that does the following:

If cell is (#### or #### or any letter combination) then put "MA"
if cell is (#### or ####) then put "SC"

#### stand for a combination of a few numbers.

Haven't been able to figure it out. Thank you!
 
You have two columns selected from your tab (H and I) where the MATCH() function should be across a single column. If you have two columns of values to check, you should use two separate statements, so:

=IF(OR(NOT(ISERROR(MATCH(D19,'OC Helper'!$H$3:$H$20,0))), NOT(ISERROR(MATCH(D19,'OC Helper'!$I$3:$I$20,0)))),"M","OTHER")

Does that help?

Edit: no problem, hope that works for you and let me know if it breaks.
 
Upvote 0

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