+ Reply to Thread
Results 1 to 5 of 5

Partial Match Lookup

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Partial Match Lookup

    Would like a formula lookup values in column A2:A11 and if the value in D2 is in the list, formula should return exact match in F2. For example, if D2 = C and A1:A11 = see below, formula should return C and not CCC.

    The formula I am using is not return the correct value and will need to be modified.
    Please Login or Register  to view this content.
    Thanks

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Partial Match Lookup

    Try ...

    =IFERROR(INDEX($A$2:$A$11,MATCH(D2,$A$2:$A$11,0)),"")

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Partial Match Lookup

    You'll need to think about what you want it to return of an exact match is not found. As modified (and as in your original) this simply returns the first "partial" match it sees, when no exact match is found:

    =IFERROR(VLOOKUP($D$2,$A$2:$A$11,1,0),VLOOKUP("*"&$D$2&"*",$A$2:$A$11,1,0))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Partial Match Lookup

    Works like a charm. Thanks Kennedy.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Partial Match Lookup

    Thanks for the Reputation that you have added. It's much appreciated.

+ 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 with partial text match
    By teekey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2014, 03:47 PM
  2. Reverse Partial match lookup
    By Stueymac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-05-2013, 05:12 AM
  3. [SOLVED] Lookup partial match and enter that in another column same row
    By markDuffy in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 02-20-2013, 05:46 PM
  4. Replies: 5
    Last Post: 02-24-2011, 11:26 AM
  5. Partial Match Lookup
    By mikesc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2011, 07:52 AM
  6. formula lookup partial field match
    By henrys212 in forum Excel General
    Replies: 1
    Last Post: 02-26-2009, 04:05 AM
  7. [SOLVED] partial lookup/match
    By myra_deV in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-09-2006, 10:25 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