PC Review


Reply
Thread Tools Rate Thread

Covert Text String Data

 
 
Pat
Guest
Posts: n/a
 
      13th Aug 2008
I need take a column of abbreviated state names (in random order and
frequency) in sheet 1 and have them converted to the states full name in the
appropriate cell in sheet 2. Here's an example:

Sheet 1 Sheet 2
Row 2 column 4 = MD Row 2 column 5 = Maryland
Row 3 column 4 = AK Row 3 column 5 = Alaska

So the sheet one abbreviation needs to go through some process where it
looks at all 50 states and then selects the right state. I tried to do an
"IF" but that has a limit of about 7 or 8 and that's all. Obviously I need
something that will do 50. Any suggestions?
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      13th Aug 2008
You need to build a lookup table of two columns, state abbreviation and then
name, and lookup that value

=VLOOKUP(D2,Sheet2!E:F,2,False)

--
__________________________________
HTH

Bob

"Pat" <(E-Mail Removed)> wrote in message
news:A83A0E44-3CCE-4D0E-BBB5-(E-Mail Removed)...
>I need take a column of abbreviated state names (in random order and
> frequency) in sheet 1 and have them converted to the states full name in
> the
> appropriate cell in sheet 2. Here's an example:
>
> Sheet 1 Sheet 2
> Row 2 column 4 = MD Row 2 column 5 = Maryland
> Row 3 column 4 = AK Row 3 column 5 = Alaska
>
> So the sheet one abbreviation needs to go through some process where it
> looks at all 50 states and then selects the right state. I tried to do an
> "IF" but that has a limit of about 7 or 8 and that's all. Obviously I
> need
> something that will do 50. Any suggestions?



 
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
Covert string to System.Guid, how?? Jeff Microsoft ASP .NET 2 16th Apr 2007 05:10 PM
Covert string to date, etc MCI Microsoft Excel Misc 1 8th Dec 2006 06:25 PM
How to covert an Oracle GUID to string ? =?Utf-8?B?RnJlZGR5Ym95?= Microsoft ADO .NET 2 27th Nov 2006 08:24 AM
Covert UTC String to UTC Datetime =?Utf-8?B?aGVuaw==?= Microsoft ASP .NET 3 7th May 2006 07:25 PM
Decimal or String Covert to Hex Value Michael Chong Microsoft VC .NET 1 15th Sep 2004 02:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:46 AM.