Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-16-2022, 01:14 PM
aggiebryan aggiebryan is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 11 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Novice
Index - sort so that 102 comes after 1 and before 2 in index
 
Join Date: Nov 2022
Posts: 6
aggiebryan is on a distinguished road
Default Index - sort so that 102 comes after 1 and before 2 in index

I am trying to get an index updated in one of my documents. I was able to mark the sections to get them added with no problem. I am putting together a document with law codes and would like it to reference directly to the section number. Problem is that the header for the section is 1, 2, or any single digit. the codes are listed as 1.100, 1.104, 1.104, 101.100, 101.102, 101.103. I would like to have the sections split up as 1, 101, 102, etc.

How do I get this to happen.

image of what I'm talking about is here.
Familylawcodeindex — ImgBB

[Edit: the following explanation was posted below on 11/19. For answers, see posts that follow that information.

Quote:
I would like it to be organized like this:


1

1.101........4,10,20
1.102...........11,21

101

101.100........34,90
101.101.............35

102

102.100.........100

Currently it just does it like this

1
1.101.............4,10,20
1.102................11,21


101.100.............34,90
101.101.................35
102.100...............100

2
2.100.....................30
End of Edit]

Last edited by Charles Kenyon; 11-22-2022 at 06:42 AM. Reason: removed image inline and added clarification information
Reply With Quote
  #2  
Old 11-16-2022, 03:55 PM
Charles Kenyon Charles Kenyon is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 11 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 8,377
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

I believe this is what is referred to in Word jargon as a Table of Contents, not an Index.
A Table of Contents will give a heading or other topic and the page on which it is found and is organized in sequential order according to placement in the main document. Generally, this will be at the beginning of a document, before the main text.

An Index will list the page(s) on which terms or subjects are found and is organized in alphabetical order. This is usually at the end of a document.



More jargon: What is the difference between headings and headers?

I expect that you want your heading styles to be attached to multi-level numbering. If you use automatic paragraph numbering or bullets read Shauna Kelly's directions on numbering and bullets. Start with How to create numbered headings or outline numbering in Word 2007 and Word 2010. For large documents you must follow these directions or you will lose your hair!
(Mac version: Outline Numbering in Word for macOS - Best Practices - Brandwares)

This may seem a bit convoluted at first, but it really is not. Just follow the steps. Shauna Kelly's instructions use the built-in heading styles, but you can use any existing paragraph styles including your custom styles. There are, however advantages to using the built-in heading styles when you create a Table of Contents. Here are some more advantages: Why Use Word's Built-In Heading Styles? by Shauna Kelly Note, you can modify these built-in styles to look exactly the way you want.


Videos on this

https://www.youtube.com/watch?v=He_ob8ydc9E
https://www.youtube.com/watch?v=qbyTcWo52G4
https://www.youtube.com/watch?v=GevZOS-nCuw
https://www.youtube.com/watch?v=niD6VXPvAyU

The basic idea is that the numbering is set using the Define MultiLevel List dialog with each numbering level being attached to an existing paragraph style. Once you have this set up, you should not use the buttons for numbering in the Ribbon but rather apply the appropriate style for that level.

You can save a document with this as a template for future documents if you want so you will not need to do this every time.

Once you have your multilevel list set up attached to your heading styles, then you create your Table of Contents.

Last edited by Charles Kenyon; 11-16-2022 at 06:29 PM.
Reply With Quote
  #3  
Old 11-17-2022, 01:02 AM
aggiebryan aggiebryan is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 11 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Novice
Index - sort so that 102 comes after 1 and before 2 in index
 
Join Date: Nov 2022
Posts: 6
aggiebryan is on a distinguished road
Default

No, I already have a table of contents. I am wanting the index by items that I've marked in the document. I just want to break it out into different sections. It's not to organize it in page order, but rather by sections of the code. All 1.xxx is related to marriage, 6.xxx is related to the dissolution of marriage, 102.xxx would be all code related to filing suit etc. I just want to get everything in the right section.
Reply With Quote
  #4  
Old 11-17-2022, 08:40 AM
Charles Kenyon Charles Kenyon is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 11 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 8,377
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

It IS a TOC unless you have things in your document so that 1.305 is followed by 7.203 followed by 2.715 followed by 1.307. Then you might want an Index, but I am a lawyer and have been a department head charged with generating rules. If a statute book or rule book were so organized, we would be re-organizing post-haste, and not just the document.

If it is a document describing some various rules people might want to be cognizant of and not laid out in sequential order, than an index would be useful. However, it would not be organized quite like you are showing. Indices - Complex Documents

You can have partial Tables of Contents that appear in places other than in the front matter such as at the beginning of chapters. See TOC Tips and Tricks by Suzanne Barnhill, MVP on creating a TOC for part of a document.


Note: I modified your title so those looking for help with headers and footers will not come to this topic.
Reply With Quote
  #5  
Old 11-17-2022, 06:14 PM
aggiebryan aggiebryan is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 11 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Novice
Index - sort so that 102 comes after 1 and before 2 in index
 
Join Date: Nov 2022
Posts: 6
aggiebryan is on a distinguished road
Default

