#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default Sort list

I have a table which I need to sort, e.g.:

2000
2039B
2026
2167
2239
2242

When I run Sort, I get
2000
2026
2167
2239
2242
2039B

Why does 2039B come at the bottom rather than between 2026 and 2167?
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 25
Default Sort list

"janey" wrote in message
...
I have a table which I need to sort, e.g.:

2000
2039B
2026
2167
2239
2242

When I run Sort, I get
2000
2026
2167
2239
2242
2039B

Why does 2039B come at the bottom rather than between 2026 and 2167?


Because numbers are numbers and are sorted numerical. Other data is alpha
numeric which are sorted in order but after numerical data. You could try
adding a column for the alphabetical element and sort on the numerical data
(but include the alpha numerical date in the sort range) and that will be
OK.

Bill R


  #3   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sort list

"2039B" is text, and any text is treated by Excel as being greater than the
largest real number, that's why. To sort these like real numbers, use a
helper col,
eg in B1, copied down: =IF(A1="","",IF(ISNUMBER(A1),A1,LEFT(A1,4)+0))
Then sort both cols A and B by col B, ascending, and you should get the
desired sort in col A. Success? hit YES below
--
Max
Singapore
---
"janey" wrote:
I have a table which I need to sort, e.g.:

2000
2039B
2026
2167
2239
2242

When I run Sort, I get
2000
2026
2167
2239
2242
2039B

Why does 2039B come at the bottom rather than between 2026 and 2167?

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
I want sort a list but the sort is unlit on the home tab how do I chetrx Excel Worksheet Functions 3 November 14th 08 11:47 PM
Sort list Arne Hegefors Excel Discussion (Misc queries) 1 January 11th 07 09:55 AM
Sort with a List brianwakin Excel Worksheet Functions 3 September 8th 05 11:35 PM
Excel sort by Fill Color by custom list sort Dash4Cash Excel Discussion (Misc queries) 2 July 29th 05 10:45 PM
sort list of players by team from player list on separate sheet Robert Excel Worksheet Functions 1 July 19th 05 01:57 AM


All times are GMT +1. The time now is 04:47 PM.

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

About Us

"It's about Microsoft Excel"