Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Reb
 
Posts: n/a
Default Sorting a list of names by last name.

Using Win XP, Excel 2003. All updates installed.

Unfortunately the full name is contained in one cell. for example, Cell A1
contains: John P. Jones. The worksheet cannot be changed so setting up
separate columns is not an option. Is there any way to sort the column by
last name?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Nick Hodge
 
Posts: n/a
Default Sorting a list of names by last name.

Reb

You cannot sort by certain characters in a string via the UI. You will need
to seperate the last name into another column

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"Reb" wrote in message
...
Using Win XP, Excel 2003. All updates installed.

Unfortunately the full name is contained in one cell. for example, Cell A1
contains: John P. Jones. The worksheet cannot be changed so setting up
separate columns is not an option. Is there any way to sort the column by
last name?



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default Sorting a list of names by last name.

On Thu, 16 Mar 2006 20:40:19 -0800, Reb wrote:

Using Win XP, Excel 2003. All updates installed.

Unfortunately the full name is contained in one cell. for example, Cell A1
contains: John P. Jones. The worksheet cannot be changed so setting up
separate columns is not an option. Is there any way to sort the column by
last name?


You will need to set up a helper column that contains only the last name; then
use that helper column as the sort key. You can subsequently delete or hide
the helper column.


--ron
  #4   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default Sorting a list of names by last name.

On Thu, 16 Mar 2006 20:40:19 -0800, Reb wrote:

Using Win XP, Excel 2003. All updates installed.

Unfortunately the full name is contained in one cell. for example, Cell A1
contains: John P. Jones. The worksheet cannot be changed so setting up
separate columns is not an option. Is there any way to sort the column by
last name?



To extract just the last name, assuming they are in the above format, you can
use a formula like:

=MID(" "&A1,FIND(CHAR(1),SUBSTITUTE(" "&A1," ",CHAR(1),
LEN(" "&A1)-LEN(SUBSTITUTE(" "&A1," ",""))))+1,255)

This will pick up the last word in the string. By prepending a <space to the
string as I did, it will not give an error message if there is only a single
name in the string -- it will return that name.


--ron
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
i want to only select one name from a list of the same names rhinozw Excel Discussion (Misc queries) 5 May 21st 08 07:20 PM
looking up names in a list macca Excel Worksheet Functions 1 November 15th 05 02:29 AM
filter 400 names from list 1 from list 2 with 4000 names Ed Excel Worksheet Functions 2 September 4th 05 03:41 PM
How do I print a list of worksheet tab names in a workbook Clif Excel Worksheet Functions 3 March 2nd 05 09:38 PM
Sorting for specific words/numbers in a list Heyna Excel Worksheet Functions 1 November 15th 04 07:59 PM


All times are GMT +1. The time now is 12:21 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"