Bad sorting

T

turnermarketing

I have a table of data. The first column is a series of numbers from
1-500 with a few numbers missing. When I sort this data ascending, it
sorts them as 1, 10, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
11, 110 etc. Of course what I want is 1, 2, 3, 4, etc.
What is Going on? I selected the column, went to Format>Cells>Number. I
selected "Number" with 0 decimal places.

How is this happening?

Scott
 
B

Bob Greenblatt

I have a table of data. The first column is a series of numbers from
1-500 with a few numbers missing. When I sort this data ascending, it
sorts them as 1, 10, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
11, 110 etc. Of course what I want is 1, 2, 3, 4, etc.
What is Going on? I selected the column, went to Format>Cells>Number. I
selected "Number" with 0 decimal places.

How is this happening?

Scott
Well, the numbers are not numbers but text. The easiest way to fix this is:
1) Enter a one (1) in any spare cell.
2) copy the cell
3) select the range of numbers you want to change
4) From the Edit menu Select Paste special
5) in the operation section select multiply and then click OK

All of the text value will be converted to numbers.
 
J

Jan Putcuyps

Well, the numbers are not numbers but text. The easiest way to fix this is:
1) Enter a one (1) in any spare cell.
2) copy the cell
3) select the range of numbers you want to change
4) From the Edit menu Select Paste special
5) in the operation section select multiply and then click OK

All of the text value will be converted to numbers.


I don't know if you want the missing numbers to be filled in or not. If you
want it to be exactly the same, you can use another method to convert the
text to number format by using the =value() formula in the column next to
it. This way your data will not be changed and you can use this when there
are duplicates in the column.

It has often helped me when importing text in Excel.

Jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sort data 2
Query 1
Lookup problem 4
Source and Destination 1
Copy in order 3
Sorting 2 colums to get numbers to match ? 2
Cross-Referencing Data 0
Need Help With Formula Please 6

Top