I'm trying to lookup a person's name and return an ID number (Spreadsheet 1) from another spreadsheet that has the name and ID number (Spreadsheet 2). However, the names in Spreadsheet 1 may only contain either partial text, or contain more text, slightly different text, than what is in the name column in Spreadsheet 2. I've tried using partial text vloookup, as well as other match, index-match, and other vlookup functions.
Ex.)
Spreadsheet 1
- I have a list of around 500 names that are entered into individual cells in the form (Last Name, First Name) or (Company Name); sometimes the first name or the last name, or both the first and last name, will be in the same cell as the company name (e.g., Arcane Builders Co. - Bob and Cheryl)
- I have tried taking that list of 500 names/companies and removing text that includes: spaces, commas, ampersands, etc. (e.g., Smith, Michael --> SmithMichael; Arcane Builders Co. - Bob and Cheryl --> ArcaneBuildersCoBobCheryl)
Spreadsheet 2
- I have 2 columns that correspond to around 16,500 names (Column A) with respective number IDs (Column B)
- I have also removed all spaces, commas, etc. in the name column in this spreadsheet
Spreadsheet 1
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Company/Name[/TD]
[TD]Number_ID[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]SmithMichael[/TD]
[TD]=vlookup(...[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]JonesSarah[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ArcaneBuildersCoBobCheryl[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Spreadsheet 2
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Company/Name[/TD]
[TD]Number_ID[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]MichaelSmith[/TD]
[TD]97362[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]SarahJones[/TD]
[TD]34556[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ArcaneBuildersCo[/TD]
[TD]56712[/TD]
[/TR]
</tbody>[/TABLE]
- I have tried running a partial text vlookup, but I think I'm not returning nearly as many number IDs because the names are often written in reverse order in the 2 spreadsheets
=vlookup("*"&A2&"*",[Book1.xlsx]Sheet2!$A$2:$B$16464,2,false)
- This function is bringing back a lot of #NA when I know they are in the other spreadsheet, just written in reverse order
- I have also tried running Index-match functions and still no good (Not sure If I'm doing it right...)
Any suggestions?
Ex.)
Spreadsheet 1
- I have a list of around 500 names that are entered into individual cells in the form (Last Name, First Name) or (Company Name); sometimes the first name or the last name, or both the first and last name, will be in the same cell as the company name (e.g., Arcane Builders Co. - Bob and Cheryl)
- I have tried taking that list of 500 names/companies and removing text that includes: spaces, commas, ampersands, etc. (e.g., Smith, Michael --> SmithMichael; Arcane Builders Co. - Bob and Cheryl --> ArcaneBuildersCoBobCheryl)
Spreadsheet 2
- I have 2 columns that correspond to around 16,500 names (Column A) with respective number IDs (Column B)
- I have also removed all spaces, commas, etc. in the name column in this spreadsheet
Spreadsheet 1
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Company/Name[/TD]
[TD]Number_ID[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]SmithMichael[/TD]
[TD]=vlookup(...[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]JonesSarah[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ArcaneBuildersCoBobCheryl[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Spreadsheet 2
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Company/Name[/TD]
[TD]Number_ID[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]MichaelSmith[/TD]
[TD]97362[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]SarahJones[/TD]
[TD]34556[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ArcaneBuildersCo[/TD]
[TD]56712[/TD]
[/TR]
</tbody>[/TABLE]
- I have tried running a partial text vlookup, but I think I'm not returning nearly as many number IDs because the names are often written in reverse order in the 2 spreadsheets
=vlookup("*"&A2&"*",[Book1.xlsx]Sheet2!$A$2:$B$16464,2,false)
- This function is bringing back a lot of #NA when I know they are in the other spreadsheet, just written in reverse order
- I have also tried running Index-match functions and still no good (Not sure If I'm doing it right...)
Any suggestions?