+ Reply to Thread
Results 1 to 3 of 3

sorting number in ascending order

  1. #1
    Janice Lee via OfficeKB.com
    Guest

    sorting number in ascending order

    Hi,
    I have a query result, and one of those fields are some ID numbers.
    It came as ="number" format when I exported to excel.
    When I tried sorting this field in ascending order, however, it didnt' sort
    right.
    For example, the order before sort is:

    100422
    100422
    100459
    100459
    1184
    1187
    1189
    1190
    1192
    1193

    But apparently, I want the sorting to result like below:

    1184
    1187
    1189
    1190
    1192
    1193
    100422
    100422
    100459
    100459

    But it didn't happen with sort. I then copied the whole column and past
    specile > values to get rid of ="number" format, and then resorted, and
    it's still the same.

    When I double clicked each cell and pressed "enter," then the sorting
    happense correctly. But I can't go through thousands of rows like this.

    Does any one know what's up with this?

    --
    Message posted via http://www.officekb.com

  2. #2
    JE McGimpsey
    Guest

    Re: sorting number in ascending order

    You need to convert the numbers from Text values to numeric values.

    Select a blank cell. Copy it. Select your column of numbers. Choose
    Edit/Paste Special, selecting the Add and Values radio buttons. Click OK.

    That will coerce text "numbers" to numeric and you should be able to
    sort.


    In article <b535b86334d8408dab367e93333a6323@OfficeKB.com>,
    "Janice Lee via OfficeKB.com" <forum@nospam.OfficeKB.com> wrote:

    > But it didn't happen with sort. I then copied the whole column and past
    > specile > values to get rid of ="number" format, and then resorted, and
    > it's still the same.
    >
    > When I double clicked each cell and pressed "enter," then the sorting
    > happense correctly. But I can't go through thousands of rows like this.


  3. #3
    dlw
    Guest

    RE: sorting number in ascending order

    I run into this all the time. Excel thinks the numbers are text. make a new
    column that is =value(a1) and copy it all the way down, then you will have
    numbers, then copy / paste special / values to get rid of the formula.

+ 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