angeliccharm
New Member
- Joined
- May 5, 2023
- Messages
- 1
- Office Version
- 365
- 2021
- Platform
- Windows
Hi, hope you're well. As the title says, what formula would I use to return a customers ID which looks at their first, middle, and surname individually? Within the sample data, there are also some data which aren't in the same format e.g., for A11 (small comm) would not be necessary.
As of now, I am using the formula for a partial vlookup: =VLOOKUP("*"&A2&"*",'Data - FULL DUMP'!H1:$AF$46708,25,FALSE) for column F to bring back ID 2. However, I would like a formula that looks at column B, C and D which also takes into account any random text that may come after each part of the name.
To bring back the first, middle and last name I have used the following:
Column B: =LEFT(A2,FIND(" ", A2)-1)
Column C: =VLOOKUP(A2&"*",'Data - FULL DUMP'!$H$1:$L$46708,5,FALSE)
Column D: =RIGHT(A2,LEN(A2)-FIND("*",SUBSTITUTE(A2," ","*",LEN(A2)-LEN(SUBSTITUTE(A2," ","")))))
I've also tried using the formula: =VLOOKUP("*"&B2&"*"&C2&"*"&D2&"*", Data - FULL DUMP'!H1:$AE$46708,24,FALSE) but it brings back N/A so not sure if there's something wrong with my formula?
Thank you!
As of now, I am using the formula for a partial vlookup: =VLOOKUP("*"&A2&"*",'Data - FULL DUMP'!H1:$AF$46708,25,FALSE) for column F to bring back ID 2. However, I would like a formula that looks at column B, C and D which also takes into account any random text that may come after each part of the name.
To bring back the first, middle and last name I have used the following:
Column B: =LEFT(A2,FIND(" ", A2)-1)
Column C: =VLOOKUP(A2&"*",'Data - FULL DUMP'!$H$1:$L$46708,5,FALSE)
Column D: =RIGHT(A2,LEN(A2)-FIND("*",SUBSTITUTE(A2," ","*",LEN(A2)-LEN(SUBSTITUTE(A2," ","")))))
I've also tried using the formula: =VLOOKUP("*"&B2&"*"&C2&"*"&D2&"*", Data - FULL DUMP'!H1:$AE$46708,24,FALSE) but it brings back N/A so not sure if there's something wrong with my formula?
Thank you!
Last edited by a moderator: