+ Reply to Thread
Results 1 to 4 of 4

Using lookup function with text and not numbers.

  1. #1
    Registered User
    Join Date
    05-23-2016
    Location
    Piedmont, South Carolina
    MS-Off Ver
    2010
    Posts
    5

    Using lookup function with text and not numbers.

    Hello All,

    I am not sure if this is possible, but what I want to do is take a text value, and lookup the text in the column next to it. Let me try and explain.

    I travel for a living, and on one tab, I have a city name, and state. On another tab, I want to be able to enter the city name, and have the state name automatically populate in the row next to it. So on tab 1 in A5, I have Chicago. In B5, I have Illinois. Now on tab 2 in A20, I have Chicago. I want to populate the word Illinois in B20 on tab 2 of the Excel spreadsheet. Is this possible? I used to think I was half way smart when it came to formulas, but this one has me stumped.

    If it is possible, does the text in A5:Axxx need to be in alphabetical order? I currently have 35 cities on tab 1.

    Currently I do it with a bunch of "If" statements. But it is a hassle.

    Thank You and hopefully I explained it good enough for someone to understand.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using lookup function with text and not numbers.

    Try VLOOKUP

    =VLOOKUP('Tab 2'!A20,'Tab 1'!A$1:B$100,2,0)

  3. #3
    Registered User
    Join Date
    05-23-2016
    Location
    Piedmont, South Carolina
    MS-Off Ver
    2010
    Posts
    5

    Re: Using lookup function with text and not numbers.

    That worked perfectly! Thank you very much for the fast replay and accurate answer.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using lookup function with text and not numbers.

    You're welcome.

+ 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] Lookup function for phone numbers to countries
    By berkeleyjake in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-22-2015, 08:56 AM
  2. Using the LOOKUP function to extract numbers from sentences
    By velda in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-03-2013, 12:04 AM
  3. Lookup Problem with numbers formatted as text
    By jacob@thepenpoint in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2010, 01:05 PM
  4. Lookup both text and numbers
    By davidtla in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2008, 08:26 AM
  5. Problem with Lookup text and numbers
    By Mikedw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2008, 05:04 AM
  6. Lookup both text and numbers
    By Peinecone in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-18-2007, 07:38 AM
  7. Text vs Number when using lookup table of numbers
    By fishsponge in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-02-2007, 10:06 AM

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