Hi... I need some help with either a formula or vba routine that will extract last names for a comparison. The names can come into my spreadsheet as any of the following
John Doe
John J Doe
Jonh Jason Doe
John Jason Lee Doe
I've already stripped out all of the suffixes (Jr., Sr, CFA, MD, etc) and am using the following formula. The problem is, for some reason some of the results are blank. I copied this formula from another sheet, but am having trouble following exactly what it's doing. Any help is GREATLY appreciated!
Cell J2 contains the full user name, which is to be compared to another name value from another system which will contain a similar formula.
THANK YOU!
John Doe
John J Doe
Jonh Jason Doe
John Jason Lee Doe
I've already stripped out all of the suffixes (Jr., Sr, CFA, MD, etc) and am using the following formula. The problem is, for some reason some of the results are blank. I copied this formula from another sheet, but am having trouble following exactly what it's doing. Any help is GREATLY appreciated!
Code:
= RIGHT(J2,LEN(J2)-FIND("*",SUBSTITUTE(J2," ","*",LEN(J2)-LEN(SUBSTITUTE(J2," ",""))))))
THANK YOU!
Comment