Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
column sorting
 
Posts: n/a
Default how do i sort a column numerically going from 01-01 to 225-99

when i sort my column in numerical order, it starts out fine, i.e 01-01,
01-02. However, when it gets to 10-01, i get 10-01, 100-01,100-02, etc,
without any rhyme or reason. How do i set to sort 01-nn through 99-nn befor
going to 100-nn and beyond
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default how do i sort a column numerically going from 01-01 to 225-99

Excel's help explains it.

I searched for: Default sort orders

Apostrophes (') and hyphens (-) are ignored, with one exception: If two text
strings are the same except for a hyphen, the text with the hyphen is sorted
last.

One way around it (maybe???) is to use a helper column with a formula in it.
Then sort your data by that helper column.

If your data is in A1:Axx, put this in that helper column (row 1):

=--SUBSTITUTE(A1,"-",".")

And drag down.

Then sort by that column. Since the data is now numeric, it should work ok.



column sorting wrote:

when i sort my column in numerical order, it starts out fine, i.e 01-01,
01-02. However, when it gets to 10-01, i get 10-01, 100-01,100-02, etc,
without any rhyme or reason. How do i set to sort 01-nn through 99-nn befor
going to 100-nn and beyond


--

Dave Peterson
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
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
Highlight Sort Column Ronbo Excel Discussion (Misc queries) 0 June 29th 05 10:26 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
How do I sort a column of formulas in Excel? Gordon Excel Discussion (Misc queries) 2 November 27th 04 01:55 AM
How do I sort a column of formulas in Excel? Gordon Excel Discussion (Misc queries) 0 November 26th 04 03:19 PM


All times are GMT +1. The time now is 04:14 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"