Change number to city name

In the attached xl 2010 sheet, I have a list of names with offices represented by a number (entered as text in the sheet). I want to convert the numbers to the names of cities, so for instance where is has under the Office column 01, I would want  to change the 01 to be San Francisco, and 02 to be New York, etc.

Thanks
C--Users-RLaughridge-Desktop-Temp-Number
contrainAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Anne TroyEast Coast ManagerCommented:
I don't think that's an Excel file. As a start, however, you might want to try VLOOKUP. Otherwise, I await an Excel file.
0
contrainAuthor Commented:
Sorry about that, I uploaded the wrong file. The correct one is now attached.
NumberToCities.xlsx
0
Anne TroyEast Coast ManagerCommented:
First thing you need is a list of numbers with corresponding cities.

Then, you need to let us know if you want a formula or a VBA macro that'll do it for you.

I have done the formula method... don't know how to do the macro method.

See the Lookups sheet for the reference.
NumberToCities.xlsx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Ryan ChongCommented:
In addition, you can also create a List in excel, and then use Data Validation to link to the office source (check the worksheet "Lookups2" in NumberToCities (1).xlsx attached), so that user can select the office from a dropdown list instead of typing the Office Number. That could be a more user-friendly interface if this is the approach to be used.
0
Ryan ChongCommented:
Oppps, here's the attached doc.
NumberToCities--1-.xlsx
0
contrainAuthor Commented:
Both answers were great, and gave me what I wanted, but this expert's answer involved fewer fields so it's one less choice for the user to make.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.