Skip to content
DocumentTaskLab

Word tasks · Long documents

Create an index in Word for the back of a long document

Written November 21, 2026

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.

Mark entries

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

  1. 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.
  2. 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.
  3. 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 with care

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

  1. 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.
  2. 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.
  3. 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.

  1. Update the whole index. Click in the index and press F9, or go to References > Update Index. Word rebuilds the list from the current XE fields and the current pagination.
  2. Edit an entry at its XE field. Turn on Home > Show/Hide so the XE fields show in the text. To change an entry's wording, edit the text inside the quotation marks in its XE field, then update the index. To delete an entry, select the whole XE field including its braces and press Delete, then update.
  3. Turn field codes off before you finish. Switch Show/Hide off again so the XE fields are hidden, run one last update, and the index you send out matches the document it sits in.

End state

When it goes wrong

Related document tasks

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.