Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Colleen
 
Posts: n/a
Default How do I sort so that 1.2 comes before 1.10?

I'm trying to sort numbers from an outline, so I want to sort it as 1.1, 1.2,
1.3...1.10, 1.11, and so on. Excel sorts them as 1.1, 1.10, 1.11...1.2, 1.3.
I have tried changing the format to several different types, including
Number, Text, Decimal, and cannot get Excel to sort it in the correct order
for an outline.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default How do I sort so that 1.2 comes before 1.10?

If you use:

1.01
1.02
1.03

You're life will get much simpler.



Colleen wrote:

I'm trying to sort numbers from an outline, so I want to sort it as 1.1, 1.2,
1.3...1.10, 1.11, and so on. Excel sorts them as 1.1, 1.10, 1.11...1.2, 1.3.
I have tried changing the format to several different types, including
Number, Text, Decimal, and cannot get Excel to sort it in the correct order
for an outline.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Colleen
 
Posts: n/a
Default How do I sort so that 1.2 comes before 1.10?

I know that it would be simpler, but I have to cross reference some new
numbers to the old outline numbers, and the old outline did not have the
zeroes after the decimal point. I was hoping that Excel had something that
recognized outlines.

"Dave Peterson" wrote:

If you use:

1.01
1.02
1.03

You're life will get much simpler.



Colleen wrote:

I'm trying to sort numbers from an outline, so I want to sort it as 1.1, 1.2,
1.3...1.10, 1.11, and so on. Excel sorts them as 1.1, 1.10, 1.11...1.2, 1.3.
I have tried changing the format to several different types, including
Number, Text, Decimal, and cannot get Excel to sort it in the correct order
for an outline.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default How do I sort so that 1.2 comes before 1.10?

I think one of the big problems is that excel doesn't see a difference between
the number 1.1 and 1.10.

If your values are text, maybe you could use a helper column, extracting the
numeric value and sort by that:

=--(LEFT(A1,SEARCH(".",A1))&RIGHT("0"&REPLACE(A1,1,SE ARCH(".",A1),""),2))

Seemed to work ok for me.



Colleen wrote:

I know that it would be simpler, but I have to cross reference some new
numbers to the old outline numbers, and the old outline did not have the
zeroes after the decimal point. I was hoping that Excel had something that
recognized outlines.

"Dave Peterson" wrote:

If you use:

1.01
1.02
1.03

You're life will get much simpler.



Colleen wrote:

I'm trying to sort numbers from an outline, so I want to sort it as 1.1, 1.2,
1.3...1.10, 1.11, and so on. Excel sorts them as 1.1, 1.10, 1.11...1.2, 1.3.
I have tried changing the format to several different types, including
Number, Text, Decimal, and cannot get Excel to sort it in the correct order
for an outline.


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
Jim Cone
 
Posts: n/a
Default How do I sort so that 1.2 comes before 1.10?

Colleen,
Review of a commercial application by yours truly...
http://www.officeletter.com/blink/specialsort.html
Jim Cone
San Francisco, USA


"Colleen"
wrote in message...
I know that it would be simpler, but I have to cross reference some new
numbers to the old outline numbers, and the old outline did not have the
zeroes after the decimal point. I was hoping that Excel had something that
recognized outlines.




  #6   Report Post  
Posted to microsoft.public.excel.misc
Ken Wright
 
Posts: n/a
Default How do I sort so that 1.2 comes before 1.10?

So why not add a new outline as opposed to replacing it. That way you have
the original which references back to the old, and you have the new which
sorts correctly. You can use formulas to create your new structure based on
the old one.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"Jim Cone" wrote in message
...
Colleen,
Review of a commercial application by yours truly...
http://www.officeletter.com/blink/specialsort.html
Jim Cone
San Francisco, USA


"Colleen"
wrote in message...
I know that it would be simpler, but I have to cross reference some new
numbers to the old outline numbers, and the old outline did not have the
zeroes after the decimal point. I was hoping that Excel had something
that
recognized outlines.




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
Select rows and sort based on type Sarah Excel Discussion (Misc queries) 0 October 11th 05 05:06 PM
sorting more than 3 keys Brooke Excel Discussion (Misc queries) 3 June 18th 05 04:52 AM
"-" ignored in sort Mike H Excel Discussion (Misc queries) 8 January 2nd 05 07:48 AM
HELP! How do you--> Lock a set of rows but also link worksheets to FRUSTRATED Excel Discussion (Misc queries) 6 December 29th 04 10:05 PM
Data > Sort function amnesia? Dave D Excel Discussion (Misc queries) 1 November 29th 04 10:44 PM


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