sort help

M

Martin ©¿©¬

Hi
I have a spreadsheet with a list of names
Mr & Mrs E. McAllister
Mrs E. Hay
Rev. G. & Mr M. Farquhar
Mrs M. Russell
Mr & Mrs J. Cuthbert
Mr R. Cuthbert
Miss Judith Cuthbert
Mr & Mrs M. Weller
Mrs C. Doherty
Mr & Mrs J. Stewart
Mr W. Ridges
Mrs M. Bell
Mr & Mrs D. Bell
Mr & Mrs J. McMurran
Mrs A. Erskine
etc
etc

How do I sort by surname please?
Using 2007
 
M

Mike H

Hi,

You need a helper column. Use this formula to extract the last name in to
another column

=RIGHT(A1,LEN(A1)-FIND("*",SUBSTITUTE(A1," ","*",LEN(A1)-LEN(SUBSTITUTE(A1,"
","")))))

Select both columns and sort on the helper column which you can hide if you
want


Mike
 
T

trip_to_tokyo

Martin:-

I have just put up a file for you at:-

http://www.pierrefondes.com/

It is item number 35 towards the top of my home page.

Your data really needs to be reorganized as it is not really in a manageable
form.

However, for the Workbook I have uploaded, if you click in the drop down in
cell H 1 and select Sort A to Z you will get the people in the alpha order of
surname.

There are many ways this could be done.

If my comments have helped please hit Yes.

Thanks.
 
M

Martin ©¿©¬

Make sure that the surname is in a separate column. Select all the relevant
columns before you sort.

Hi David
I was hopeing to be able to sort without having to have/keep the
surname in a seperate column
 
C

Clarity

Hi,

The first thing you will need to do is create a "helper" column next to your
data. In this column you will need to extract the surname from the full name.
You can then sort by the surname in the "helper" column.

There are a couple ways to extract the surname.

Firstly you could use "text to columns". Given the text below you could
possibly use "." as the seperator.

Alternatively you could use formula to pull out the surname. Full name in A1.

=RIGHT(A1,(LEN(A1)-FIND(".",A1,4)-1))

One note of caution :- you will need to be careful of your full name format
as neither of the above will work with "Rev. G. & Mr M. Farquhar" as there
are several "."s.

Myles
 
S

Stefi

Separate surname into an empty helper column with this formula:
=MID(A1,FIND("*",SUBSTITUTE(A1," ","*",LEN(A1)-LEN(SUBSTITUTE(A1,"
",""))))+1,256)
and sort by the helper column!

--
Regards!
Stefi



„Martin ©¿©¬ @nohere.net†ezt írta:
 
E

Eva

Insert the column, then the formula
=MID(A1,SEARCH(".",A1,1)+2,LEN(A1))
then sort it out
click yes if helped
 
M

Martin ©¿©¬

Thanks for all your help
I have been off line for a few days
I will try your suggestions
 

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