Headers and footers appear at the top and bottom of every printed page, separate from your actual data

A header is text or information that prints at the top of every page. A footer is the same thing at the bottom. Excel keeps headers and footers outside your spreadsheet data — they won't show up when you look at the cells, only when you print or use Print Preview. You can add different headers and footers to the first page, odd pages, and even pages if you need them.

The process is the same whether you use Windows or Mac, and takes about two minutes. You access headers and footers through the Page Layout menu, not through the Insert menu where you might expect them.

Key Takeaways

  • Headers and footers are added through the Page Layout tab, then the Header/Footer button, not through Insert.
  • You can type custom text, or choose from built-in options like page numbers, date, time, and file name.
  • Headers and footers appear only on printed pages and in Print Preview — they do not show in normal spreadsheet view.
  • You can set different headers and footers for the first page and for odd and even pages if your spreadsheet prints on multiple pages.

Adding a header or footer in Windows Excel

Open your spreadsheet and click the Page Layout tab at the top of the ribbon. Look for the Page Setup group — you'll see a button labeled Header & Footer. Click it.

A dialog box opens with three tabs: Header, Footer, and Sheet. You're on the Header tab by default. In the center section, you'll see a text box. Click inside it and type whatever you want to appear at the top of every page — your company name, the report title, the date, anything. When you're done, click the Footer tab and repeat the process for the bottom of the page. Click OK when you're finished.

To see what it looks like, go to File > Print Preview. Scroll through the preview to see your header and footer on each page. If you need to change them, go back to Page Layout > Header & Footer and edit the text.

Adding a header or footer in Mac Excel

Open your spreadsheet and click the Page Layout tab. In the ribbon, find Header & Footer and click it. A dialog box opens with the Header tab active.

Click in the text box under the header section and type your header text. Then click the Footer tab and type your footer text in the same way. Click OK to save your changes. To preview, go to File > Print Preview and scroll through to see how your pages will look.

Using built-in options instead of typing text

Instead of typing text manually, Excel offers buttons for common header and footer elements. When you have the Header & Footer dialog open, you'll see buttons above the text box labeled Page Number, Page Count, Date, Time, File Name, and Sheet Name. Click any of these buttons and Excel inserts a code into the text box.

For example, if you click Page Number, the code &[Page] appears in the text box. When you print, Excel replaces this code with the actual page number. You can combine these codes with your own text — type "Page " and then click Page Number to get "Page 1", "Page 2", and so on across your printed pages.

The most common combination is Page Number and Page Count together, which produces "Page 1 of 5" style footers. Type "Page " first, click Page Number, type " of ", then click Page Count.

Setting different headers and footers for different pages

If your spreadsheet prints on multiple pages, you can make the first page look different from the rest. In the Header & Footer dialog, look for a checkbox labeled Different first page and check it. Now you have separate text boxes for the first page header and the regular pages header.

You can also check Different odd and even pages to set one header for odd-numbered pages and a different one for even-numbered pages. This is useful for reports that will be printed double-sided. Both options work together — if you check both, you'll have separate headers for the first page, odd pages, and even pages.

Removing a header or footer

Go back to Page Layout > Header & Footer. In the Header tab, select all the text in the text box and delete it. Do the same for the Footer tab. Click OK. The header and footer are now removed from your spreadsheet.

If you only want to remove the header but keep the footer, just clear the Header tab and leave the Footer tab as is. The same applies in reverse.

Headers and footers with margins and page breaks

Headers and footers sit in the margins of your page, outside the area where your spreadsheet data prints. If your data is very close to the edges, the header or footer might overlap it visually in Print Preview, but they won't actually print on top of each other — Excel manages the spacing automatically.

If you're having trouble seeing your header or footer in Print Preview, check your page margins. Go to Page Layout > Margins and make sure you have at least half an inch of space at the top and bottom. Very small margins can make headers and footers hard to see, though they will still print.

Frequently Asked Questions

Why can't I see my header or footer in the spreadsheet?

Headers and footers only appear when you print or use Print Preview. In normal spreadsheet view, they're hidden because they sit in the page margins. This is by design — it keeps your spreadsheet view clean and focused on your data. To see them, go to File > Print Preview.

Can I add an image or logo to my header?

The standard header and footer dialog doesn't support images directly. However, you can insert a picture into your spreadsheet and position it at the top of the page, then adjust your print area to include it. Alternatively, some versions of Excel allow you to insert a picture through the Header & Footer dialog's Picture button if available in your version.

What if I want different headers on different sheets in the same workbook?

Each sheet in your workbook has its own header and footer settings. Click on the sheet tab at the bottom, then go to Page Layout > Header & Footer and set the header and footer for that sheet. Repeat for each sheet. When you print the entire workbook, each sheet will use its own header and footer.

Do headers and footers print if I print to PDF?

Yes. When you print to PDF using File > Print, headers and footers are included in the PDF file just as they would be on a physical printout. This is a good way to preview exactly how your headers and footers will look before printing to paper.

Can I use different headers for landscape and portrait pages?

Excel doesn't have a built-in option to change headers based on page orientation within a single sheet. If you need different headers for landscape and portrait pages, you would need to split your data into separate sheets, set each sheet to its own orientation, and give each sheet its own header.