Science1 min ago
sorting in excel
15 Answers
i want to sort some numbers in excel. however it will sort it as 1 then 10 11 12 13 14 15 16 17 18 19 2 20 21...
so the 2 gets put with the 20's and so on with the 3 with the 30's
but i need it to go 1 2 3 4 etc etc...
please help me sort in this order as it is driving me nuts having to cut and paste them into the correct order...
thanks
so the 2 gets put with the 20's and so on with the 3 with the 30's
but i need it to go 1 2 3 4 etc etc...
please help me sort in this order as it is driving me nuts having to cut and paste them into the correct order...
thanks
Answers
Best Answer
No best answer has yet been selected by mollymoo. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.If you always have two letters in front of the number, create a new column in your worksheet and use the formula =VALUE(RIGHT(A1,LEN(A1)-2)) and fill the formula down to the end of your data. This will give you just the number part and you can then sort on the new column. That of course assumes your numbers are in column A - you will need to adjust the formula to use the correct column letter.
Not sure if it'll still work, but I used to type in the numbers 1 - 4 in the first column (A1, A2 etc.), then highlight all four boxes and then place my cursor on the little box that would appear in the bottom right hand corner of A4, drag the cursor down column A and that would automatically put the numbers in numerical order.
Hope this (is easy to understand) helps.
Hope this (is easy to understand) helps.
you are absolutely right
http://support.microsoft.com/kb/319827
however
the combination of letters and numbers should allow you to enter ac01 or 01ac without loosing the 0
if you just enter 01 ... it tidys the leading zero
but letters and numbers should be ok (no need for a ' ... but you can if you want)
if you had ac0.... and ad0... it sorts all the ac then all the ad numerically
http://support.microsoft.com/kb/319827
however
the combination of letters and numbers should allow you to enter ac01 or 01ac without loosing the 0
if you just enter 01 ... it tidys the leading zero
but letters and numbers should be ok (no need for a ' ... but you can if you want)
if you had ac0.... and ad0... it sorts all the ac then all the ad numerically