+ Reply to Thread
Results 1 to 4 of 4

lookup on text string

  1. #1
    Registered User
    Join Date
    10-11-2011
    Location
    NYC
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    2

    lookup on text string

    Jeez, what a terribly undescriptive subject! sorry

    Lookup range has values "<City>, <State>":
    • Chicago, IL
    • NYC, NY
    • LA, CA
    • Denver, CO

    Lookup value is "<City>":
    • Chicago
    • Denver
    • LA
    • NYC

    Can anyone suggest a formula that will return the value from the first list given items from the second list as input?
    I was thinking of some sort of array forumla using FIND, but I haven't had any luck.
    (Actual data is several thousand records in length for both lookup values and reference)
    Last edited by alanconde; 10-11-2011 at 01:41 PM. Reason: solved

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: lookup on text string

    Assuming list is in column A, try:

    =INDEX(A:A,MATCH(C1&"*",A:A,0))


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-11-2011
    Location
    NYC
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    2

    Re: lookup on text string

    Brilliant (and fast); thank you!!!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: lookup on text string

    You're welcome.

    If this has answered your question, please mark your thread as solved. See my signature for details or the FAQ.

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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