PC Review


Reply
Thread Tools Rate Thread

How to auto-fill text based on text in another cell

 
 
=?Utf-8?B?SmFzb24=?=
Guest
Posts: n/a
 
      16th Feb 2005
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
 
Reply With Quote
 
 
 
 
Jason Morin
Guest
Posts: n/a
 
      16th Feb 2005
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
>.
>

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      16th Feb 2005
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 Data>Validation>List. Select M1:M10 as your list.


Gord Dibben Excel MVP

On Wed, 16 Feb 2005 10:59:04 -0800, "Jason" <(E-Mail Removed)>
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


 
Reply With Quote
 
swatsp0p
Guest
Posts: n/a
 
      16th Feb 2005

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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto fill text columns based on rows Cecilia Microsoft Excel Worksheet Functions 3 29th Mar 2010 10:51 PM
Auto fill a text field based on a checkbox TinaR Microsoft Access Forms 4 12th Aug 2009 01:15 PM
Auto-fill form text box based on date range Matt_F Microsoft Access 13 9th Jun 2009 04:36 PM
Auto-fill in based on PART of another text box =?Utf-8?B?SUxvdmVBY2Nlc3M=?= Microsoft Access 1 5th May 2005 03:28 AM
HOW CAN I AUTO FILL A CELL WITH TEXT FROM ANOTHER WORKSHEET TEXT . =?Utf-8?B?d2F6?= Microsoft Excel Worksheet Functions 2 29th Dec 2004 07:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 PM.