Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default what format to use for an subsentance in law 9.15.1.1 (1)(a)(ii)

when ever i try to enter things in to a colomn it sorts it like
9.1.1.1
9.15.1.2
9.2.4.5
9.25.4.2
9.6.1.4
as you can see I would like the bigger number after 9.XX.XX.XX to be sorted
to there value (or even the 9). Also there's these 9.15.1.1 (1)(a)(iii) type
sub sentances to worry about.
I can't be the first guy to every type information from law books into
excel, so where's the code that sorts this stuff out ?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default what format to use for an subsentance in law 9.15.1.1 (1)(a)(ii)

hi
the reason it's sorting like this is because excel is see the data as text
and sorting it like text not numbers so you will need a special sort. special
sorts are usually done with a helper columnm. in a blank column next to your
data, enter this formula
=IF(MID(A2,4,1)=".",1,2) and copy down as far as you need.
then sort by the helper column as primary sort and your sample data as
secondary sort.
the formula above is looking for the second dot and if it finds one, puts 1
in the helper column. other wise 2.

this formula worked on your sample data. not sure how complicated all you
data. post back if you have problems. it's 2am in atlanta and i will be
crashing soon. i'll check back tomorrow.

Regards


"hidingfromcops" wrote:

when ever i try to enter things in to a colomn it sorts it like
9.1.1.1
9.15.1.2
9.2.4.5
9.25.4.2
9.6.1.4
as you can see I would like the bigger number after 9.XX.XX.XX to be sorted
to there value (or even the 9). Also there's these 9.15.1.1 (1)(a)(iii) type
sub sentances to worry about.
I can't be the first guy to every type information from law books into
excel, so where's the code that sorts this stuff out ?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default what format to use for an subsentance in law 9.15.1.1 (1)(a)(ii)

Probably best to use helper columns to split the components. Use Data/ Text
to columns.
--
David Biddulph

"hidingfromcops" wrote in message
...
when ever i try to enter things in to a colomn it sorts it like
9.1.1.1
9.15.1.2
9.2.4.5
9.25.4.2
9.6.1.4
as you can see I would like the bigger number after 9.XX.XX.XX to be
sorted
to there value (or even the 9). Also there's these 9.15.1.1 (1)(a)(iii)
type
sub sentances to worry about.
I can't be the first guy to every type information from law books into
excel, so where's the code that sorts this stuff out ?



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
Lock Cell Format - Allow copy and paste of data without format change Chris12InKC Excel Worksheet Functions 2 May 9th 23 07:42 PM
Adding time in 24 hour format to produce hours in decimal format Hercdriver Excel Worksheet Functions 11 December 29th 09 02:06 AM
Need help with converting CUSTOM format/TEXT format to DATE format Deo Cleto Excel Worksheet Functions 6 June 2nd 09 08:14 PM
Replace million-billion number format to lakhs-crores format Sumit Excel Discussion (Misc queries) 1 December 9th 05 04:58 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM


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