How to add header and footer in Excel for all pages

If you have a large spreadsheet in Excel, you may want to add page numbers. Doing so is easy, and you can even add them in the format of “Page X of Y”. Read on to find out how.

To begin, click the “Insert” tab.

How to add header and footer in Excel for all pages

In the “Text” section, click “Header & Footer”.

How to add header and footer in Excel for all pages

The “Design” tab under “Header & Footer Tools” displays. In the “Header & Footer Elements” section, click the “Page Number” button. A header is added to the spreadsheet and the cursor is put inside the header.

How to add header and footer in Excel for all pages

The code for the page number is inserted. Make sure the cursor is after the “&[Page]” text and add the word “of”, as shown below.

How to add header and footer in Excel for all pages

To add a code that inserts the total number of pages in the document, click “Number of Pages” in the “Header & Footer Elements” section of the “Design” tab.

How to add header and footer in Excel for all pages

You can also insert “Page X of Y” into the header by clicking the “Header” button in the “Header & Footer” section of the “Design” tab. Select “Page 1 of ?” from the drop-down menu.

How to add header and footer in Excel for all pages

The “Page X of Y” text is inserted into the header and the main spreadsheet automatically becomes active again.

How to add header and footer in Excel for all pages

Here we showed how to insert “Page X of Y” into the header, but the procedure is the same for the footer.

Normally, you can insert the header or footer with document path, name quickly and easily in a Word file. But, have you ever tried to insert the chapter title to header or footer, so that, the content of the header or footer is depended on what chapter the page is in. This article, I will talk about how to solve this job in Word document.

Add chapter title to header or footer in Word document


Add chapter title to header or footer in Word document

To insert each chapter title to header or footer, you can use the Quick Parts feature to achieve it, please do as this:

1. Firstly, you should apply a paragraph style to the chapter title that you want to insert as header or footer, in this example, my chapter title is styled as Heading 1, see screenshot:

How to add header and footer in Excel for all pages

2. Then click Home > Header / Footer, and choose one header or footer style, see screenshot:

How to add header and footer in Excel for all pages

3. And then, click Quick Parts > Field under the Design tab, see screenshot:

How to add header and footer in Excel for all pages

4. In the popped out Field dialog box, do the following operations:

  • (1.) Select Links and References from the Categories drop down list;
  • (2.) In the Field names list box, please choose StyleRef option;
  • (3.) And then, find and select Heading 1 which is your chapter style you created from the Style name list box.

How to add header and footer in Excel for all pages

5. After finishing the settings, please click OK button, and now, the chapter title has been inserted into the header or footer, see screenshot:

How to add header and footer in Excel for all pages

Notes:

1. If there's more than one Heading 1 on one page, only the first appeared one will be inserted into the header or footer.

2. The header or footer will be changed automatically when the chapter title is changing.


Recommended Word Productivity Tools

How to add header and footer in Excel for all pages

How to add header and footer in Excel for all pages

 

Kutools For Word - More Than 100 Advanced Features For Word, Save Your 50% Time

  • Complicated and repeated operations can be done one-time processing in seconds.
  • Insert multiple images across folders into Word document at once.
  • Merge and combine multiple Word files across folders into one with your desired order.
  • Split the current document into separate documents according to heading, section break or other criteria.
  • Convert files between Doc and Docx, Docx and PDF, collection of tools for common conversions and selection, and so on...

Read More Download Now Purchase

Oldest First

Sort comments by

Oldest First

Newest First

Comments (8)

No ratings yet. Be the first to rate!

How to add header and footer in Excel for all pages

jesus

about 3 years ago

#28293

This comment was minimized by the moderator on the site

¿Es posible configurar un encabezado en la ultima página de un documento? es decir, conforme el documento vaya creciendo, el encabezado se vaya recorriendo a la ultima página de forma automática.

Reply

0

0

How to add header and footer in Excel for all pages

Mi corazon pintado blanquiazul

about 3 years ago

#28294

This comment was minimized by the moderator on the site

¿Es posible agregar un encabezado en la ultima pagina de un documento de word? es decir, si el documento aumenta en paginas, que el encabezado se vaya recorriendo a la ultima página.

Reply

Report

0

0

How to add header and footer in Excel for all pages

Emily

about 2 years ago

#33231

This comment was minimized by the moderator on the site

Thank you SO MUCH for this! I had been looking around for clear instructions on exactly how to put headings into the footers of my pages in a massive word document, without having to create section breaks, and this was perfect! Many thanks.

Reply

0

0

How to add header and footer in Excel for all pages

elias

about 2 years ago

#34192

This comment was minimized by the moderator on the site

is there a possibility to insert sub chapters?I tried but if the structure is deep (ie: h1->h2->h3->h4......) it happens that it is not coherent with the content of the document

Reply

0

0

How to add header and footer in Excel for all pages

Marta

about 1 year ago

#35907

This comment was minimized by the moderator on the site

¿Es posible insertar el título 1 y el título 2 (1. INTRODUCCIóN - 1.1. ANÁLISIS) con su numeración automática en cada pié de página? Solo consigo insertar el nombre del capítulo, pero no el número.

Reply

0

0

How to add header and footer in Excel for all pages

Dave

about 1 year ago

#35909

This comment was minimized by the moderator on the site

I find this doesn’t always work correctly. I’ve used this method in a product spec and everything worked as expected. I went in to edit the document later, and some of the references to the “Heading 1” style on the page only showed the first letter of the text. If I double clicked on the reference in the footer, it would show the full test, but as soon as I clicked away from the reference, it would go back to showing only the first letter. Still haven’t figured it out.

Reply

0

0

How to add header and footer in Excel for all pages

ME

about 1 year ago

#36011

This comment was minimized by the moderator on the site

This method didn't work for me but I found an easier solution. Go to the Header / Footer tab by double clicking on the header space. Then go to Insert -> Quick Parts -> Field. Look for StyleRef in the Field names list and click on it. Then, in the Style name tab find the Header style that you used (Heading 1 for example) and click ok. Boom you're done :)