ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Switch names (https://www.excelbanter.com/excel-worksheet-functions/249285-switch-names.html)

kathy at the front desk

Switch names
 
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

Gord Dibben

Switch names
 
See Chip Pearson's site.

http://www.cpearson.com/excel/FirstLast.htm


Gord Dibben MS Excel MVP

On Tue, 24 Nov 2009 10:53:02 -0800, kathy at the front desk <kathy at the
front wrote:

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. Valko

Switch names
 
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
wrote in message
...
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




Jacob Skaria

Switch names
 
Use a helper column with the below formula to reverse the names..Once done
copypaste specialvalues 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
---------------
Jacob Skaria


"kathy at the front desk" wrote:

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. Valko

Switch names
 
If the convention is strictly Firstname Lastname:

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

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
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
wrote in message
...
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






kathy at the front desk[_2_]

Switch names
 
PERFECT!

Thanks!

"Jacob Skaria" wrote:

Use a helper column with the below formula to reverse the names..Once done
copypaste specialvalues 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
---------------
Jacob Skaria


"kathy at the front desk" wrote:

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


L. Howard Kittle

Switch names
 
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
wrote in message
...
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




Teethless mama

Switch names
 
=MID(A1&" "&A1,FIND(" ",A1)+1,LEN(A1))


"kathy at the front desk" wrote:

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



All times are GMT +1. The time now is 05:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com