Fix Word Page X of Y Numbers Incorrect in Table of Contents
Question details
The user needs to correct page numbering and total page counts in a Table of Contents when a document contains mixed number formats, such as Roman numerals for front matter and Arabic numerals for the main section.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Formatting a complex document with front matter and generating an accurate Table of Contents that reflects restarted page numbers and specific section counts.
- Observed behavior
- The Table of Contents fails to reflect the revised page numbering, displaying incorrect 'Page X of Y' values or ignoring the restarted Arabic numbering entirely.
Enable the 'Show/Hide ¶' feature in the Home tab to make hidden formatting marks visible, allowing you to easily locate existing page and section breaks.
Insert Section Breaks and Restart Page Numbering
Use section breaks to isolate the front matter from the main document, allowing you to restart numbering at 1 and apply different numeral formats.
A Table of Contents relies on the document's structural sections to pull page numbers. If the front matter and main body share the same section, the numbering will continue consecutively. Isolating them is the most reliable fix.
Place your cursor at the very end of your front matter (e.g., after the Table of Contents or Preface). Go to the Layout tab, click 'Breaks', and select 'Next Page' under Section Breaks.
Double-click the header or footer area on the first page of the new main section. In the Header & Footer tab, click 'Link to Previous' to turn it off. This disconnects the formatting from the front matter.
Go to Insert > Page Number > Format Page Numbers. Choose Arabic numerals (1, 2, 3...) in the Number format dropdown. Under Page numbering, select 'Start at' and enter '1'.
Right-click anywhere inside your Table of Contents, select 'Update Field', and then choose 'Update entire table' to refresh the numbers.

Adjust PAGE and NUMPAGES Field Codes
Modify the underlying field codes in your footer if the total page count (Y) is incorrectly including the front matter pages.
Easily Manage Complex Page Numbering with WPS Writer
WPS Office provides intuitive tools to manage sections, headers, and advanced page numbering, making it easy to format professional documents without wrestling with complex field codes.
- 1. Insert a Section Break: Open your document in WPS Writer. Go to Page Layout > Breaks and choose 'Next Page Section Break' to separate your front matter.
- 2. Unlink Headers/Footers: Double-click the footer of the new section and click the 'Link to Previous' button on the ribbon to disable it.
- 3. Restart Numbering: Go to Insert > Page Number. Select your preferred format, and check the 'Start at 1' option directly in the dialogue box.
- 4. Update TOC: Navigate to your Table of Contents, click the 'Update TOC' button that appears at the top left of the table, and select 'Update entire table'.

Frequently Asked Questions
Why does my Table of Contents show Roman numerals for the entire document?
This happens if you haven't inserted a section break between the front matter and the main text. Without a section break, the entire document uses a single continuous numbering format.
How do I make the 'Y' in 'Page X of Y' count only the main document pages?
Instead of using the default NUMPAGES field, which counts every page in the file, use the SECTIONPAGES field. This will display the total number of pages strictly within that specific section.
What does pressing Alt+F9 do in a word processor?
Pressing Alt+F9 toggles the display of field codes in your document. It allows you to see the underlying formulas, like { PAGE } or { TOC }, instead of the resulting values, enabling you to manually troubleshoot and edit complex numbering.




