View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.newusers
Max
 
Posts: n/a
Default whats wrong with my sorting?

"42410" wrote:
... I have also had a problem trying to sort
a column of numbers when some of them start with a zero.
I've tried formatting the cells as text, general, number and custom.
None of them seem to give consistantly correct sorting. ..


Try this ..

Assuming source numbers in A1 down
Put in B1, say: =TEXT(A1,"000")
Copy down
Then sort both cols A and B by col B, ascending (say)
Delete col B

Adapt the part: "000" in the formula
to suit the maximum figure that is present in the source col A
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---