Word tasks
Insert a page count that excludes the cover page in Word
Your report has a cover page, and the footer on the last page insists the document is one page longer than the content anyone counts: 'Page 9 of 10' when there are nine pages of report and a cover. Word has no checkbox for excluding the cover from the total, but its fields can do arithmetic. This guide builds the usual Page X of Y footer, then replaces the total with a calculated field that subtracts 1 — so the count matches the document your reader is holding.
Why the total counts the cover in the first place
The Y in Page X of Y comes from a field named NUMPAGES, which reports the total number of pages in the document — all of them, cover included. Hiding the number on the first page, with the Different First Page option, changes only what the cover displays; it does not change what NUMPAGES counts, because the cover is still a page of the document. That is why the familiar combination — cover with no visible number, footer saying 'of 10' for nine pages of content — is not a bug you can toggle away. The total has to be adjusted, and the adjustment is a small calculation wrapped around the field: a formula field that takes NUMPAGES and subtracts 1.
Every field in this guide lives inside special braces that Word inserts with Ctrl+F9. Braces typed from the keyboard are ordinary characters and Word ignores them as field markers — the single most common reason this technique 'does nothing'. If you remember one thing from this guide, remember Ctrl+F9.
Start with an ordinary Page X of Y
- Insert the standard page-number format first. Choose Insert > Page Number, pick the location (bottom of page is typical), and scroll to a Page X of Y format and select it. Microsoft's help on how to include the total number of pages in the page number covers this gallery route. Building on the standard format means the current-page part — the
PAGEfield — is already correct, and only the total needs surgery. - Hide the number on the cover, if it shows there. While editing the header or footer, turn on Different First Page in the Header & Footer tools, so the cover carries no number. Remember this affects display only — the count fix comes next.
- Confirm the wrong total before fixing it. Look at the last page: it should currently claim one more than the content pages. That confirms the total is a plain
NUMPAGESand that subtracting exactly 1 is the right correction. If it is off by more than one, your front matter is longer than a cover — read the section alternative below before building the field.
Replace the total with a calculated field
The finished field code reads: { = { NUMPAGES } - 1 }. An outer formula field does the subtraction; the inner NUMPAGES field supplies the document's page count. Build it in place, in the footer, like this:
- Open the footer and reveal the field codes. Double-click the footer area on any content page to edit it, click on the total number to select that spot, and press Alt+F9. Word switches from showing field results to showing field codes, and the total now appears as
{ NUMPAGES }. - Select the whole
NUMPAGESfield. Click just before its opening brace and Shift-click just after its closing brace, so the entire field — braces included — is selected. - Wrap it in a new field. Press Ctrl+F9. Word places a new pair of field braces around the selected field, giving
{ { NUMPAGES } }. The inner field is untouched; it has simply become the contents of a bigger field. - Turn the outer field into a formula. Click between the two opening braces and type an equals sign and a space, so the code begins
{ = { NUMPAGES }. Then click between the two closing braces and type a space, a minus sign and 1, giving the complete code:{ = { NUMPAGES } - 1 }. - Update the field and check the result. Select the whole formula field and press F9 (on some laptops, Fn+F9). Word calculates it. Press Alt+F9 again to return to showing results. The footer should now show the reduced total — the last content page should read, for example, Page 9 of 9 in a ten-page file with a cover.
- Check a middle page too. The footer is shared, so one correct footer fixes them all, but glance at another page to confirm the total is reduced everywhere and the current-page numbers are unchanged.
Decide what the page numbers themselves should say
Excluding the cover from the total leaves a second question: should the first content page call itself Page 1, or Page 2? Both are defensible. Page 2 is literally true — it is the document's second page — and matches a reader flipping physical sheets. Page 1 matches how people cite report content ('see page 1 of the report') and pairs naturally with a total that excludes the cover: Page 1 of 9 through Page 9 of 9.
- To keep literal numbering, do nothing. The
PAGEfield already counts the cover, so content pages run 2 to 10 while the total says 9. Some readers find 'Page 2 of 9' odd, so only keep this if your audience expects physical numbering. - To start content at Page 1, restart numbering after the cover. Put the cursor at the start of the first content page and insert a section break (Layout > Breaks > Next Page) between the cover and the content if the document does not already have one. Then choose Insert > Page Number > Format Page Numbers and set Start at to 1 for the content section. Microsoft's help on how to start page numbering later in your document covers the section-break and restart route. Make sure the content section's footer is unlinked from the cover section's, so each keeps its own numbering and footer content.
- Re-check the total after restarting. The calculated field subtracts the cover regardless of how the visible numbers run, so Page 1 of 9 on the first content page and Page 9 of 9 on the last is the consistent end state most reports want.
The alternative when the front matter is longer: a section total
If the uncounted front matter is more than a single cover page — a cover plus a contents page, say — subtracting 1 is the wrong number, and subtracting a hand-counted larger number breaks the day the contents grows a page. When the content already lives in its own section, Word offers a cleaner field: SECTIONPAGES, which reports the number of pages in the current section only. Replace the NUMPAGES field with a SECTIONPAGES field — insert it with Ctrl+F9 and type SECTIONPAGES between the braces, then press F9 — and the total counts just the content section, however long the front matter becomes. The trade-off is that the trick only works while the layout stays sectioned that way: add a second content section later and each section will report its own total, which may or may not be what you want. For the common one-cover case, the subtraction field remains the simpler and more predictable choice.
End state
- The last content page's footer total equals the number of content pages — Page 9 of 9 in a file with nine content pages and a cover.
- The cover page shows no page number.
- The total is a calculated field,
{ = { NUMPAGES } - 1 }, so it stays right when pages are added or removed. - The visible page numbers follow one deliberate choice — literal, or restarted at 1 — applied consistently.
When it goes wrong
- The footer shows the code instead of a number. You are viewing field codes. Press Alt+F9 to switch back to results, and press F9 with the field selected if the result still has not calculated.
- Nothing happened when you typed the formula. The braces were probably typed from the keyboard instead of inserted with Ctrl+F9, so Word treats them as text. Delete them, and rebuild the field using Ctrl+F9 for every pair of braces, inner and outer.
- An error message appears in place of the total. The formula field is malformed — usually a missing equals sign, or the minus and 1 placed outside the outer braces. Reveal the code with Alt+F9 and compare it character by character with
{ = { NUMPAGES } - 1 }. - The total is right but the current-page numbers restart or vanish. A section break and a numbering restart affect the
PAGEfield, not the total. Check Format Page Numbers for the affected section, and check that its footer is linked or unlinked from the previous section as you intended. - The count drifts after edits. Fields update when Word repaginates, but a displayed total can lag behind a big edit. Select the footer field and press F9, or switch to Print Preview, which forces fields to refresh, before concluding the formula is wrong.
- Word for the web will not let you build the field. Field construction of this kind is a desktop Word task; the web version can display fields a desktop version built, but its own page-number options are the simpler gallery choices, such as the Include Page Count option Microsoft describes for adding Page X of Y in Word for the web. Build the calculated field in desktop Word and let the web version display the result.
Related document tasks
-
Insert page breaks and section breaks in Word
Add page, column and section breaks in Word, control headers, numbering and orientation per section, see breaks with Show/Hide, and delete one safely.
-
Show the cover pages of a Word document with Roman numeral page numbers
Show the cover pages of a Word document with Roman numeral page numbers: split the front matter into its own section, unlink its footer, set the number format to i, ii, iii, and restart the main body at page 1.
-
Create a cover page in Word
A report that opens straight into body text looks unfinished, even when the writing is good. A cover page fixes that in two minutes: a title, who wrote it, and when, on a page that looks like it was designed rather than typed.
-
Insert the current time as an updating field in Word
Insert the current time as an updating field in Word: use Insert > Date & Time with Update automatically or a TIME field from Quick Parts, update it with F9, change its format through the \@ switch, and freeze it with Ctrl+Shift+F9 when the time must never move again.
Sources
- Microsoft Support, Include the total number of pages in the page number in Word — the Insert > Page Number > Page X of Y gallery route this guide starts from.
- Microsoft Support, Start page numbering later in your document — section breaks, unlinking footers, and restarting page numbering for the content section.
- Microsoft Support, Add page number X of Y to your Word for the web document — the Include Page Count option in Word for the web, and how its simpler options differ from desktop Word.