+ Reply to Thread
Results 1 to 4 of 4

Lookup State Name from State Code and and Display in column in COUNTIES worksheet.

  1. #1
    Forum Contributor
    Join Date
    08-15-2005
    Location
    Oklahoma
    MS-Off Ver
    2010, 2013
    Posts
    112

    Lookup State Name from State Code and and Display in column in COUNTIES worksheet.

    Using the attached Excel file, how do I lookup the State Name (State worksheet) using the State Code (Counties worksheet) and display the State Name in column C (Counties worksheet)?

    Jim
    Attached Files Attached Files
    Jim15

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Lookup State Name from State Code and and Display in column in COUNTIES worksheet.

    Try

    =VLOOKUP(B2,STATE!A:B,2,0)
    Martin

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Lookup State Name from State Code and and Display in column in COUNTIES worksheet.

    You have a mixture of text values and numeric values in your lookup table, so put this in C2:

    =VLOOKUP(IF(B2*1<10,B2,B2*1),STATE!A:B,2,0)

    then copy down.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    08-15-2005
    Location
    Oklahoma
    MS-Off Ver
    2010, 2013
    Posts
    112

    Re: Lookup State Name from State Code and and Display in column in COUNTIES worksheet.

    Thanks to both of you for the quick reply! I decided to use Pete's suggestion and it works like expected.


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA - Determining state from zip code
    By crayhons in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 06-11-2013, 04:45 PM
  2. [SOLVED] Can VB Save hidden/grouped columns state, unhide all, then restore columns to saved state
    By JTwrk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-27-2012, 02:54 PM
  3. Excel 2007 : City State Lookup Match formula help
    By rschopper in forum Excel General
    Replies: 0
    Last Post: 01-27-2011, 03:11 PM
  4. Web lookup query (have: city & state | want: zip code)
    By avatarr in forum Excel General
    Replies: 0
    Last Post: 04-07-2010, 10:49 PM
  5. Lookup up state abbreviations
    By Chakon in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-04-2009, 02:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1