+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Help with special alphanumeric sorting

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Help with special alphanumeric sorting

    I have the following going down one column as shown:

    AC-1: Texttexttext
    AC-2: Texttexttext
    AC-3: Texttexttext
    AC-4: Texttexttext
    AC-5: Texttexttext
    AC-6: Texttexttext
    AC-7: Texttexttext
    AC-8: Texttexttext
    AC-9: Texttexttext
    AC-10: Texttexttext
    AC-11: Texttexttext
    AC-12: Texttexttext
    AC-13: Texttexttext

    The above is how I want the column to be sorted. Instead, I end up getting:

    AC-1: Texttexttext
    AC-10: Texttexttext
    AC-11: Texttexttext
    AC-12: Texttexttext
    AC-13: Texttexttext
    AC-2: Texttexttext
    AC-3: Texttexttext
    AC-4: Texttexttext

    And so on. How do I get the column to sort in the first method listed? (To complicate things, the rest of the column actually has more data, but with different prefixes, like MA, CP, IA, AU.)

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,978

    Re: Help with special alphanumeric sorting

    You can use a helper column to build a sort key made up of the characters to the left of the dash + a number field padded on the left with zeros (or spaces). The helper column can be hidden.
    Attached Files Attached Files
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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