Word tasks · Long documents
Create an index in Word for the back of a long document
Readers of a manual, report or book-length document expect to look a term up at the back and land on the right page. Word builds that index for you — but only from entries you mark: mark each term once as you go, then insert the index and Word sorts the entries alphabetically with their page numbers. This guide covers marking entries, grouping related terms as subentries, inserting the index, and keeping it current.
How a Word index is built
An index is built in two passes, as Microsoft describes in Create and update an index: first you mark the entries in the text, then Word builds the finished index from those marks. When you mark text, Word adds a hidden XE (Index Entry) field at that spot carrying the entry wording. When you insert the index, Word collects every XE field, sorts the entries alphabetically, attaches their page numbers, and merges duplicate entries that point at the same page.
- Marking is the work. Word never guesses which terms matter, so the index is only as complete as your marking. Plan on a pass through the finished document, term by term.
- The index is not the table of contents. The contents list sits at the front, follows document order and is built from headings. The index sits at the back, runs alphabetically and is built from the terms you marked.
Mark entries
- Select the term, or click where the entry belongs. Select the word or phrase in the text that the entry should point at. If the index wording should differ from the words on the page, just click at the spot instead and type the wording in the dialog.
- Open Mark Entry. Go to References > Mark Entry, or press Alt+Shift+X. The Mark Index Entry dialog opens and stays open while you work through the document.
- Check the main entry wording. The Main entry box holds your selected text. Edit it to the form readers will look up — the plural they will search for, or the noun form rather than a verb in mid-sentence. Keep the wording identical for the same term every time, or the index splits it into separate entries.
- Mark this spot, or mark them all. Click Mark to mark just this occurrence. Click Mark All to mark every occurrence of the same text in the document — useful for a term that is discussed in several places, wasteful for a word that also appears in passing. Leave Current page selected under Options for an ordinary entry.
- Keep going without closing the dialog. Click back in the document, select the next term, and the dialog picks it up — repeat the check and Mark steps for each term. Click Close only when the whole document is marked.
Second-level entries and cross-references
A long list of identical main entries with a dozen page numbers each is hard to use. Second-level entries group the detail under one heading so the reader can pick the aspect they want.
- Add a subentry in the dialog. With the term selected, open Mark Entry, leave the general term in Main entry and type the specific aspect in the subentry box — for example, Main entry “Invoices” with the subentry “late payment”. The index prints the subentry indented under the main entry with its own page number.
- Go one level deeper only if you need it. For a third level, type the subentry followed by a colon and then the third-level text in the subentry box. Most documents never need more than two levels.
- Point readers sideways with a cross-reference. For a term you deliberately index under a different name, choose Cross-reference under Options and type the entry to see instead — for example, marking “Motor cars” with the cross-reference “See Cars”. The index prints the pointer instead of a page number.
Mark All marks every matching occurrence, including the passing mentions a reader gains nothing from. An index entry with fifteen page numbers helps nobody; mark the passages where the term is actually explained or used, and let the definition page carry a bold page number if you set one — the Bold and Italic options under Page number format in the dialog exist for exactly that.
Insert the index
- Put the cursor where the index belongs. Click at the end of the document, on its own page at the back — add a page break first if the last section runs to the foot of its page, and type an “Index” heading if you want one.
- Insert the index. Go to References > Insert Index. In the Index dialog, choose the format for the entries, page numbers and leader characters, and pick the overall look from the Formats list — the preview in the dialog shows what you are choosing.
- Confirm with OK and read it through. Word builds the index at the cursor. Read the finished list once: entries should run alphabetically, subentries should sit under the right main entries, and no term should appear twice under slightly different wording.
Update the index after edits
The index is a field, so it holds the page numbers from the moment it was built or last updated. Any edit that moves text — and any entry you mark, change or delete later — needs an update to show up, following the same field routine Microsoft sets out in Update fields.
- Update the whole index. Click in the index and press F9, or go to References > Update Index. Word rebuilds the list from the current
XEfields and the current pagination. - Edit an entry at its
XEfield. Turn on Home > Show/Hide so theXEfields show in the text. To change an entry's wording, edit the text inside the quotation marks in itsXEfield, then update the index. To delete an entry, select the wholeXEfield including its braces and press Delete, then update. - Turn field codes off before you finish. Switch Show/Hide off again so the
XEfields are hidden, run one last update, and the index you send out matches the document it sits in.
End state
- Every term a reader is likely to look up was marked with Mark Entry, in one consistent wording, with subentries where a main entry would otherwise carry a long string of page numbers.
- The index sits on its own page at the back of the document, runs alphabetically, and shows each entry once per page it is marked on.
- The index was updated after the last edit, so every page number matches the document as it now stands.
- Show/Hide is off and no
XEfield text shows in the reading view.
When it goes wrong
- A marked term is missing from the index. It was marked after the index was last updated, or its
XEfield was deleted along with an edited paragraph. Click in the index and press F9; if the term is still missing, find the passage and mark it again. - The same term appears twice, slightly reworded. The Main entry wording differed between markings — “Invoice” in one place, “Invoices” in another. Turn on Show/Hide, make the
XEfields match exactly, and update the index. - Curly-brace codes are showing in the text. Those are the
XEfields, visible because Show/Hide is on. They do not print as part of the document text; switch Home > Show/Hide off to hide them. - Page numbers are wrong after a big edit. The index still holds the old pagination. Click in the index, press F9, and if the document shifted a lot while updating, update once more so the numbers settle.
Related document tasks
-
Convert a PDF back into an editable Word document
Open a PDF in Word and save it as an editable document, or use a converter, then check the result page by page.
-
Use the Navigation Pane in Word to move through a long document
Use the Navigation Pane in Word to move through a long document: jump by headings, browse page thumbnails, search with the Results tab, and drag headings to reorganize whole sections.
-
Add revision dates and a version table to the front of a long Word document
When a long document changes hands for months, nobody can tell which copy is current or what changed last.
-
Convert a Word document to Google Docs format and bring it back without losing formatting
Sometimes the editing happens in Google Docs and the finished file has to be a Word document again — a collaborator works in Docs, the client expects .docx.
Sources
- Microsoft Support, Create and update an index — marking entries and second-level entries, inserting the index, and editing or deleting an entry and updating the index.
- Microsoft Support, Update fields — updating a field with Update Field or F9, and updating fields before printing.