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


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 Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

285 views 38 9
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot