Professional Documents
Culture Documents
Girish: How To Separe Name ? Girish Kumar Kapoor Girish Girish Girish Girish How To Separe Surname ? Girish Kumar Kapoor
Girish: How To Separe Name ? Girish Kumar Kapoor Girish Girish Girish Girish How To Separe Surname ? Girish Kumar Kapoor
Girish: How To Separe Name ? Girish Kumar Kapoor Girish Girish Girish Girish How To Separe Surname ? Girish Kumar Kapoor
kapoor
kumar kapoor
kumar kapoor
Girish
Girish
Answer
=MID(A1,FIND(CHAR(22),SUBSTITUTE(A1," ",CHAR(22),LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))+1,255)
This will return the last word in a phrase separated by blanks, so will work on 2, 3, or more part names.
The LEN(A1)-LEN(SUBSTITUTE(A1," ","")) temporarily changes blanks to nulls, and by subtracting these 2 you
haracter. Then I FIND the location of this CHAR(22), the last blank, and add 1 to get the first position after that character.
n after that character. That's passed to the MID function.