+ Reply to Thread
Results 1 to 5 of 5

Sort Issue

  1. #1
    Registered User
    Join Date
    08-12-2004
    Posts
    9

    Sort Issue

    I'm trying to sort a column of numbers from 1 to, say, 20. Whenever I try to have Excel do this, it sorts the numbers like they are text, i.e. 1, 10, 11, 12... 19, 20, 3, 4, etc.

    I've tried changing the cell type from number to string and back again and it doesn't change anything. Am I missing something obvious?

    Thanks!

  2. #2
    Dave Peterson
    Guest

    Re: Sort Issue

    If all you changed was the format to General (not back to Text), that's not
    enough (as you saw).

    But the next time you change that cell, it'll be a real number.

    A quick way to fix a bunch of cells is:
    select an empty cell
    copy it
    select the bunch of cells that are trouble
    edit|paste special|check Add



    GerbilGod7 wrote:
    >
    > I'm trying to sort a column of numbers from 1 to, say, 20. Whenever I
    > try to have Excel do this, it sorts the numbers like they are text,
    > i.e. 1, 10, 11, 12... 19, 20, 3, 4, etc.
    >
    > I've tried changing the cell type from number to string and back again
    > and it doesn't change anything. Am I missing something obvious?
    >
    > Thanks!
    >
    > --
    > GerbilGod7
    > ------------------------------------------------------------------------
    > GerbilGod7's Profile: http://www.excelforum.com/member.php...o&userid=13073
    > View this thread: http://www.excelforum.com/showthread...hreadid=391129


    --

    Dave Peterson

  3. #3
    Harlan Grove
    Guest

    Re: Sort Issue

    GerbilGod7 wrote...
    >I'm trying to sort a column of numbers from 1 to, say, 20. Whenever I
    >try to have Excel do this, it sorts the numbers like they are text,
    >i.e. 1, 10, 11, 12... 19, 20, 3, 4, etc.
    >
    >I've tried changing the cell type from number to string and back again
    >and it doesn't change anything. Am I missing something obvious?


    If Excel sorts them as text, they're text. Changing number format
    doesn't
    change them from text to number or back again - they're still text.

    If you want to sort them as numbers, you need to convert them to
    numbers.
    The easiest way to do that is to copy a blank cell, select this range,
    and Paste > Special, Values, Add.


  4. #4
    Karthik
    Guest

    Re: Sort Issue

    You need to convert the cell data into number format. To change a
    number stored as text to a number format see the following topic.

    How to alter data on HTML webpage into Excell cells as numbers?

    http://groups.google.co.in/group/mic...d15782c0af2e6d

    Thanks
    Karthik Bhat
    Bangalore


  5. #5

    Re: Sort Issue

    store your DATA in a database so that it wont break existing worksheets
    when you change the sort order.

    keep your numbers in a field with numeric data types; and you wont ever
    have to deal with that kindof crap ever again.


+ 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