Results 1 to 4 of 4

Sorting column by last word (name)

Threaded View

  1. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565
    Hi there,

    Put the following formula (assuming the data starts at row 2 - change as required) in the first available blank column next your data fill down as necessary and then sort the entire data range by it. You can then delete the column if you wish:

    =RIGHT(SUBSTITUTE(A2," ","~",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))),LEN(SUBSTITUTE(A2," ","~",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))-FIND("~",(SUBSTITUTE(A2," ","~",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))))

    Note this formula was created by "Datsmart" from this thread.

    HTH

    Robert
    Last edited by Trebor76; 09-09-2008 at 12:50 AM.

Thread Information

Users Browsing this Thread

There are currently 4 users browsing this thread. (0 members and 4 guests)

Similar Threads

  1. Macro Question: Copy a word from a column to another automaticly
    By zaptiri in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-11-2008, 10:00 PM
  2. Macro for coding an action based on 3 columns of information
    By chozen86 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-31-2008, 10:44 PM
  3. Replies: 7
    Last Post: 05-28-2008, 03:12 AM
  4. VBA; find string and copy
    By Bill Rudd in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-06-2008, 10:41 PM
  5. Column Sorting
    By grahammal in forum Excel General
    Replies: 1
    Last Post: 09-13-2006, 10:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1