When compiling comprehensive textbooks, formal academic dissertations, technical reference manuals, or legal publications in Microsoft Word, providing an alphabetical back-of-the-book index allows readers to quickly locate specific terminology, concepts, and key figures across hundreds of pages. While Word offers a graphical dialogue to mark index entries, managing complex indices\u2014such as creating multi-column layouts, adding bold alphabetical letter headings (A, B, C dividers), configuring multi-level sub-entries, and creating cross-references (“See also”)\u2014requires working directly with the underlying INDEX and XE (Index Entry) field codes.
Understanding How INDEX and XE Fields Coordinate
The indexing engine in Microsoft Word relies on two distinct field codes working in concert:
{ XE "Main Entry:Subentry" }(Index Entry): A hidden, non-printing field code placed directly beside target keywords in the document text. It tags the exact word, defines hierarchy, and marks the active page number.{ INDEX }(Index Generator): A composite field code placed at the end of the document that collects all distributedXEentries, sorts them alphabetically, compiles matching page numbers, and renders the formatted index.
Marking Index Entries in Document Text Using XE Fields
To tag words and phrases as index entries throughout your document:
- Highlight the word or term in your body text.
- Press Alt + Shift + X (the universal shortcut to open the Mark Index Entry dialogue box).
- Word automatically populates the selected text into the Main entry field.
- To create a nested sub-entry (e.g., Networking: Subgrid), enter the subtopic into the Subentry field.
- To create a cross-reference instead of a page number, select Cross-reference and type your target (e.g., See Cloud Computing).
- Click Mark (to mark that individual instance) or Mark All (to automatically index every matching occurrence across the document).
- Click Close.
Because XE fields are formatted as hidden text, click the Show/Hide (¶) button on the Home tab to reveal them:
Virtual Switch{ XE "Virtual Switch:Configuration" }
Inserting the Master INDEX Field via the Ribbon
To generate the compiled index at the end of your document:
- Place your cursor on a new page at the very end of your document.
- Switch to the References tab on the Ribbon.
- In the Index group, click Insert Index.
- In the dialogue box, configure the presentation parameters:
- Type: Indented (sub-entries appear on separate indented lines) or Run-in (sub-entries flow inline).
- Columns: Set the number of columns (typically 2 or 3 columns).
- Right align page numbers: Check this to align numbers to the right margin with dot leaders.
- Formats: Select a typographical style (e.g., Classic, Fancy, Modern, or From template).
- Click OK. Word scans the document and compiles the alphabetical index.
Inspecting and Customizing INDEX Field Switches Directly
To customize index behavior beyond the limitations of the dialogue box, press Alt + F9 (or Shift + F9) to inspect the underlying INDEX field code:
{ INDEX \c "2" \h "A" \q \e " " }
Powerful field switches include:
\c "Number": Sets the number of columns per page for the index (e.g.,\c "3"formats a three-column index).\h "A": Inserts bold alphabetical divider headings (A, B, C…) above each letter grouping.\e "Separator": Defines the character string separating the index entry from its page numbers (e.g., a comma and space, or a tab character with dot leaders).\p "LetterRange": Restricts the index to a specific alphabetical range (e.g.,\p "a-m").\s "Bookmark": Generates an index covering only text enclosed within a specified bookmark rather than the entire document.
Updating and Editing the Index
When document content changes, paragraphs shift, or new XE fields are marked, Word does not update the compiled index automatically in real time:
- Refresh Index: Click anywhere inside the index and press F9 (or click Update Index on the References tab).
- Hide Markers Before Updating: Ensure Show/Hide (¶) is turned off before updating or printing. Hidden field text temporarily shifts paragraph pagination; hiding markers restores exact print page numbers.
- Lock Index for Final Publishing: To prevent unintended recalculation prior to distribution, select the index and press Ctrl + F11 to lock the field.