If or not formula help

notarobot

New Member
Joined
Feb 6, 2017
Messages
4
I'm trying to create a formula that produces a certain value based on a list of options.

Essentially, I want to know whether a someone associated with a city should be placed in "Zone 1", "Zone 2", or "Zone 3". "Zone 1" and "Zone 2" have a set of values associated with them, and then "Zone 3" is everything else.

As an example, let's say Zone 1 represents a certain list of cities--Austin, New York, Philly, Zone 2 represents a certain list of cities--Seattle, Atlanta, Chicago, and Zone 3 is all other cities not listed in Zones 1 or 2.

Any help would be great!
 
Here's the nested IF based on these items:

Austin.....Zone 1
New York.....Zone 1
Philly.....Zone 1
Seattle.....Zone 2
Atlanta.....Zone 2
Chicago.....Zone 2

=IF(OR(A1={"Austin","New York","Philly"}),"Zone 1",IF(OR(A1={"Seattle","Atlanta","Chicago"}),"Zone 2","Zone 3"))
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

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