+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : List of Numbers - Sortable with partial numbers

  1. #1
    Registered User
    Join Date
    07-19-2010
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question List of Numbers - Sortable with partial numbers

    Good Day Everyone,
    My worksheet has a column of site numbers. Most are three digit but some are five digit. When we identify a site it takes a while for its site number to be assigned, but based on the country it's located in we typically know either the first digit or the first two digits.

    What I need is a format to enter the partially known numbers so that is still sort in numerical order correctly, including the partial numbers. If not a format then something!

    Ex:
    Site # Country Status
    110 US Open
    1## US Identified
    126 US Open
    103 US Closed
    231 Canada Open
    233 Canada Open
    23? Canada Identified
    245 UK Open
    24? UK Identified
    35467 Spain Open

    I am using Excel 2007....just in case someone wanted to know.

    Thanks In Advance!
    Last edited by ms_guy99; 07-19-2010 at 02:24 PM. Reason: Added Excel version.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: List of Numbers - Sortable with partial numbers

    Perhaps try adding a helper column with formula:

    =TEXT(A2,"@")

    then sort by that column...

    In the Sort Warning dialogue, choose to sort numbers and numbers stored as text separately.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-19-2010
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: List of Numbers - Sortable with partial numbers

    Ok...so that worked...but I was trying to keep from having an additional column due to the fact it would cause massive cofnusion with the other users. BUT......it never did occur to me that changeing the numbers to text would work....have started the process of making the whole column of numbers text (by adding ' )..and then in the future when others add sites I'll either be able to tell by the justification or wrong sorting wheter it is a number or text and will fix it then! So in essence....your solution was the solution!

    THANKS!!!!!
    Last edited by shg; 07-19-2010 at 03:26 PM. Reason: deleted quote

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: List of Numbers - Sortable with partial numbers

    You can also convert the whole column to text by going to Data|Text to Columns.. skip to 3rd window and select Text from the column data format section... click Finish.

+ 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