Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Multiple Indexes in a Document.
Written by Allen Wyatt (last updated December 23, 2023)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021
Marc has a multi-sectioned document. He wants to create an index on one section and a second index for the entire document. Marc wonders if there is a way to have two indexes in a document where one of them covers only a single section.
The short answer is yes, there is a way. When you insert an index into a document, what you are actually doing is inserting the INDEX field. With no switches used in the field, Word creates an index based on the entire document. To create an index based on only a portion of the document (such as on a single section), follow these general steps:
{ INDEX \b MySection }
There is another way to approach the problem, as well: You could add a switch to the XE field that is used to create an index entry. For instance, let's say you are indexing the term "polar bear" for the index. Make sure you have a field near the term like this one:
{ XE "polar bear" \f "a" }
The \f switch should appear only for index entries in the section that you want to have its own index. Later, when you insert the INDEX field to create the index for that section, you should make sure it looks like this:
{ INDEX \f "a" }
The index created by this field will only include those index entries that use the \f switch followed by the letter "a".
This addition of a switch to the XE field is handy, and it opens up another potential use. Say that you want two indexes for the entire document, perhaps one for places and one for people. All you need to do is follow these general steps:
This should provide you with the two indexes you want. The key is that you are using the /f switch in the XE field to indicate which index (specified by the INDEX field with the same /f switch) should include that entry.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (12137) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Word here: Multiple Indexes in a Document.
Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!
When indexing a document, you may find that some of your index entries aren't formatted the same as your other index ...
Discover MoreWhen generating an index, Word normally uses a dash to indicate page ranges. You can change the character used for these ...
Discover MoreWord allows you to define prefixes for page numbers. These are often used for chapter or section numbers in a large ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
2024-01-16 16:02:31
Paul
The last line of the article uses forward slashes— "/f"— instead of back slashes as previously—"\f". Was this intentional?
2024-01-02 09:45:24
Andrew
Barry, the answer is yes, and in a similar way. The table of contents field {TOC} has a "\b BookmarkName" bookmark switch which "Collects entries only from the portion of the document marked by the specified bookmark."
2023-12-29 04:11:48
Barry Pegram
Hi. Thank you once more for all of the tips. Regarding the Multiple Indexes... is it possible to do a similar thing with the TOC and if so how, please.
2023-12-23 06:16:50
Roger
Hi
Thanks for the above tip ref two indexes ie Places and People.
I use the (excellent) concordance file method for indexing. Is there a way of using a Place Concordance file and a People Concordance file to achieve the same?
Regards
Roger
Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments