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

Accepted Answer
0 votes
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
Community showcase
Published 58m ago in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

33 views 0 3
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