Sort question

micfly

Well-known Member
Joined
Sep 8, 2008
Messages
528
I have a name cell with both first and last names entered. I'm trying to sort the column by last name but it sorts by the first name since the first name is first :)

Is there an easy way to do this? I don't might building a command buttom and using code if need be just don't know where to start??? thanks
 

Some videos you may like

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,770
Office Version
  1. 2010
Platform
  1. Windows
Use a formula to extract the last name to another column, and sort by that.
 

Joe_L

New Member
Joined
Mar 10, 2011
Messages
14
There may be a more efficient way, but on first glance I would highlight the column with the names, select "text to columns", and delimitate by space. Then you will have the name in two separate columns and you can cancatinate the name so that the last name is listed first.
 

Watch MrExcel Video

Forum statistics

Threads
1,109,362
Messages
5,528,258
Members
409,811
Latest member
pjwhyman

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top