+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Help with Sorting numbers and text

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    Connecticut, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Help with Sorting numbers and text

    I know this issue has been addressed before but never having been formally trained in Excel, I am ignorant enough to not really understand how to make the answers I found work for me.

    I work with architectural drawings on a daily basis and I need to sort room numbers which include text.
    Example: 101, 102, 102A, 102B, 102C, 103, 104, 105, 105A, 105B, 106...etc. When I try to sort them the text with letters always end up at the end of the list and I have to cut and paste to put them in order. Can someone give me an easy step-by-step way to resolve this?

    Thank you.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help with Sorting numbers and text

    Hi,

    One way would be to use a helper column.
    =TEXT(A1,0)

    then sort the data including the helper column specifying the helper column as the key and pick the second option you see.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-29-2012
    Location
    Connecticut, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Help with Sorting numbers and text

    I don't understand. Where do I insert the formula? I get that I create a new adjacent "helper" column but I don't understand where to insert the formula. When I do the sort and it asks if I want to sort as text or numbers what do I say. As I stated I am self-taught so I need the instructions spelled step-by-step out for me.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with Sorting numbers and text

    never having been formally trained in Excel
    join the club, but this is what richard means
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Help with Sorting numbers and text

    Richard was suggesting that you use this method:

    Have your list of room designations in range A1:A100 (or whatever other # instead of 100)
    Use column B (or any other column) as the helper.
    In the first cell of the helper place the suggested formula: =TEXT(A1,0) and drag it down as far as needed
    Select the entire range to be sorted.
    Click on Data - Sort and select the helper column as the sort key (the Sort By field)
    You will get a "Sort Warning" pop up. Choose the "Sort numbers and numbers stored as text separately" option
    Done
    Last edited by Cutter; 05-30-2012 at 09:37 AM.

  6. #6
    Registered User
    Join Date
    05-29-2012
    Location
    Connecticut, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Help with Sorting numbers and text

    I did this and it appears that the same information in column A is carried over to the helper column. When I sort it still wants to separate the numbers that have text from the ones that don't.

    If I start with this
    101
    102
    102A
    102B
    102C
    103
    104
    105
    What I end up with is this:
    101
    102
    103
    104
    105
    102A
    102B
    102C

  7. #7
    Registered User
    Join Date
    05-29-2012
    Location
    Connecticut, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Help with Sorting numbers and text

    I got it! THanks, everyone.

+ 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