Changing text in a cell from last name first to first name first.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to change the data in a column from last name first to first name
first.

Example Doe, John to John Doe

Thanks
 
This was posted recently by Teethless Mama (Apologies if it was someone
else). Can't find the post but I did copy it:-

=IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))=2,RIGHT(A1,LEN(A1)-FIND(" ",A1,FIND("
",A1)+1))&", "&LEFT(A1,FIND(" ",A1))&" "&MID(A1,FIND("
",A1)+1,FIND("",A1,FIND(" ",A1)+1)-FIND(" ",A1)),RIGHT(A1,LEN(A1)-FIND("
",A1))&","&LEFT(A1,FIND(" ",A1)-1))

Mike
 
in a "helper" column (say B):

in B1:

=MID(A1,FIND(",",A1)+1,255) & " " & LEFT(A1,FIND(",",A1)-1)

Copy down

Copy/Paste Special to get values (remove formula)
 

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