Reversing order of text

  • Thread starter Thread starter Sonics
  • Start date Start date
S

Sonics

Within a cell, how do I reverse the position of a last name, first name to
first name then last name? Ex: Doe John to John Doe or Doe, John to John Doe.
 
For names including a comma, use:
=MID(A1,FIND(", ",A1)+2,255) & " " & LEFT(A1,FIND(",",A1)-1)
For names without a comma, use:
=MID(A2,FIND(" ",A2)+1,255) & " " & LEFT(A2,FIND(" ",A2)-1)
 
Hi,
In an adjacent cell enter

=TRIM(RIGHT(D9,FIND(" ",D9)+1))&","&TRIM(LEFT(D9,FIND(" ",D9)))

change range to fit your needs
 
Back
Top