What headers and footers do in Excel

A header is text or information that appears at the top of every printed page of your spreadsheet. A footer appears at the bottom. Headers and footers do not show up on your screen when you are working in the spreadsheet — they only appear when you print the document or switch to Page Layout view. You might use a header to add your company name, the date, or the spreadsheet title. A footer often holds page numbers or a confidentiality notice.

Excel stores headers and footers separately from your actual data, so editing them does not change any numbers or formulas in your spreadsheet. You can have different headers and footers on the first page than on the rest of the pages, and you can also set different headers for odd and even pages if you need to.

Key Takeaways

  • Headers and footers appear only when you print or use Page Layout view, not during normal spreadsheet work.
  • The fastest way to add or edit a header is through the Insert menu, then Header & Footer, then Header.
  • Excel provides preset headers like filename, sheet name, and current date that update automatically.
  • You can set different headers for the first page and for odd and even pages using the Header & Footer Tools Design tab.
  • After editing a header, switch back to Normal view to return to your spreadsheet work.

Adding or editing a header in Excel

Open your spreadsheet in Excel. Click the Insert tab at the top of the screen. In the ribbon, find the Header & Footer group and click Header. A dropdown menu appears with preset options like "Author, Date", "Filename", and "Sheet Name". You can click any of these to insert it immediately, or click Edit Header at the bottom of the menu to write your own text.

If you click Edit Header, Excel switches to Page Layout view and opens a header editing box at the top of the page. The box is divided into three sections: left, center, and right. Click in whichever section you want to use and type your text. You can type plain text like "Confidential" or "Q4 Report", or you can click the buttons in the Header & Footer Tools Design tab to insert automatic fields like the current date, page number, or filename. When you are finished, click anywhere in the spreadsheet to close the header box and see how it looks.

Using preset fields in headers

Excel includes buttons that insert information that updates automatically. These are useful when you print the same spreadsheet multiple times or share it with others. In the Header & Footer Tools Design tab, you will see buttons for Current Date, Current Time, File Path, Filename, Sheet Name, and Page Number. Click in the header section where you want the field to appear, then click the button. Excel inserts a code like &[Date] or &[Page] that displays the actual value when you print.

For example, if you click Filename, the header will show the actual name of your Excel file when printed. If you click Current Date, it will show today's date. These fields update automatically, so you do not have to edit the header each time you print or share the file.

Setting different headers for different pages

You can tell Excel to use a different header on the first page than on the rest of the pages. This is useful if your first page is a title page or cover sheet. In the Header & Footer Tools Design tab, check the box labeled Different First Page. Excel then creates two separate header sections: one for the first page and one for all other pages. Edit each one separately by clicking in the header area and typing or inserting fields.

You can also set different headers for odd and even pages. Check the box labeled Different Odd & Even Pages. This is common in printed reports where the left page and right page have different information. Once you enable this option, edit the odd page header and even page header separately.

Editing a footer in Excel

Footers work exactly the same way as headers. Click the Insert tab, then Header & Footer, then Footer. Choose a preset option or click Edit Footer to write your own. The footer editing box appears at the bottom of the page in Page Layout view. You can type text, insert page numbers, add the filename, or include the sheet name using the same buttons in the Header & Footer Tools Design tab.

A common footer is Page Number in the center section and Current Date in the right section. This way, every printed page shows when it was printed and which page number it is. You can combine text and automatic fields — for example, type "Page " in the center section, then click Page Number to insert the number right after it.

Removing or clearing a header or footer

To remove a header completely, click the Insert tab, then Header & Footer, then Header, then select (none) at the top of the dropdown menu. This deletes the header from all pages. If you want to clear only part of the header — for example, remove the text from the left section but keep the page number in the center — switch to Page Layout view, click in the header, select the text you want to delete, and press Delete.

The same process works for footers. Click Insert, Header & Footer, Footer, then (none) to remove the footer entirely. Or switch to Page Layout view and manually delete only the parts you want to remove.

Switching between views to see your headers

When you edit a header or footer, Excel automatically switches to Page Layout view. In this view, you can see how your header and footer will look when printed, and you can edit them directly on the page. However, Page Layout view is slower than Normal view and shows page breaks, which can be distracting when you are working with data.

To return to Normal view, click the View tab at the top and click Normal. Your header and footer are still there — they just will not display on screen. You can switch back to Page Layout view anytime to check how they look. If you want to see a preview of your headers before printing, click File, then Print, and look at the preview pane on the right side of the screen.

Frequently Asked Questions

Can I use different headers on different sheets in the same workbook?

Yes. Each sheet in a workbook has its own header and footer settings. Click on the sheet tab at the bottom, then edit the header for that sheet using Insert > Header & Footer. The header you set for Sheet1 will not affect Sheet2. If you want the same header on multiple sheets, you have to edit each sheet separately.

What if I want to add an image or logo to the header?

Excel does not allow you to insert images directly into the header box. However, you can insert an image into the spreadsheet itself and position it at the top of the page so it prints above your data. Alternatively, some users add a logo by inserting it into the first row of the spreadsheet and then hiding that row from view on screen.

Why does my header not appear when I print?

Check your print settings. Click File > Print, then look for an option like "Print Titles" or "Print Options". Some printers and print drivers have settings that suppress headers and footers. Also make sure your page margins are large enough — if the top margin is very small, the header may print outside the visible area.

Can I edit a header without switching to Page Layout view?

Not directly. You must switch to Page Layout view to edit headers and footers. However, you can click View > Page Layout, make your changes, and then click View > Normal to return to your spreadsheet. The header remains in place even though you cannot see it in Normal view.