It is an index. It's for a personal outline and I am linking to every instance of 1.xxx throughout the document. It is not a book to be published. If I wanted just the section that I was putting to be for one page, yes, that would be a table of contents, That is NOT what I'm asking.
Reply With Quote
  #6  
Old 11-17-2022, 08:24 PM
Charles Kenyon Charles Kenyon is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 11 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 8,377
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

So you have multiple instances of 152.204?
And, multiple instances of 152.208?


You want to see which pages they are on? So you would want:
152.204 ........7,9,13
152.208 ...........6,10
Reply With Quote
  #7  
Old 11-17-2022, 08:50 PM
aggiebryan aggiebryan is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 11 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Novice
Index - sort so that 102 comes after 1 and before 2 in index
 
Join Date: Nov 2022
Posts: 6
aggiebryan is on a distinguished road
Default

Correct. I know how to get that part done, I just have to do an XE for each occurrence. My only problem is that the header for each section is going by the first digit. I would like it to be the section number. So 1 goes with 1.xxx and 101 would go with 101.xxx.
Reply With Quote
  #8  
Old 11-18-2022, 10:04 AM
Charles Kenyon Charles Kenyon is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 11 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 8,377
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by aggiebryan View Post
It is an index. It's for a personal outline and I am linking to every instance of 1.xxx throughout the document. It is not a book to be published. If I wanted just the section that I was putting to be for one page, yes, that would be a table of contents, That is NOT what I'm asking.
So you want something along the lines of:
152.109..........7,13,15
152.208...............6,12
Reply With Quote
  #9  
Old 11-18-2022, 11:28 PM
aggiebryan aggiebryan is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 11 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Novice
Index - sort so that 102 comes after 1 and before 2 in index
 
Join Date: Nov 2022
Posts: 6
aggiebryan is on a distinguished road
Default

Yes. But I would like it to be organized like this:


1

1.101........4,10,20
1.102...........11,21

101

101.100........34,90
101.101.............35

102

102.100.........100

Currently it just does it like this

1
1.101.............4,10,20
1.102................11,21
101.100.............34,90
101.101.................35
102.100...............100

2
2.100.....................30
Reply With Quote
  #10  
Old 11-19-2022, 11:25 AM
Charles Kenyon Charles Kenyon is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 11 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 8,377
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

[Edit: This is not correct. See posts following. Left in for completeness of thread.]
I am afraid that Word cannot do this all the way for you.
Word's organization of sorting sees 2 as less than 101 and so puts it first.

The index, though, is a field.
When you have your final draft, you can unlink the index field and then rearrange it to suit. Ctrl+6 or Ctrl+Shift+F9 will unlink a field. This changes it into ordinary text which can be edited.
Dealing with Fields in Microsoft Word

To update this, you would need to insert the index again. If only part is changed, your could unlink the new index and just paste the updated part into your reorganized index. If a lot is changed, just delete the old one and reorganize the new one.

You could, instead, change your numbering system. so that instead of 1 and 2 you hand 100 and 200. That may not be within your job description, though.

Last edited by Charles Kenyon; 11-22-2022 at 06:34 AM.
Reply With Quote
  #11  
Old 11-21-2022, 11:45 PM
aggiebryan aggiebryan is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 11 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Novice
Index - sort so that 102 comes after 1 and before 2 in index
 
Join Date: Nov 2022
Posts: 6
aggiebryan is on a distinguished road
Default

Thanks, that's what I was afraid of. But your solution worked, just a lot more work.

Thanks again.
Reply With Quote
  #12  
Old 11-22-2022, 06:12 AM
kilroyscarnival kilroyscarnival is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 10 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Competent Performer
 
Join Date: May 2019
Posts: 189
kilroyscarnival is on a distinguished road
Default

Quote:
Originally Posted by aggiebryan View Post
Thanks, that's what I was afraid of. But your solution worked, just a lot more work.

Thanks again.
I'm not sure whether this would be any easier, but could you make a separate index for each set of numbers (under 1, under 2, etc.) and just place them sequentially, labeled with the single digit section headers?
Reply With Quote
  #13  
Old 11-22-2022, 06:31 AM
Charles Kenyon Charles Kenyon is offline Index - sort so that 102 comes after 1 and before 2 in index Windows 11 Index - sort so that 102 comes after 1 and before 2 in index Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 8,377
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by kilroyscarnival View Post
I'm not sure whether this would be any easier, but could you make a separate index for each set of numbers (under 1, under 2, etc.) and just place them sequentially, labeled with the single digit section headers?
Good call!

Even though I wrote about using Multiple Indices some time ago in my chapter on Complex Documents, I had forgotten that possibility.
You would need to use the \f switch and add identifiers in each XE field to do this.
Information is in the documentation about the XE (Index Entry) Field and Index Field.

This would also be laborious to set up but once done you would be able to have multiple indices that you could update.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a I create an index in a word document where index entries control sections of the document? pfriorda Word 3 12-28-2017 08:02 PM
Index - sort so that 102 comes after 1 and before 2 in index Updating font in index without updating style of index Nick B Word 4 11-28-2016 02:00 AM
Get Paragraph index from bookmark starting index vince692 Word VBA 6 05-13-2016 04:51 AM
Need a sort and index formula cr2crf Excel 2 09-12-2014 06:20 AM
Adding an Index savo Word 1 04-17-2013 06:16 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft