+ Reply to Thread
Results 1 to 5 of 5

Sort Multiple rows of text.

  1. #1
    Registered User
    Join Date
    07-16-2017
    Location
    Charleston WV
    MS-Off Ver
    Excel 2016
    Posts
    4

    Sort Multiple rows of text.

    I want to sort Multiple rows of Text individually. I can sort numbers, but not Text. I have attached an example.
    Parameters:
    Each row will have exactly 5 names; 1 name in each space.
    On S2 is where the first name will be located


    How it will come out from my raw entry
    S2:Aloneet Marissa Simone Octavia Madison
    S3:Michelle Monet Anna Octavia Madison
    S4:Michelle Aloneet Marissa Madison Anna
    S5:Michelle Monet Anna Octavia Simone
    S6:Michelle Marissa Anna Octavia Simone

    How I will want it sorted after running the macro
    S2:Aloneet Madison Marissa Octavia Simone
    S3:Anna Madison Michelle Monet Octavia
    S4:Aloneet Anna Madison Marissa Michelle
    S5:Anna Michelle Monet Octavia Simone
    S6:Anna Marissa Michelle Octavia Simone

    The step after this is to create an ID I can later use for consolidation. But I know how I will do this.
    AloneetMarissaSimoneOctaviaMadison
    MichelleMonetAnnaOctaviaMadison
    MichelleMonetMarissaMadisonAnna
    MichelleMonetAnnaOctaviaSimone

    MichelleMarissaAnnaOctaviaSimone
    Attached Files Attached Files
    Last edited by Coachc853; 07-18-2017 at 01:18 AM.

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Sort Multiple rows of text.

    Maybe :
    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Sort Multiple rows of text.

    Simply
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-16-2017
    Location
    Charleston WV
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Sort Multiple rows of text.

    Karedog, thank you for the code. I did not try it as I tried Jindon's first for it's simplicity.

    Jindon I had to change the starting cell locations but it works great! It's upsetting how simple it was. And for some reason the code moves my first column from the S row to the O row. However it was a simple fix on my end to make this work. I'll just start in the O row
    Last edited by Coachc853; 07-18-2017 at 07:41 AM.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Sort Multiple rows of text.

    If that takes care of your original question, select Thread Tools from the menu link above and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA to sort 'Left to Right' for multiple rows.
    By Keibri in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2016, 02:39 AM
  2. Sort rows after a specific text is found
    By t.pham41 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-05-2015, 02:26 AM
  3. [SOLVED] Sort Text into Rows by Multiple Delimiters/Values
    By BoostThis in forum Excel General
    Replies: 6
    Last Post: 11-22-2013, 12:31 PM
  4. sort multiple rows without affecting others rows
    By Nitya in forum Excel General
    Replies: 3
    Last Post: 04-22-2013, 12:43 PM
  5. [SOLVED] Trying to sort multiple rows from a-z
    By bobpic in forum Excel General
    Replies: 5
    Last Post: 03-24-2012, 06:59 PM
  6. Non-Consecutive Rows sort data with multiple rows
    By Keiran1983 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2010, 11:15 PM
  7. Text to Rows:Alt+enter to sort out.
    By Renzhe19 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-17-2009, 09:19 AM

Tags for this Thread

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