Formatting Issues

How to Show Document and Section Page Numbers in Word Footers

Steve KSteve K Nov 4, 2026 872 views

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.

How to Show Document and Section Page Numbers in Word Footers
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.
Before you start

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.

Solution 1Recommended

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.

1
Access the Document Footer

Double-click the footer area of your document to open the Header & Footer design tab.

2
Insert the Section Page Number

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.

3
Insert Total Section Pages

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.

4
Add Total Document Pages

To add the overall document count, type a separator (like ' | Total Pages: '), press Ctrl+F9, and type NUMPAGES.

5
Update All Fields

Select the entire footer text, right-click, and choose Update Field or press F9 to display the calculated numbers instead of the raw codes.

Use Field Codes for Advanced Document and Section Pagination
Unlinking Sections: If you want different numbering styles per section, ensure 'Link to Previous' is turned off in the Header & Footer navigation settings.
Easy Page Numbering with WPS

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. 1. Open Header and Footer: Open your document in WPS Writer, go to the Insert tab, and click Header and Footer.
  2. 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. 3. Restart Section Numbering: Go to Format Page Numbers from the dropdown, select Start at 1, and apply it to the current section.
  4. 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.
Visual interface for inserting section and document page numbersSeamless compatibility with Microsoft Word (.docx) formats and field codesEasily unlink sections and restart numbering with a single clickFree to use with a lightweight and fast installation
microsoft office alternative - wps office

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.