Formatting Issues

Display a Section’s Total Page Count in Microsoft Word

John WilsonJohn Wilson Nov 13, 2026 868 views

Question details

The user wants to display the total number of pages in a specific Microsoft Word section on the first page of the document.

Display a Section’s Total Page Count in Microsoft Word
Product
Microsoft Word
Device & OS
not provided
Scenario
A document contains multiple sections, and its first page needs to show the page count for one selected section rather than the entire document.
Observed behavior
The desired result is a displayed value that represents only the target section’s total pages.
Before you start

Use Home > Show/Hide to check that the target content is separated by section breaks, not just page breaks. Determine whether the display location is inside the target section and whether that section’s page numbering starts at 1.

Solution 1Recommended

Use SECTIONPAGES when the display is inside the target section

Use this field to show the actual page count of the section containing the field, regardless of its starting page number.

SECTIONPAGES counts pages in the section where it is inserted. It does not let you select a different section, so use the bookmark method if the document’s first page is outside the target section.

1
Choose the display location

Click where the count should appear on the first page of the target section. To place it in a header or footer, double-click that area; if it should appear only on the section’s first page, enable Different First Page on the Header & Footer tab.

2
Insert the section page-count field

In desktop Word, open Insert > Quick Parts > Field, select SectionPages from the field names, and click OK. On versions with a different menu layout, look for Insert > Field.

3
Update the displayed count

After changing the document’s layout, right-click the displayed field and choose Update Field. Confirm that the value matches the pages in the target section.

Use SECTIONPAGES when the display is inside the target section
Section count versus document count: SECTIONPAGES counts the current section. NUMPAGES counts the entire document, and PAGE displays the current page number.
Section page references in WPS Writer

Display a Section’s Final Page Number with WPS Writer

Use a bookmark and page-number cross-reference in WPS Writer to show a section’s final page number on the first page. When the section’s numbering starts at 1, that value also represents its total page count.

  1. 1. Open the document and check numbering: Open your Word document in WPS Writer. In the target section, use Insert > Page Number and the available page-number settings to verify that numbering starts at 1 if the final number must represent the section’s page count.
  2. 2. Create an end-of-section bookmark: Select text on the target section’s last page, choose Insert > Bookmark, and add a bookmark named TargetSectionEnd.
  3. 3. Insert the page-number cross-reference: Click on the document’s first page, open Insert > Cross-reference, choose Bookmark as the reference type, select TargetSectionEnd, and insert its Page number.
  4. 4. Refresh after changes: Verify that the bookmark remains on the section’s last page, then right-click the inserted reference and choose Update Field. Menu labels and availability may vary by WPS Writer version.
Place a section-ending page reference on the document’s first page.Open and edit Microsoft Word .doc and .docx files.Use familiar bookmark and cross-reference tools.Refresh the reference after editing the document.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my field show the total pages in the whole document?

You may have inserted NUMPAGES rather than SECTIONPAGES. In Word, right-click the field and choose Edit Field, then select SectionPages to count only the section containing the field.

Can SECTIONPAGES count a different section from the first page?

No. SECTIONPAGES counts the section where it is located. To reference a later section from the document’s first page, bookmark that section’s last page and use Insert > Cross-reference > Bookmark > Page number. That number equals the page count only if the target section starts numbering at 1.

Why does my bookmark reference show 12 when the section has only 4 pages?

The cross-reference displays the bookmarked page’s number, not a count of section pages. If the section runs from page 9 through page 12, the result is 12. Use SECTIONPAGES inside that section, or restart its numbering at 1 through Insert > Page Number > Format Page Numbers if appropriate.

Will the bookmark reference update automatically when I add pages?

Do not rely on automatic updates. Check the bookmark’s location through Insert > Bookmark > Go To, relocate it if it is no longer on the last page, and right-click the reference > Update Field.

How do I show the section count only in the first-page header?

Double-click the target section’s header and enable Different First Page on the Header & Footer tab. Insert SECTIONPAGES in the first-page header. If the header is linked to an earlier section, turn off Link to Previous before changing it.