Word builds an alphabetical index from entries you mark in the document. It lists topics with their page numbers; it does not use heading styles the way a table of contents does.
Mark the words and topics
- In desktop Word, select a word or phrase you want readers to find, or place the cursor where that topic is discussed.
- Choose References > Mark Entry. In the Mark Index Entry dialog, edit the Main entry if the index should use a clearer term. Add a Subentry or cross-reference if useful.
- Choose Mark for this occurrence or Mark All to mark matching text throughout the document. Repeat for the important topics.
Word adds an XE field for each marked entry. These field codes may become visible while you work. Use Home > Show/Hide ¶ to show or hide them; they are not the finished index.
If you need to undo a marking, see how to delete an index entry you marked by mistake so it disappears from the index when you update it.
Insert and format the index
- Click where the index should appear, commonly near the end of the document.
- Choose References > Insert Index.
- In the Index dialog, choose the format, columns, page-number alignment, and tab leaders you want, then select OK.
Word gathers the marked entries, sorts them alphabetically, and adds their page numbers. Review the result for inconsistent terms and entries that point to unhelpful pages. To edit an entry, show the XE fields, change the relevant field’s text, then update the index.
Word sorts index entries for you. To put an ordinary list in A to Z order, use the Sort button instead, as shown in our guide to alphabetizing in Word.
Update after edits
After adding entries or moving text, click inside the index and press F9, or choose References > Update Index. If you delete a marked entry, remove its whole XE field, including the braces, and update again. Check the final page numbers in a print or PDF preview.
If you want a list of headings in document order instead, use a table of contents.
Source: Microsoft Support: Create and update an index.

Matt has been writing about Microsoft Windows and other Microsoft products since the days of Windows XP. He spends much of his time writing for sites like WindowBrain.com