Fix a Last-Page-Only Footer Field in Word 2016
Question details
The user needs a Word 2016 footer field that displays text only on the document's final page.

- Product
- Microsoft Word 2016
- Device & OS
- not provided
- Scenario
- A conditional footer compares the current page number with the total number of pages.
- Observed behavior
- The footer field may not work as intended when its field braces are incorrect or document-specific settings affect the comparison.
Check whether page numbering starts at 1 and runs continuously throughout the document. If the document uses different first-page or odd-and-even footers, identify which footer appears on the final page.
Recreate the Conditional Footer Field in Word 2016
Use this method when the footer field does not display the expected text on the final page.
The IF field compares PAGE with NUMPAGES and returns text only when the two values match. Every pair of field braces must be inserted as a Word field, not typed as ordinary characters.
Double-click the footer area on the page where you want to edit the field. If Word displays field results instead of codes, press Alt+F9 to show field codes.
Place the cursor in the footer and press Ctrl+F9 to insert the outer pair of field braces. Inside them, type IF followed by a space.
After IF, press Ctrl+F9 and type PAGE inside the new braces. After that field, type =, press Ctrl+F9 again, and type NUMPAGES inside the new braces.
After the NUMPAGES field, type a space followed by "This is the last-page text" and "". The complete field should read: { IF { PAGE } = { NUMPAGES } "This is the last-page text" "" }.
Right-click the outer field and select Update Field. Press Alt+F9 to show results, then use File > Print to inspect the first and last pages in print preview.

Test the Footer Field in a Sample Document
Use a sample to determine whether the field construction or settings in the original document are causing the problem.
Edit Word Documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Its support for common Word formats can make migration straightforward, though complex fields and layouts should be checked after opening.

Frequently Asked Questions
Why do typed braces not work in my Word field?
Word field braces are special delimiters. Press Ctrl+F9 for the outer IF field and again for each nested PAGE and NUMPAGES field; typing braces on the keyboard creates ordinary text.
Do I need a section break to show footer text only on the last page?
A section break is not normally necessary. A conditional IF field can show text when PAGE equals NUMPAGES, provided the page numbering makes that comparison valid.
Why does the field fail when page numbering restarts?
PAGE uses the displayed page number, while NUMPAGES counts pages in the whole document. If numbering restarts or begins at another value, the two may not match on the final page. Check the numbering through Insert > Page Number > Format Page Numbers.
How can I check the field without sharing the original document?
Create a sample with File > New, preferably from the same template, add enough sample text for several pages, and insert the field in its footer. Check the result in File > Print.
Can different footer settings affect the result?
Yes. Different First Page and Different Odd & Even Pages can use separate footers. Double-click the final-page footer and check these options on the Header & Footer Tools Design tab, then ensure the appropriate footer contains the field.




