Exclude Final Pages from Page X of Y Numbering in Microsoft Word
Question details
The user wants Word's Page X of Y numbering to exclude final form pages from both the displayed numbers and the total page count.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A document ends with form pages that should remain unnumbered and not count toward the total shown on earlier pages.
- Observed behavior
- The NUMPAGES field counts every page in the document, including the final form pages.
Check how many final pages must be excluded and whether all pages to be numbered can be placed in one section. Open the header or footer containing the existing Page X of Y numbering.
Use SECTIONPAGES to count only the numbered section
Use this method when the pages to be numbered can all be placed in one section before the final forms.
Place the cursor at the end of the last page to be numbered. Select Layout > Breaks > Next Page under Section Breaks.
Double-click the header or footer on a form page, wherever the page number appears. On the Header & Footer tab, turn off Link to Previous, then delete the page-number text from that final section.
Return to the header or footer in the numbered section. On Windows, press Alt+F9 to display field codes, replace the NUMPAGES field name with SECTIONPAGES, and press Alt+F9 again.
If the numbered section should start at 1, select Page Number > Format Page Numbers and set Start at to 1. Select the numbering and press F9 to update the fields.

Subtract the final pages from the NUMPAGES total
Use a calculated field when the numbered content spans multiple sections or placing it in one section is impractical.
Edit Word documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Its format compatibility helps you move existing files into WPS Writer; check complex field-based numbering after opening a document.

Frequently Asked Questions
Why does NUMPAGES include my final form pages?
NUMPAGES counts pages in the entire Word document, regardless of whether those pages display a page number. Use SECTIONPAGES when the numbered pages are all in one section.
Why did deleting the page number from the forms also remove it from earlier pages?
The headers or footers were probably linked. In the final section, open the relevant header or footer and turn off Link to Previous before deleting its numbering.
How do I show field codes in Word?
In Word on Windows, press Alt+F9 to toggle between field codes and their results. Select a field and press F9 to update it.
Can SECTIONPAGES count numbered pages across several sections?
No. SECTIONPAGES counts only the pages in its own section. For numbered content spanning multiple sections, consider a calculated NUMPAGES field that subtracts the final form pages.
What happens if the number of final form pages changes?
With the subtraction method, edit the number in the calculated field to match the new count, then select the field and press F9. SECTIONPAGES does not require a fixed subtraction.




