EXCEL2013 - If cell contains text...

I have a long list of cities and I need to add a column next to it with a corresponding numeric code. For example:

New York4013-601

Vancouver4013-602

Hong Kong4013-603

I have over 900 rows, with 85 difference cities. I typically add the numeric code manually, but I don't usually have this many rows. Is there a way I can have it recognize the text and add the code?

Thank you in advance for saving me hours of work.

1 answer

1 accepted

0 vote
Mizan Community Champion May 06, 2013

If you have a list 85 cities and their code you can use vlookup macro of excel . BTW this is not the right place to ask such questions :) you should ask it to the MS office forum/support .

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

134 views 4 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you