Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Uncle Al
 
Posts: n/a
Default sort a column of numbers with 100510 and 10160 so they are in th.

I am sorting a list of numbers containing 100510 and 10160 and 100510 comes
out before 10160 which is out of order. How do I get them to sort properly?
  #2   Report Post  
Bill Martin -- (Remove NOSPAM from address)
 
Posts: n/a
Default

Uncle Al wrote:
I am sorting a list of numbers containing 100510 and 10160 and 100510 comes
out before 10160 which is out of order. How do I get them to sort properly?

----------------------

Are you sure they are numbers and not text? To check if your "number"
(in A1 for example) is really text, over in an empty cell somewhere put:

[ ]=istext(A1)

That will return either "true" or "false" telling you if it's really text.

To convert the column to numbers, you can highlight all the cells in the
column and then click Format Cells Number. After that, they should
all sort correctly.

Good luck...

Bill
  #3   Report Post  
Nick Hodge
 
Posts: n/a
Default

Al

As Bill has pointed out, they may be text. Sometimes simply reformatting may
not do it.

Copy a blank cell and then editpaste special...values+add the 'text'
numbers and they should budge to numbers. (Don't do this over formulae or
you will kill it/them)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS

"Uncle Al" <Uncle
wrote in message
...
I am sorting a list of numbers containing 100510 and 10160 and 100510 comes
out before 10160 which is out of order. How do I get them to sort
properly?



  #4   Report Post  
Bill Martin -- (Remove NOSPAM from address)
 
Posts: n/a
Default

Nick Hodge wrote:

As Bill has pointed out, they may be text. Sometimes simply reformatting may
not do it.


Will it legitimately not reformat to numbers sometimes or are you
talking about a known bug?

Just curious...

Bill
  #5   Report Post  
Nick Hodge
 
Posts: n/a
Default

Bill

Sometimes Excel can be stubborn, it's a sort of 'bug'. It's more prevalent
with imported data from other apps and we tend to get tons of questions on
here with VLOOKUPs and stuff that doesn't appear to work.

It is not possible in these cases to just re-format, so we give either the
copy blank - paste specialValues + Add or copy a 1, paste specialvalues +
multiply, both of which nudges Excel to 'behave'

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS

"Bill Martin -- (Remove NOSPAM from address)"
wrote in message ...
Nick Hodge wrote:

As Bill has pointed out, they may be text. Sometimes simply reformatting
may not do it.


Will it legitimately not reformat to numbers sometimes or are you talking
about a known bug?

Just curious...

Bill





  #6   Report Post  
Bill Martin -- (Remove NOSPAM from address)
 
Posts: n/a
Default

Nick Hodge wrote:
Bill

Sometimes Excel can be stubborn, it's a sort of 'bug'. It's more prevalent
with imported data from other apps and we tend to get tons of questions on
here with VLOOKUPs and stuff that doesn't appear to work.

It is not possible in these cases to just re-format, so we give either the
copy blank - paste specialValues + Add or copy a 1, paste specialvalues +
multiply, both of which nudges Excel to 'behave'

-----------

Thanks Nick. Always nice to learn something new...

Bill
  #7   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

Reformatting changes the display, not the value of the cell contents. I
am NOT aware of any circumstance where reformatting WILL change text to
a number. By design, it prepares the cell to receive a number, if you
then re-enter the number (or select on the value in the formula bar and
press enter) then it will become a number, but not just by changing the
format.

Jerry

Bill Martin -- (Remove NOSPAM from address) wrote:

Nick Hodge wrote:

As Bill has pointed out, they may be text. Sometimes simply
reformatting may not do it.



Will it legitimately not reformat to numbers sometimes or are you
talking about a known bug?

Just curious...

Bill


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"