M
martin0642
Hi all, bit of a weird one this....
Ok - so I have a large-ish dataset with several columns, one of whic
is the client number. This dataset is copied and pasted from and Exce
spreadsheet that contains macros...as well as lots of fancy header row
and other stuff I dont need for analysis. Hence I copy and paste jus
the data and the main header row into a new workbook to manipulate i
and then transfer to other programs for analysis.
The problem is this: The client number column goes from 01 to 685.
need to add in extra info based on the individuals client number. Th
easiest way to do this is to sort on the client number column (and ye
I do select all and then use "data - sort" from the menus)
Thing is..even though I make sure the cells in this column ar
formatted as numbers Excel simply wont sort them sensibly. As a
example, the latest dataset im using..AFTER sorting takes this order:
8
24
31
55
55
95
205
228
284
298
685
01
01
01
From here on it sorts on the first digit of the numbers. So I get al
the 01, 01, 03 etc, then 10's, 100's etc then 20's, 200's and so on.
Any clues why its doing this? I cant find values in there that aren
numbers, I've looked for random spaces or other characters in eac
cell, I've also made absolutely sure that the cells are formatted a
numbers. The datasets will start to grow so I need to get this sorte
as eventually it will become unworkable to autofill my new column base
on client numbers.
AAAAAAAAAAAAAAAAAAAAAH!
THanks - i feel better for sharing :rolleyes
Ok - so I have a large-ish dataset with several columns, one of whic
is the client number. This dataset is copied and pasted from and Exce
spreadsheet that contains macros...as well as lots of fancy header row
and other stuff I dont need for analysis. Hence I copy and paste jus
the data and the main header row into a new workbook to manipulate i
and then transfer to other programs for analysis.
The problem is this: The client number column goes from 01 to 685.
need to add in extra info based on the individuals client number. Th
easiest way to do this is to sort on the client number column (and ye
I do select all and then use "data - sort" from the menus)
Thing is..even though I make sure the cells in this column ar
formatted as numbers Excel simply wont sort them sensibly. As a
example, the latest dataset im using..AFTER sorting takes this order:
8
24
31
55
55
95
205
228
284
298
685
01
01
01
From here on it sorts on the first digit of the numbers. So I get al
the 01, 01, 03 etc, then 10's, 100's etc then 20's, 200's and so on.
Any clues why its doing this? I cant find values in there that aren
numbers, I've looked for random spaces or other characters in eac
cell, I've also made absolutely sure that the cells are formatted a
numbers. The datasets will start to grow so I need to get this sorte
as eventually it will become unworkable to autofill my new column base
on client numbers.
AAAAAAAAAAAAAAAAAAAAAH!
THanks - i feel better for sharing :rolleyes