+ Reply to Thread
Results 1 to 4 of 4

Sort data in specific alphanumerical order

  1. #1
    Registered User
    Join Date
    04-20-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    96

    Sort data in specific alphanumerical order

    Hi,

    Attached book shows a sample data I need to sort. Excel's built-in sort (A-Z), will render the result shown on Sheet 1, but I need the data sorted as shown in sheet 2 (I don't need the data moved to a new sheet, I just put it there to make a separation). What I mean, is that entries are sorted not based on the first numeric value after the "-", but rather, in the number of digits after it. (I highlighted the records needed to be re-sort on Sheet 1 for easier identification, but I don't need them to be formatted as such).

    What's the best way to achieve this?

    Also, every sheet I will be running the macro at, will have a different name and there will be no "Sheet 1", but rather, whatever name the sheet comes with from my colleagues.

    Thanks for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Sort data in specific alphanumerical order

    I added a couple of helper columns and then did a multilevel sort on Column B then Column C.
    Attached Files Attached Files

  3. #3
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Sort data in specific alphanumerical order

    Sorry see now that you want a macro.

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

    Re: Sort data in specific alphanumerical order

    If you wan t sort by the number with e same prefix
    Please Login or Register  to view this content.

+ 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. Sort data in specific alphanumerical order
    By axtryo in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-30-2018, 11:34 PM
  2. Sort comma separated string, but in specific order
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2017, 08:53 AM
  3. [SOLVED] Sorting alphanumerical column in numeric order
    By thadacto in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-29-2017, 06:10 AM
  4. [SOLVED] sort order according to columns specific in another worksheet cells
    By raj soni in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-27-2015, 09:42 AM
  5. [SOLVED] Sort 3 textboxes to get an order for a specific formula
    By stielo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-27-2015, 10:24 AM
  6. Replies: 4
    Last Post: 11-20-2012, 06:00 PM
  7. [SOLVED] Pls. reply Sort Data and copy to next coulmn when sort order chang
    By shital shah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2005, 10:05 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