Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Melissa
 
Posts: n/a
Default sort "numbers" with decimals

I've got chapter numbers in one column which goes: 4.1, 4.2, 4.3...., 4.11,
4.12....
How can I sort it by the numbers on the right of the decimal point instead
of getting: 4.1, 4.10, 4.11, 4.12, ....4.2, 4.20, 4.21, ....
  #2   Report Post  
Bernd Plumhoff
 
Posts: n/a
Default

Hello Melissa,

http://www.bplumhoff.de/software/sort_chapter.xls

is a sample spreadsheet with a UDF in it which solves this.

HTH,
Bernd
  #3   Report Post  
NlCO
 
Posts: n/a
Default


Insert two Columns at the right of the numbers.
Select the range of numbers i.e. "A:A"
Then go to DATA Text to Columns Delimited
Uncheck all checked and then select "Other and put a "." in the space
provided (without the "")
Then Click Finish.
You'll have on B:B all the data before the point.
In Colum C Row 1 you can put =A1&"."&B1 to get the numbers together
again.

Saludos

NlCO


--
NlCO
------------------------------------------------------------------------
NlCO's Profile: http://www.excelforum.com/member.php...o&userid=26123
View this thread: http://www.excelforum.com/showthread...hreadid=401416

  #4   Report Post  
bill k
 
Posts: n/a
Default


you need to split the values first and then sort by the decimals

to split them use <data <text to columns <delimited <other .
<destination next to your chapter numbers.
then sort by the column with the decimals

have fun


--
bill k


------------------------------------------------------------------------
bill k's Profile: http://www.excelforum.com/member.php...nfo&userid=821
View this thread: http://www.excelforum.com/showthread...hreadid=401416

  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

Another option would be to use:

4.01, 4.02, ...

(or 4.001, 4.002, ... if you can hit triple digits)


Melissa wrote:

I've got chapter numbers in one column which goes: 4.1, 4.2, 4.3...., 4.11,
4.12....
How can I sort it by the numbers on the right of the decimal point instead
of getting: 4.1, 4.10, 4.11, 4.12, ....4.2, 4.20, 4.21, ....


--

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
How do I sort hexidecimal numbers in an excel spreadsheet? Jane Martin Excel Discussion (Misc queries) 2 July 18th 05 07:45 PM
How do I sort letters before numbers in Excel? RiverGirl Excel Discussion (Misc queries) 4 May 27th 05 04:09 PM
Converting imported numbers to decimals (rather than /100) Frustrated Excel user Excel Worksheet Functions 2 April 5th 05 05:46 PM
Numbers won't sort correctly. FernW Excel Discussion (Misc queries) 10 April 1st 05 01:29 PM
Numbers won't sort correctly. FernW Excel Discussion (Misc queries) 1 March 3rd 05 02:46 PM


All times are GMT +1. The time now is 07:17 AM.

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"