• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Find the Matching Erp No for the Given Names

fareedexcel

Member
Dear Experts,

I have a list of staff names where I need to find their ERP No from the source sheet. Both the sheets does not have the names matching properly. For eg: In the required sheet the name showing as JOHN DAVID KING but in the source sheet the name is JOHN DAVID or JOHN KING.

I tried the following ways to capture the ERP#,

  • By splitting the full name in columns and concatenating 1st & 2nd, 1st & 3rd and again using the vlookup formula to capture the erp no from source sheet.
  • Also using vlookup with wild card(*) to find the erp no.

Apart from this, is there any way I can extract the erp no with macro or any easy form
 

Attachments

  • Find the matching Ref No.xlsx
    32.5 KB · Views: 7
Try,

In C2, formula copied down :

=IFERROR(LOOKUP(9^9,SEARCH('Source Sheet'!A$2:A$359,A2),'Source Sheet'!B$2:B$359),"")

Regards
Bosco
 

Attachments

  • Find the matching Ref No(1).xlsx
    38.4 KB · Views: 7
Back
Top