Document Editing Problems

How to Add Page Totals for Multiple Word Sections in Word

Ayan MasoodAyan Masood Nov 3, 2026 868 views

Question details

Calculate and display the combined total number of pages from selected sections in a document.

How to Add Page Totals for Multiple Word Sections in Word
Product
Microsoft Word / WPS Writer
Device & OS
not provided
Scenario
A user has a multi-section document and needs to display a sum of page counts for only a specific subset of those sections, without counting the entire document.
Observed behavior
The user needs a reliable method using field codes, bookmarks, and cross-references to dynamically sum targeted section page counts.
Before you start

Ensure your document is properly divided into sections using Section Breaks (Next Page or Continuous) and identify exactly which sections you want to include in your total page count calculation.

Solution 1Recommended

Calculate Multiple Section Totals using Field Codes and Bookmarks

This method uses the SECTIONPAGES field to generate the page count of individual sections, bookmarks them, and adds them together using a formula field.

This approach uses Word's native field code functionality. By capturing each section's page count as a bookmark, you can reference these values in a simple mathematical formula.

1
Insert SECTIONPAGES fields

Click in the main body of the first section you want to count. Press Ctrl+F9 to insert field braces { }. Inside the braces, type SECTIONPAGES, and then press F9 to update and display the page count for that section. Repeat this in the body of each section you want to include.

2
Bookmark the field results

Carefully select the calculated number (the field result) in the first section. Go to Insert > Bookmark, type a unique name (like Sec1Pages) without spaces, and click Add. Repeat this process to bookmark the page counts in all target sections.

3
Create the calculation formula

Place your cursor at the exact location in the document where you want the combined total to appear. Press Ctrl+F9 to insert a new set of field braces { } and type an equals sign (=).

4
Insert cross-references into the formula

Inside the formula field braces, type the names of your bookmarks separated by plus signs. The formula should look similar to { = Sec1Pages + Sec2Pages + Sec3Pages }.

5
Update the final field

Press Ctrl+A to select the entire document, then press F9 to update all fields. Your formula will now display the combined total of the bookmarked sections.

Calculate Multiple Section Totals using Field Codes and Bookmarks
Field Placement Warning: Always place the initial SECTIONPAGES fields in the main body text of the document. Placing them in headers, footers, or text boxes can cause bookmark referencing errors.
Advanced Document Tools

Calculate Page Totals Seamlessly with WPS Writer

WPS Writer provides comprehensive support for document fields, bookmarks, and formula cross-references, allowing you to easily calculate custom page totals across multiple sections.

  1. 1. Insert Field Codes: Open your document in WPS Writer. Click in the target section, press Ctrl+F9, type SECTIONPAGES, and press F9 to generate the section's page count.
  2. 2. Bookmark the Counts: Highlight the generated number, go to the Insert tab, select Bookmark, assign it a unique name, and click Add.
  3. 3. Create the Formula: Navigate to your desired total location, press Ctrl+F9, and type a formula summing your bookmarks (e.g., { = Sec1 + Sec2 }).
  4. 4. Update Your Total: Select the entire document (Ctrl+A) and press F9 to instantly update and display your customized section total.
Fully compatible with Microsoft Word document formats (.docx) and complex field codes.Intuitive interface for seamlessly managing bookmarks and formula cross-references.Advanced section formatting and layout management to control your document structure.Free and lightweight office suite available for Windows, Mac, and Linux.
microsoft office alternative - wps office

Frequently Asked Questions

Why is my page total formula displaying the field code text instead of the actual number?

You are currently viewing the field codes instead of their calculated results. Press Alt+F9 on your keyboard to toggle the view from field codes (like { = Sec1Pages + Sec2Pages }) back to the numeric results.

What happens if I type the field braces manually instead of using Ctrl+F9?

Manually typing the curly braces { } using your keyboard will not work. Document editors require you to press Ctrl+F9 to insert special field code braces that the software recognizes as a functional command.

How do I update the total if I add more pages to my document?

Field formulas do not always update automatically in real-time as you type. To refresh the total, press Ctrl+A to select the entire document, and then press F9 to command the software to recalculate all field values.

Can I hide the SECTIONPAGES fields used for the calculation?

Yes. If you don't want the individual section page counts to be visible in the text, you can highlight the SECTIONPAGES field result, right-click, choose Font, and check the 'Hidden' box. The formula will still calculate the hidden values correctly as long as you update the fields.