Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can this type of Sort be done in Excel

Status
Not open for further replies.

silenttalk

Technical User
Oct 30, 2002
15
GB
Hi

Hope someone has some ideas on this, coz im not sure it can be done.

I have a single column of names First then Second, I want to be able to preserve this and not go for second and first. But I want to do the sort on the last name, which I guess technically is going to be the first letter appearing after the space character.

Any ideas ??
 
No middle initials? How about two first names like Bobby Joe?
 
silenttalk,

The only sort that you can do with a single column of first and last name is to sort on first and last name.

However, if you parse first and last into separate columns, you can then sort by last and then first.

Is there ALWAYS a first name WITHOUT SPACES, NEVER a middle name or initial?

If so then first name is
[tt]
=LEFT(A1,FIND(" ",A1)-1)
[/tt]
last name is
[tt]
=RIGHT(A1,LEN(A1)-FIND(" ",A1))
[/tt]
where the first last name is in A1

Skip,

[glasses] [red]Be advised:[/red] When transmitting sheet music...
If it ain't baroque, don't fax it! [tongue]
 
No there will be no middle initials at all, so the sort is burely done alphabetically on the first letter after the space
 
Also no to spaces in first name i would enter Bobby Joe as Bobby-Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top