00_lead_image_page_x_of_y

We’ve shown you how to add “Page X of Y” to a header of footer of large spreadsheets in Excel. The same thing can be done in Word for longer documents. It’s a bit different than in Excel, so read on to find out how.

RELATED: How to Insert Page X of Y into a Header or Footer in Excel

There are two ways to add “Page X of Y” to a header or footer in Word. The easiest way is to use the Page Number gallery. However, using the Page Number gallery replaces any content you already have in your header or footer. If you currently have content in your header or footer and you want to add “Page X of Y” to that content, you can use field codes. We’ll show you both methods.

NOTE: When we say to type something in this article and there are quotes around the text, DO NOT type the quotes, unless we specify otherwise.

Using the Page Number Gallery

To insert “Page X of Y” using the Page Number gallery, click the “Insert” tab.

01_clicking_insert_tab

In the “Header & Footer” section, click “Page Number” and move your mouse over either “Top of Page” or “Bottom of Page” in the drop-down menu. A list of readymade page number styles displays. Scroll down to the “Page X of Y” section and select one of the “Bold Numbers” styles, depending on whether you want your page numbers left-, center-, or right-aligned.

02_inserting_bold_numbers_2

The page number and total number of pages are added to the header or footer.

03_page_x_of_y_added_using_gallery

Note that the page numbers are bold. If you don’t want the page numbers to be bold, select the text and click “Bold” in the “Font” section of the “Home” tab.

03a_turning_off_bold

Using Fields

If you already have content in your header or footer and want to add “Page X of Y” without replacing that content, you can add page numbers using fields. To do so, open the header or footer and place the cursor where you want to insert “Page X of Y”. Type “Page” and a space.

04_typing_page

Click the “Insert” tab.

05_clicking_insert_tab_again

In the “Text” section, click the “Quick Parts” button and select “Field” from the drop-down menu.

06_selecting_field

The “Field” dialog box displays. In the “Field names” list, scroll down and select “Page”. You can change the format of the page number by selecting an option in the “Format” list, but we’ll accept the default format. Click “OK”.

07_selecting_page

The page number of the current page is inserted at the cursor. After the page number, type a space, then “of”, then another space.

08_entering_of

Click the “Quick Parts” button in the “Text” section of the “Insert” tab again and select “Field” from the drop-down menu. This time, select “NumPages” in the “Field names” list. Accept the default values for “Format” and “Numeric format” and click “OK”.

09_selecting_numpages

The page number and total number of pages are inserted at the cursor in your header or footer.

10_page_x_of_y_inserted_using_fields

Get more information on how to add page numbers, omit the page number on the first page of a document, or start a new section on an odd page number in Word.