Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jason
 
Posts: n/a
Default How to auto-fill text based on text in another cell

Hello,

I need to know how to auto-fill text based on text in another cell. For
example:

Every time I enter "CHS" in Column B, I want Charleston to auto-fill in
Column C.
And when I enter "SAN", in Column B, I want San Diego to auto-fill in Column
C.

How can I set up a list like this? Any ideas?

Thanks!

Jason
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

One way is to create a table of airport codes and cities,
then use VLOOKUP. See here for instructions:

http://www.contextures.com/xlFunctions02.html

HTH
Jason
Atlanta, GA

-----Original Message-----
Hello,

I need to know how to auto-fill text based on text in

another cell. For
example:

Every time I enter "CHS" in Column B, I want Charleston

to auto-fill in
Column C.
And when I enter "SAN", in Column B, I want San Diego to

auto-fill in Column
C.

How can I set up a list like this? Any ideas?

Thanks!

Jason
.

  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

Jason

Probably VLOOKUP could work for you.

Assume your table of abbreviations and cities are in M1:N10

In C1 enter =VLOOKUP(B1,$M$1:$N$10,2,0)

Enter CHS in B1 to return Chareston in C1.

You could also turn B1 into a drop-down list so's you could just pick the
abbreviation, not type it.

Select B1 then DataValidationList. Select M1:M10 as your list.


Gord Dibben Excel MVP

On Wed, 16 Feb 2005 10:59:04 -0800, "Jason"
wrote:

Hello,

I need to know how to auto-fill text based on text in another cell. For
example:

Every time I enter "CHS" in Column B, I want Charleston to auto-fill in
Column C.
And when I enter "SAN", in Column B, I want San Diego to auto-fill in Column
C.

How can I set up a list like this? Any ideas?

Thanks!

Jason


  #4   Report Post  
swatsp0p
 
Posts: n/a
Default


use a vlookup table

Create your table on a new sheet (name the range "MyList") with Char |
Charleston, San | San Diego, Det | Detroit, Chi | Chicago, Lon |
London....etc. in adjacent columns and sort ascending.

In your first cell in col C (Cn) enter =VLOOKUP(Bn,MyList,2) {change
the 'n' to match the row you are in}

Copy this formula down your desired range

entering San in Bn will return San Diego in Cn

Question: How will you handle San Jose, San Antonio, etc.?

HTH


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=346038

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto fill option box disappeared sbrimley Excel Worksheet Functions 5 February 4th 05 03:21 AM
HOW CAN I AUTO FILL A CELL WITH TEXT FROM ANOTHER WORKSHEET TEXT . waz Excel Worksheet Functions 2 December 29th 04 07:49 PM
Putting text in a column based on variable text from another colum Jacky D. Excel Discussion (Misc queries) 1 December 16th 04 06:09 PM
Identifying the Active Fill Color Steve Conary Excel Discussion (Misc queries) 3 December 9th 04 04:45 AM
Auto Fill Options Patti B Excel Discussion (Misc queries) 3 December 9th 04 12:49 AM


All times are GMT +1. The time now is 11:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"