A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

what format to use for an subsentance in law 9.15.1.1 (1)(a)(ii)



 
 
Thread Tools Display Modes
  #1  
Old November 22nd, 2009, 04:24 AM posted to microsoft.public.excel.misc
hidingfromcops
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  
Old November 22nd, 2009, 07:24 AM posted to microsoft.public.excel.misc
FSt1
external usenet poster
 
Posts: 2,788
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  
Old November 22nd, 2009, 09:11 AM posted to microsoft.public.excel.misc
David Biddulph
external usenet poster
 
Posts: 8,714
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 ?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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