Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / December 2007

Tip: Looking for answers? Try searching our database.

Change 3 letter text string to a number string

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pete - 31 Dec 2007 19:27 GMT
Hello,

I have a spreadsheet with a string of 3 letters (ATL) per cell, which
represent an airport.  There are 24 different 3 letter combinations.  I want
to change the 3 letter combination to a corresponding 3 number combination.

Example:
ATL = 300
BDL = 245

Is there a way to do this without modifying auto correct?

Thanks,

Pete
Mike H - 31 Dec 2007 19:35 GMT
One way.

Create a tanle of airports and numbers similar to this
Col a       Col B
ATL    1
BOS    2
OHR    3
CDG    4
GAT    5

Then if you airpoty code is in C1 theis formula returns its number

=VLOOKUP(C1,A1:B5,2,FALSE)

Mike

> Hello,
>
[quoted text clipped - 11 lines]
>
> Pete
Pete - 31 Dec 2007 19:47 GMT
Thanks Mike.  I don't know why I didn't think of it this way.  

> One way.
>
[quoted text clipped - 27 lines]
> >
> > Pete
CLR - 31 Dec 2007 19:36 GMT
This sort of thing is usually done with the VLOOKUP, utilizing a separate
cell.  If you are wanting to type in the "ATL" and have Excel automatically
change it to the "300", in the same cell,  then that can be done with
macros.......

Vaya con Dios,
Chuck, CABGx3

> Hello,
>
[quoted text clipped - 11 lines]
>
> Pete
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.