OS: XP
XL: 2002
Need help extracting ONLY first and last names from strings such as these:
Deborah P. Sloan
John Mark P Cooledge
Kami (Kamisaki) Tomodachi
First name so far no problem using:
=UPPER(LEFT(D2,IF(ISERROR(FIND(" ",D2,1)),LEN(D2),FIND(" ",D2,1)-1)))
Last name extraction no successful using:
=TRIM(RIGHT(D2,LEN(D2)-IF(ISERROR(FIND(" ",D2,FIND(" ",D2,FIND(" ",D2,1)+2))),LEN(D2),FIND(" ",D2,FIND(" ",D2,FIND(" ",D2,1)+2))-1)))
This formula only works if applied to simple first and last combo. Would much appreciate a solution.
XL: 2002
Need help extracting ONLY first and last names from strings such as these:
Deborah P. Sloan
John Mark P Cooledge
Kami (Kamisaki) Tomodachi
First name so far no problem using:
=UPPER(LEFT(D2,IF(ISERROR(FIND(" ",D2,1)),LEN(D2),FIND(" ",D2,1)-1)))
Last name extraction no successful using:
=TRIM(RIGHT(D2,LEN(D2)-IF(ISERROR(FIND(" ",D2,FIND(" ",D2,FIND(" ",D2,1)+2))),LEN(D2),FIND(" ",D2,FIND(" ",D2,FIND(" ",D2,1)+2))-1)))
This formula only works if applied to simple first and last combo. Would much appreciate a solution.