+ Reply to Thread
Results 1 to 5 of 5

vlookup with multiple partial matches

  1. #1
    Registered User
    Join Date
    07-01-2019
    Location
    Virginia
    MS-Off Ver
    Pro Plus 2016
    Posts
    22

    vlookup with multiple partial matches

    hi all,

    I'm wondering if it is possible to use vlookup for multiple partial matches. What I mean by that is say I have first name in column C, last name in column D (on sheet2). In column C of sheet3 of the same workbook, the cells have the first name and last name somewhere in the cell, but also a lot of other useless information. Can you use vlookup to search for the first name and corresponding last name for a cell in column C(sheet3), and then return the entirety of that cell and not just the first/last name. Also, the first and last name in cell C(sheet3) may be separated by other words, sometimes words may follow the last name, words may be present before the first name, or it could only be first name "space" last name. The only constant is that last name will always be after first name.

    This is the formula I came up with, but its only matching the first name, and so returning the wrong entries.
    =VLOOKUP(C2&D2&"*", Sheet3!$C$2:$C$220, 1, FALSE)


    thanks
    Last edited by richx; 07-09-2019 at 10:14 AM. Reason: typo

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: vlookup with multiple partial matches

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-01-2019
    Location
    Virginia
    MS-Off Ver
    Pro Plus 2016
    Posts
    22

    Re: vlookup with multiple partial matches

    thanks for the response, but its still only returning entries that match first name, but not last name. it seems like the formula just reads the C2 and * and returns first entry available, and doesn't even bother to check for D2.

    is there a way to check if the returned entry has D2, and if not, then skip and search again, and repeat etc. until the formula finds a cell with first and last name?
    I know theres the isnumber(find()) to see if D2 is in the returned entry, but I don't know how to skip and search again.
    Thanks

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: vlookup with multiple partial matches

    It seems to be working for me. Take a look at this example.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-01-2019
    Location
    Virginia
    MS-Off Ver
    Pro Plus 2016
    Posts
    22

    Re: vlookup with multiple partial matches

    ah I'm so sorry, it was an error on my part when I copied it over. your formula works great.
    Thank you for the help!

+ 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. Vlookup Partial Matches HELP
    By ramanm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2018, 07:46 AM
  2. vlookup to find partial matches
    By chris789 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-17-2018, 02:30 AM
  3. Help with looking up Partial text multiple matches
    By cceze in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2016, 01:06 PM
  4. [SOLVED] Multiple partial matches
    By Grinfactor in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-28-2014, 01:15 PM
  5. Replies: 6
    Last Post: 08-16-2013, 08:46 AM
  6. Variation of VLOOKUP that returns all partial matches
    By anthonyle in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 03-14-2013, 12:40 AM
  7. Replies: 2
    Last Post: 10-30-2007, 12:12 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