ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   sort in numberical order (https://www.excelbanter.com/excel-discussion-misc-queries/109918-sort-numberical-order.html)

Dawn

sort in numberical order
 
help! I can't seem to get excell to sort in real numerical order ie 1, 2, 3,
4, 5 and NOT 1, 10, 100, 2, 20, etc. my data is definatatly sorted in
number format
Using excell 2003
hope someone can help
thanks
Dawn

Pete_UK

sort in numberical order
 
I think your numbers are really text values that look like numbers, for
it to sort in the way you say.

Pete

Dawn wrote:
help! I can't seem to get excell to sort in real numerical order ie 1, 2, 3,
4, 5 and NOT 1, 10, 100, 2, 20, etc. my data is definatatly sorted in
number format
Using excell 2003
hope someone can help
thanks
Dawn



Dawn

sort in numberical order
 
How do i make sure there really numbers? all numbers are preceeded by the
letters TMB, could this be why?
Dawn

"Pete_UK" wrote:

I think your numbers are really text values that look like numbers, for
it to sort in the way you say.

Pete

Dawn wrote:
help! I can't seem to get excell to sort in real numerical order ie 1, 2, 3,
4, 5 and NOT 1, 10, 100, 2, 20, etc. my data is definatatly sorted in
number format
Using excell 2003
hope someone can help
thanks
Dawn




Pete_UK

sort in numberical order
 
Hi Dawn,

So, you have values like TMB1, TMB2, TMB10 etc in your column? If you
want these to be sorted correctly you should make the numerical part
have the same number of digits by inserting leading zeros.

Assume that these values are in column A starting in cell A2, and that
you could have up to 4 digits after the TMB part. In the first blank
column (eg F2), enter this formula:

="TMB"&TEXT(RIGHT(A2,LEN(A2)-3),"0000")

The 4 zeros at the end determine how many leading zeros to add - you
can increase this if necessary, then copy the formula down for as many
entries as you have in column A.

Now you should set your sort range to include this extra column, and
use that column as the sort key. If you wish, you could fix the values
in this column and then copy them into column A to overwrite the values
that are there - then you could delete the helper column.

Hope this helps.

Pete

Dawn wrote:
How do i make sure there really numbers? all numbers are preceeded by the
letters TMB, could this be why?
Dawn

"Pete_UK" wrote:

I think your numbers are really text values that look like numbers, for
it to sort in the way you say.

Pete

Dawn wrote:
help! I can't seem to get excell to sort in real numerical order ie 1, 2, 3,
4, 5 and NOT 1, 10, 100, 2, 20, etc. my data is definatatly sorted in
number format
Using excell 2003
hope someone can help
thanks
Dawn





Curt

sort in numberical order
 
Same problem Is there a seperator that will allow a new list in options new
list. What can be done to get true numerical sorting. Not familar with helper
columns. Also want to be able to convert action to macro.
Thanks


"Pete_UK" wrote:

I think your numbers are really text values that look like numbers, for
it to sort in the way you say.

Pete

Dawn wrote:
help! I can't seem to get excell to sort in real numerical order ie 1, 2, 3,
4, 5 and NOT 1, 10, 100, 2, 20, etc. my data is definatatly sorted in
number format
Using excell 2003
hope someone can help
thanks
Dawn





All times are GMT +1. The time now is 04:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com