#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default 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



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 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

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default 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



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
using the Excel generic worksheet names instead of user-given names in code Paul Excel Discussion (Misc queries) 5 June 26th 09 08:44 PM
MAKE A LIST OF NAMES FROM REPEATED NAMES IN THE SAME WORKSHEET r.kordahi Excel Discussion (Misc queries) 2 January 3rd 09 08:10 AM
Sorting and matching rows of names with Socials with master list and eliminating the extra names Giacomo Excel Worksheet Functions 1 March 10th 07 01:52 AM
How do I switch the names in a column in Excel Help Me - I need to switch these names Excel Worksheet Functions 2 January 20th 06 07:20 PM
How do I switch names around in excel? Erin Excel Worksheet Functions 2 April 8th 05 05:09 PM


All times are GMT +1. The time now is 05:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"