+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP match to Last Name OR Last Name, First Name

  1. #1
    Forum Contributor
    Join Date
    05-30-2021
    Location
    Colorado Springs
    MS-Off Ver
    Microsoft 365
    Posts
    173

    VLOOKUP match to Last Name OR Last Name, First Name

    Please see the attached.

    I end up with tons of text data in the Name column of the DataEntry Sheet, in either Last Name or Full Name (Last, First) form. I need a VLOOKUP formula in the Desired Results column of the DataEntry Sheet that will produce a match to the Employee ID from the Employee ID column of the Employee Master List Sheet, no matter which of the two forms of Name appear in the Name column of the Data Entry sheet.

    In the case of data entry in the Name column of the Data Entry sheet, the VLOOKUP doesn't need to care about first name. Only looking to match to Employee ID if the last name is a match.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,945

    Re: VLOOKUP match to Last Name OR Last Name, First Name

    In B2 and Copy Down. Be sure that your spelling and capitalizations are the same, ie. SomeBody <> Somebody
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    05-30-2021
    Location
    Colorado Springs
    MS-Off Ver
    Microsoft 365
    Posts
    173

    Re: VLOOKUP match to Last Name OR Last Name, First Name

    Quote Originally Posted by alansidman View Post
    In B2 and Copy Down. Be sure that your spelling and capitalizations are the same, ie. SomeBody <> Somebody
    Did you mean to attach a file and forgot to, or am I missing something? I appreciate your willingness to help.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: VLOOKUP match to Last Name OR Last Name, First Name

    Try one of below formula:

    =INDEX('Employee Master List'!$C$2:$C$3,MATCH(TRUE,INDEX(ISNUMBER(SEARCH('Employee Master List'!$B$2:$B$3,$A2)),),0))

    or

    =INDEX('Employee Master List'!$C$2:$C$3,IFERROR(MATCH(A2,'Employee Master List'!$A$2:$A$3,0),MATCH(TRUE,INDEX(ISNUMBER(SEARCH(A2,'Employee Master List'!$A$2:$A$3)),),0)))
    Quang PT

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,945

    Re: VLOOKUP match to Last Name OR Last Name, First Name

    No, I just forgot to post the formula. Bebo has you now so I will just back away and get some sleep.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,497

    Re: VLOOKUP match to Last Name OR Last Name, First Name

    Worksheet name : Data Entry
    Cell B2 formula , drag down

    HTML Code: 

  7. #7
    Forum Contributor
    Join Date
    05-30-2021
    Location
    Colorado Springs
    MS-Off Ver
    Microsoft 365
    Posts
    173

    Re: VLOOKUP match to Last Name OR Last Name, First Name

    Quote Originally Posted by alansidman View Post
    Did not mean to attach a file. Used your file.
    Ah, didn't know you could do that.

+ 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. VBA function to match multiple criteria faster than vlookup or index match
    By bkav1991 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-09-2020, 09:14 AM
  2. Replies: 1
    Last Post: 08-22-2020, 04:47 PM
  3. Replies: 1
    Last Post: 06-18-2015, 08:45 AM
  4. [SOLVED] Vlookup to Pivot Table, using Match function, returns error if can't find match value
    By AndrewHowarth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2015, 12:10 AM
  5. Replies: 3
    Last Post: 05-19-2014, 02:01 PM
  6. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  7. Replies: 2
    Last Post: 03-16-2012, 12:03 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