Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Janice Lee via OfficeKB.com
 
Posts: n/a
Default sorting number in ascending order

Hi,
I have a query result, and one of those fields are some ID numbers.
It came as ="number" format when I exported to excel.
When I tried sorting this field in ascending order, however, it didnt' sort
right.
For example, the order before sort is:

100422
100422
100459
100459
1184
1187
1189
1190
1192
1193

But apparently, I want the sorting to result like below:

1184
1187
1189
1190
1192
1193
100422
100422
100459
100459

But it didn't happen with sort. I then copied the whole column and past
specile values to get rid of ="number" format, and then resorted, and
it's still the same.

When I double clicked each cell and pressed "enter," then the sorting
happense correctly. But I can't go through thousands of rows like this.

Does any one know what's up with this?

--
Message posted via http://www.officekb.com
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

You need to convert the numbers from Text values to numeric values.

Select a blank cell. Copy it. Select your column of numbers. Choose
Edit/Paste Special, selecting the Add and Values radio buttons. Click OK.

That will coerce text "numbers" to numeric and you should be able to
sort.


In article ,
"Janice Lee via OfficeKB.com" wrote:

But it didn't happen with sort. I then copied the whole column and past
specile values to get rid of ="number" format, and then resorted, and
it's still the same.

When I double clicked each cell and pressed "enter," then the sorting
happense correctly. But I can't go through thousands of rows like this.

  #3   Report Post  
dlw
 
Posts: n/a
Default

I run into this all the time. Excel thinks the numbers are text. make a new
column that is =value(a1) and copy it all the way down, then you will have
numbers, then copy / paste special / values to get rid of the formula.
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting order - text and numbers jmt Excel Discussion (Misc queries) 2 April 4th 05 01:25 AM
sorting letters in words into alphabetical order bobf Excel Discussion (Misc queries) 5 March 21st 05 11:25 PM
Is there a VLOOKUP substitute when data is not in ascending order VJ7777 Excel Worksheet Functions 2 January 19th 05 08:32 AM
graph displayed in ascending order of value? [email protected] Charts and Charting in Excel 3 January 7th 05 04:21 AM
I want a purchase order that includes page number (if to be order. Angela New Users to Excel 1 December 3rd 04 04:39 PM


All times are GMT +1. The time now is 12:05 AM.

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"