+ Reply to Thread
Results 1 to 3 of 3

Alphanumeric Sorting

  1. #1
    Registered User
    Join Date
    01-22-2015
    Location
    California, United States
    MS-Off Ver
    Excel 2010
    Posts
    1

    Alphanumeric Sorting

    Hello all,

    I have a mix of data in a table that I need to sort. The problem is I would like to sort the data in this fashion: A1, B1, C1, D1, ..., A2, B2, C2, D2 and so on until H12. I am importing this data from a text file that is sorted by another table parameter when generated, however I would like to sort by the alpha numeric parameter in the first column. Is there an easy way around this?

    Thanks in advance,

    BFSTox1

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: Alphanumeric Sorting

    I know of no built-in way to do this in Excel. What I would do is to split this into two columns, one with the first letter, then the other with the number.

    In this example, the string you want to sort is in A1:

    Column B: Isolate Letter
    =LEFT(A1,1)

    Column C: Isolate Number
    =MID(A1,2,2)

    Then sort all the data (make sure you include all columns), using column C as the first sort key and column B as the second sort key.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    Hobart, TAS
    MS-Off Ver
    Office 2003, XL2007
    Posts
    46

    Re: Alphanumeric Sorting

    Column A contains your data (I'm assuming it is only 1 alpha/2 numeric format), cols B etc any data associated with col A.
    Cell C2 =MATCH(VALUE(MID($A2,2,2)),$G$2:$G$13,0) copy down
    Cell G2 to G13 is custom sort; place the numbers 1 thru 12 in any order (try the basic 1 to 12 firstly) then sort cols A to C using sort by col C sort ascending then by col A ascending.
    Last edited by M E Good @ XL4M; 02-24-2015 at 04:02 AM.

+ 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. AlphaNumeric sorting
    By bmoney26 in forum Excel General
    Replies: 1
    Last Post: 04-23-2012, 05:37 PM
  2. Excel 2007 : Alphanumeric sorting
    By Ethan Cordray in forum Excel General
    Replies: 2
    Last Post: 10-11-2010, 12:26 PM
  3. Sorting row with a alphanumeric value.
    By patwary8 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-07-2008, 04:10 PM
  4. [SOLVED] Sorting alphanumeric
    By Joanne in forum Excel General
    Replies: 4
    Last Post: 04-28-2005, 06:06 PM
  5. [SOLVED] alphanumeric sorting
    By dancefle in forum Excel General
    Replies: 3
    Last Post: 04-24-2005, 10:06 PM

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