Areallusernamestaken
New Member
- Joined
- Apr 16, 2021
- Messages
- 44
- Office Version
- 365
- Platform
- Windows
- Web
Hi,
I am trying to import ID numbers from spreadsheet2 into spreadsheet1. Spreadsheet2 contains both names and ID numbers, while spreasheet1 contains just names.
However, the names don't always appear identically on both lists. For example, a name might appear once with a middle initial and once without a middle initial.
Spreadsheet1:
Spreadsheet2:
To prevent it from giving an error when it doesn't match exactly, I tried to circumvent it by splitting the name column on spreadsheet2 into Last, First, and MIddle initial columns and then telling it that it needs to contain both the first and last name in order to return the ID. I wrote the following formula:
=IF(AND(ISNUMBER(SEARCH('Spreadsheet2'!L2,B2)),ISNUMBER(SEARCH('Spreadsheet2'!M2,B2))),INDEX('Spreadsheet2'!$A:$A,MATCH(B2,'Spreadsheet2'!$B:$B,0)),"Fill in")
What am I doing wrong?
Thank you!
I am trying to import ID numbers from spreadsheet2 into spreadsheet1. Spreadsheet2 contains both names and ID numbers, while spreasheet1 contains just names.
However, the names don't always appear identically on both lists. For example, a name might appear once with a middle initial and once without a middle initial.
Spreadsheet1:
Spreadsheet2:
To prevent it from giving an error when it doesn't match exactly, I tried to circumvent it by splitting the name column on spreadsheet2 into Last, First, and MIddle initial columns and then telling it that it needs to contain both the first and last name in order to return the ID. I wrote the following formula:
=IF(AND(ISNUMBER(SEARCH('Spreadsheet2'!L2,B2)),ISNUMBER(SEARCH('Spreadsheet2'!M2,B2))),INDEX('Spreadsheet2'!$A:$A,MATCH(B2,'Spreadsheet2'!$B:$B,0)),"Fill in")
What am I doing wrong?
Thank you!