Girish: How To Separe Name ? Girish Kumar Kapoor Girish Girish Girish Girish How To Separe Surname ? Girish Kumar Kapoor

You might also like

Download as xls, pdf, or txt
Download as xls, pdf, or txt
You are on page 1of 4

How to separe Name ?

Girish kumar kapoor Girish


Girish
Girish
Girish
Girish
How to separe surName ?
Girish kumar kapoor

kapoor
kumar kapoor

Girish kapoor kumar kapoor


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.

You might also like