How to Combine Word Index Entries That Differ by Capitalization
Question details
The user needs to combine separate index entries for the same term that differ only in capitalization so that all page references fall under one unified entry.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Generating a document index where identical terms have been marked with different cases.
- Observed behavior
- Word creates separate index entries for capitalized and lowercase versions of the same word instead of grouping their page numbers together.
Ensure that paragraph marks and hidden formatting symbols are visible in your document, as you will need to see and edit the hidden XE (Index Entry) field codes to resolve this issue.
Edit XE Fields to Match Capitalization
Unify the text within the XE field codes so that Word recognizes them as the exact same index entry.
Word processors are case-sensitive when compiling index entries. If you mark "Diagonal" and "diagonal", the indexing engine treats them as entirely different terms. To fix this, you must edit the underlying field codes manually so they match perfectly.
Go to the Home tab and click the 'Show/Hide ¶' button (or press Ctrl+*) to reveal the hidden XE field codes within your document text.
Find the { XE "Term" } codes next to the words you indexed. Change the text inside the quotation marks so that all instances use the exact same capitalization (for example, change { XE "Diagonal" } to { XE "diagonal" }).
Scroll to your generated index, click anywhere inside the index block, and press F9 (or right-click and select 'Update Field') to refresh it. The page numbers will now combine under a single entry.

Use Find and Replace for Bulk XE Field Edits
If you have a large document with many mismatched XE fields, use the Find and Replace feature to fix them all simultaneously.
Effortlessly Manage Document Indexes with WPS Writer
WPS Office provides intuitive and powerful referencing tools that make creating, editing, and updating indexes seamless. It handles field codes efficiently and is fully compatible with major document formats, ensuring your indexes are perfectly compiled.
- 1. Reveal hidden field codes: Open your document in WPS Writer. Click the Home tab and enable the 'Show/Hide Editing Marks' icon to see your { XE } fields clearly.
- 2. Edit the field capitalization: Adjust any mismatched text inside the { XE } codes so that your terms share the exact same capitalization.
- 3. Update the index: Navigate to your index block, click inside it, and select 'Update Index' from the References tab to combine the entries.

Frequently Asked Questions
Why does Word treat lowercase and capitalized words as different index entries?
The indexing engine is strictly case-sensitive. It reads the exact characters within the hidden XE field code, meaning a capital letter creates a unique data string compared to its lowercase counterpart.
Can I force the software to ignore case when generating an index?
No, standard word processors do not have a built-in toggle to ignore case during index generation. You must ensure the text within the XE field codes themselves matches perfectly.
Will changing the text in the main document change the index entry automatically?
No. The generated index relies solely on the text placed inside the hidden { XE "..." } field code. Changing the visible document text won't fix the index until you edit the corresponding XE code and refresh the index.
How do I hide the XE field codes after I finish editing them?
Go to the Home tab and click the 'Show/Hide ¶' button again, or press Ctrl+* on your keyboard, to hide all formatting marks and field codes from your view.




