Separating Names & Last Names

  • Thread starter Thread starter Fernando Gomez
  • Start date Start date
F

Fernando Gomez

I have a long list of Las Names and Names coming from a database, in this
way
Russel...Mark (the dot comes in different numbers from 2 to 6), what I am
trying to do is with a formula, separate last name and put that in a column
& name put in a different column.
A solution was given to use Text to column with delimiter as ".", but
unfortunately, about 25 % of lines is not separated why I do not know, 2
lines could have the same number of characters and same number of "."s, and
one is not separated. does somebody knows another solutionwith a formula.

Thanks
 
Hi Fernando,
I have a long list of Las Names and Names coming from a database, in this
way
Russel...Mark (the dot comes in different numbers from 2 to 6), what I am
trying to do is with a formula, separate last name and put that in a column
& name put in a different column.
A solution was given to use Text to column with delimiter as ".", but
unfortunately, about 25 % of lines is not separated why I do not know, 2
lines could have the same number of characters and same number of "."s, and
one is not separated. does somebody knows another solutionwith a formula.

If A1 contains the full string, then you can get the left-hand part using:
=LEFT(A1,FIND(".",A1)-1)

and the right-hand part using:
=SUBSTITUTE(MID(A1,FIND(".",A1),100),".","")

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top