Hi
I have a list of employes and I want to sort not by first name but by last name and I don't want to rewrite it all.
can you please help to sort by the last word in the cell?
thank you
Hi
I have a list of employes and I want to sort not by first name but by last name and I don't want to rewrite it all.
can you please help to sort by the last word in the cell?
thank you
Assume the names are in column A starting with cell A1:
- Add a column to the right ie column B
- Add this formula to cell B1 and copy down: =RIGHT(A1,LEN(A1)-FIND(" ",A1))
- Column B now contains the last name
- Sort columns A and B using Column B as the sort by criteria
If you don't need it, after sorting you can delete column B
Last edited by K m; 10-09-2012 at 09:08 AM.
Click on star (*) below if this helps
it doesn't work , it displays an error in the formula
It works for me. Here is a sample file
OK I see the problem I have more than two names in a cell (4 or 5), and I just want the last one.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks