• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Divide one cell text to two.

Angelos

New Member
Hello all,

I have a list of my customers with their name and surname in the same cell/column. I want to create a column with their names only and another with their surnames only.

I have tried left and if + text formulas, but did not find the proper way.

Can you help please?

Thank you,
Angelos
 
Hi, Angelos!

Name:
=ESPACIOS(IZQUIERDA(A2;HALLAR(" ";A2)-1)) -----> in English: =TRIM(LEFT(A2,SEARCH(" ",A2)-1))
Surname:
=ESPACIOS(DERECHA(A2;LARGO(A2)-HALLAR(" ";A2))) -----> in English: =TRIM(RIGHT(A2,LEN(A2)-SEARCH(" ",A2)))

Remember that this works for single names and surnames, i.e., if a person has 2 names o a compound surnames or second name initials, it will only consider the first word as name and the rest as surname.

Regards!
 
1] B2, copy down :

=LEFT(A2,FIND(" ",A2)-1)

2] C2, copy down :

=SUBSTITUTE(A2,B2&" ","")

Regards
Bosco
 

Attachments

  • SplitName.xlsx
    9.4 KB · Views: 5
Back
Top