Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel: Sort alphabetically using the last word in a cell?

I have a larg list of names that are formatted first name, sometimes a middle
name or initial, and last names. Can I sort this list alphabetically using
the last names without having to reformat each name?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Excel: Sort alphabetically using the last word in a cell?

The last name is always the word following the last space in the fullname.
This is true if a middle name is present or not.

Assume that the fullnames are in column A. In B1 enter:
=SEARCH("|",SUBSTITUTE(A1," ","|",(LEN(A1)-LEN(SUBSTITUTE(A1," ","")))/LEN("
"))) and copy down

In C1 enter:
=MID(A1,B1+1,256) and copy down. Here is an example:

James Ravenswood 6 Ravenswood
Charley K Watanabe 10 Watanabe

Finally sort cols A thru C by col C.
--
Gary''s Student - gsnu200836


"Brent M" wrote:

I have a larg list of names that are formatted first name, sometimes a middle
name or initial, and last names. Can I sort this list alphabetically using
the last names without having to reformat each name?

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
How do I sort alphabetically in Excel seh60025 Excel Discussion (Misc queries) 1 October 26th 06 10:25 PM
How do I sort contents alphabetically in Excel? Lila Bean Excel Discussion (Misc queries) 1 May 4th 06 05:41 PM
How do I sort my excel list alphabetically by last name? JIMC Excel Discussion (Misc queries) 2 February 21st 06 11:40 PM
How do I sort in Excel alphabetically? Jennifer Excel Discussion (Misc queries) 2 January 20th 06 05:42 PM
How do I sort alphabetically by last letter in Excel? andrewcodd Excel Discussion (Misc queries) 3 July 27th 05 04:09 PM


All times are GMT +1. The time now is 12:10 AM.

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

About Us

"It's about Microsoft Excel"