How to Show Document and Section Page Numbers in Word Footers
Question details
The user needs to display complex document and section page numbers in Word footers, despite the absence of dedicated DocumentPage or SectionPage fields.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Formatting footers for a complex document that requires both overall document page counts and individual section page counts.
- Observed behavior
- Word has built-in PAGE, NUMPAGES, and SECTIONPAGES fields but lacks built-in fields for advanced mixed numbering layouts, requiring custom field codes to achieve the desired result.
Ensure your document is properly divided into sections using 'Next Page' section breaks, as section-specific numbering relies entirely on these breaks to function correctly.
Use Field Codes for Advanced Document and Section Pagination
Manually insert and combine Word field codes to display both the current section page number and total document pages.
Since Word does not have a single built-in tool for mixed section and document page counts, you must use nested field codes to build custom formulas.
Double-click the footer area of your document to open the Header & Footer design tab.
Press Ctrl+F9 to insert curly brackets. Type PAGE inside them to display the current page number of the section. Right-click the field and select Update Field.
Type the word 'of' after the page number, then press Ctrl+F9 again and type SECTIONPAGES to display the total pages in the current section.
To add the overall document count, type a separator (like ' | Total Pages: '), press Ctrl+F9, and type NUMPAGES.
Select the entire footer text, right-click, and choose Update Field or press F9 to display the calculated numbers instead of the raw codes.

Reset Page Numbers for Each New Section
Configure the page number format to restart at page 1 for each new section.
Effortlessly Manage Document and Section Page Numbers in WPS Writer
WPS Office provides an intuitive Header and Footer interface that makes it simple to insert advanced page numbering, total pages, and section-specific counts without memorizing complex field codes.
- 1. Open Header and Footer: Open your document in WPS Writer, go to the Insert tab, and click Header and Footer.
- 2. Use the Page Number Dropdown: Click the Page Number button in the ribbon. Here you can easily select standard formats like 'Page X of Y'.
- 3. Restart Section Numbering: Go to Format Page Numbers from the dropdown, select Start at 1, and apply it to the current section.
- 4. Insert Total Pages: Use the Insert Fields option within the Header & Footer tab to quickly add total document pages or section pages without manually typing field formulas.

Frequently Asked Questions
What is the difference between NUMPAGES and SECTIONPAGES?
NUMPAGES calculates the total number of pages in the entire document, whereas SECTIONPAGES only counts the total number of pages within the current active section.
Why are my Word field codes showing as text instead of numbers?
You may be viewing the raw field codes instead of the results. Press Alt+F9 to toggle between viewing the field codes (like {PAGE}) and the actual calculated page numbers.
How do I stop page numbering from continuing from the previous section?
Double-click the footer, go to the Header & Footer tab, and deselect 'Link to Previous.' Then, go to Format Page Numbers and set it to 'Start at 1'.
Can I use advanced Microsoft Word field code methods in WPS Office?
Yes, WPS Office Writer supports standard Microsoft Word field codes, meaning most advanced pagination formulas and field code combinations will calculate correctly when opened and updated in WPS.




