Switch names

  • Thread starter kathy at the front desk
  • Start date
K

kathy at the front desk

I have a name list that is first name then last name in same cell. Is there a
way to make it last name then first name? Same cell would be great. Thanks
 
T

T. Valko

One way using a formula in a helper column but with limitations...

Will work on names like:

John Smith
John L. Smith

Will not work on names like:

John Smith Jr.
Oscar De La Hoya

All on one line:

=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",20)),20))
&" "&LEFT(A1,LEN(A1)-LEN(TRIM(RIGHT(
SUBSTITUTE(A1," ",REPT(" ",20)),20)))-1)

--
Biff
Microsoft Excel MVP


"kathy at the front desk" <kathy at the front
(e-mail address removed)> wrote in message
news:[email protected]...
 
J

Jacob Skaria

Use a helper column with the below formula to reverse the names..Once done
copy>paste special>values and remove the current column

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

You will require some find tuning to handle single names...

If this post helps click Yes
 
T

T. Valko

If the convention is strictly Firstname Lastname:

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

kathy at the front desk

PERFECT!

Thanks!

Jacob Skaria said:
Use a helper column with the below formula to reverse the names..Once done
copy>paste special>values and remove the current column

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

You will require some find tuning to handle single names...

If this post helps click Yes
 
L

L. Howard Kittle

Try this, where there is a comma seperating the last and first names.

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

or

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

Which does the same thing.

HTH
Regards,
Howard

"kathy at the front desk" <kathy at the front
(e-mail address removed)> wrote in message
news:[email protected]...
 

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

Top