+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Alphanumeric Sorting

  1. #1
    Registered User
    Join Date
    02-28-2010
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    2

    Alphanumeric Sorting

    I have looked at other threads on this topic but I still can't make this work.


    I want the data to sort as:

    F1
    F2
    F3
    F4....F30

    but I get
    F1
    F10
    F11
    F12
    F13...
    F2
    F20
    F21....
    F3
    F30

    I have tried changing the data into text (i.e. =text(A1,"###") and then sorting but I still get the same thing.

    I tried concatenating as well, but no luck there either.

    Help!?

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

    Re: Alphanumeric Sorting help

    Is there a reason why you must type in a "F" prefix rather than using a custom number format of "F#" in the column? Then you would only have to type the digits...
    Ben Van Johnson

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Alphanumeric Sorting help

    Unfortunately, that is the sort order for text, and a value like F22 is text.

    To get the sort order you want, you would have to pad the numbers with zeros

    F01
    F02
    F03

    etc.

    Or use Ben's suggestion with the custom number format.

  4. #4
    Registered User
    Join Date
    02-28-2010
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Alphanumeric Sorting

    Thanks teylyn and Ben. I padded the numbers and voila - it sorted correctly. I wonder why other support and forum threads gave all those other suggestions that didn't work when there was such a simple solution

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Alphanumeric Sorting

    Glad it worked for you.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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