Skip to content
EditFlip
ENRO
Back to blog
Excel

How to edit the header and footer in Excel

Headers and footers are set in Excel's Page Layout view, and they show on the printed page and in a PDF saved from Excel. They do not show on screen in the normal view.

Eric Rada · Founder · · 7 min read

In short

  • In Excel, open the Insert tab and press Header & Footer. Click the left, centre or right box at the top or bottom of the page and type, or use the buttons for page number, date, file name and picture.
  • Headers and footers print, and they go into a PDF saved from Excel, but you only see them in Page Layout view or print preview. EditFlip's spreadsheet-to-PDF does not use them, so add page numbers, a date and a logo to that PDF afterwards.
  • Convert a spreadsheet to PDF and add page numbers

A printed sheet is easier to use when each page says what it is: a page number, a date, the name of the file, maybe a logo. Excel keeps those details in the header (the strip at the top of the page) and the footer (the strip at the bottom). You will not find them in the cells, which is why people look for them in the wrong place.

This guide shows how to add and change them in Excel, which codes to use, how to put a logo in, and how to be sure they come through in a PDF. It is also open about one limit: when EditFlip turns a spreadsheet into a PDF, it does not read Excel's header and footer settings. You add the same details to the PDF in a different way, and the steps below show how.

On EditFlip, step by step

  1. Step 1

    Convert the spreadsheet

    Go to editflip.com/excel-to-pdf and press Choose a spreadsheet, or drop the file on the page. It becomes a PDF at once, every sheet laid out as a table. The headers and footers you set in Excel are not part of it.

  2. Step 2

    Add page numbers

    On the finished PDF press Page numbers. Tap one of the six places on the page, for example bottom right, and pick a look: 1, 1/3 or Page 1 of 3. Use Skip page 1 if the first page is a cover, and Start at if numbering should begin at another number.

  3. Step 3

    Add a date, a title or a logo

    Press Edit. With Add text, tap the top or bottom of the page and type the date or the report name, then choose size and colour. With Image, put your logo on the page and drag it into the corner. Each of these is placed on one page at a time.

  4. Step 4

    Done, then Download

    Press Done to make the PDF, named with “(edited)” after its name, check it in Preview and press Download. For a header on every page, repeat the text on each page or set it up in Excel and save the PDF from there.

Where Excel keeps the header and footer

The header and footer are part of the page setup, not of the worksheet. They are outside the cells, so you cannot click into them in the normal view. To work on them, open the Insert tab and press Header & Footer. Excel switches to Page Layout view, where the top and bottom margins appear with three boxes in each.

Another way in is the Page Layout tab. Open the small arrow in the corner of the Page Setup group, go to the Header/Footer tab, and press Custom Header or Custom Footer. This is the dialog to use if you want to change several sheets at once, because you can select many sheets first.

When you are done, go back to the normal look with View, then Normal. Your header and footer are still there. You will see them again in Print Preview and on the printed page.

Three boxes: left, centre and right

The header has three boxes: left, centre and right. The footer has the same three. Whatever you put in a box is printed in that place. A common layout is the file name on the left, the date in the centre and the page number on the right, but nothing forces you.

Click in a box and type plain text, such as “Monthly report” or the name of your company. Press Enter to make a second line. The boxes are narrow on screen, but the text prints in its own place on the page and can be longer than the box looks.

If your text contains the & sign, type it twice. Excel uses a single & to start its codes, so “Smith && Sons” prints as “Smith & Sons”.

Page numbers, date, file name and more

When a box is selected, the Header & Footer tab shows buttons in a group called Header & Footer Elements: Page Number, Number of Pages, Current Date, Current Time, File Path, File Name, Sheet Name and Picture. Each button puts a code into the box, like &[Page] or &[Date]. At print time the code is replaced by the real value.

For “Page 3 of 12”, type the word Page, a space, press Page Number, type a space and the word of, a space, and press Number of Pages. The codes can be mixed with your own text in the same box.

The date code uses the day you print, not the day you wrote the report. If you want a fixed date, type it by hand. The File Name and Sheet Name codes are handy on a sheet that will be passed around, because the printout says where it came from.

Adding a logo to the header

Click in the box where the logo should go, for example the left box of the header. Press Picture in the Header & Footer Elements group, choose the picture file and press Insert. The box now shows &[Picture]. Click outside the box and the logo appears.

A large picture will push the sheet down, since the header grows to hold it. Use a small file, or press Format Picture in the same group and set a height of about 1 cm, so the header stays slim.

A logo with a transparent background looks best on a white page. If you only have a big photo of the logo, make it smaller first so the workbook does not grow heavy for no reason.

Making sure they show in the PDF

If you save the PDF from Excel, using File, then Save As or Export and choosing PDF, the header and footer are printed into it, because the PDF follows the same page setup as the printer. Check Print Preview first. What you see there is what the PDF will hold.

Two small options sit under Header & Footer Tools. Different First Page lets the cover page have no header, or a different one. Different Odd & Even Pages lets left and right pages differ, which suits a printed booklet. Scale with Document keeps the header in proportion if you change the print size.

EditFlip's spreadsheet-to-PDF takes a different path. It lays out the values of the cells as a plain table and does not read print settings, so a header and footer from Excel do not come across. That is why the steps above add page numbers and other details to the finished PDF.

What you can and cannot add to a PDF afterwards

Page numbers are the easiest. The Page numbers tool puts them in one of six places, in three looks, and can skip the first page or start from any number.

A date, a title or a name is added with Add text in the editor. It goes on the page you tap, so for a ten-page PDF you add it ten times, or you decide that the first page is enough. A logo goes on with Image, and a draft stamp such as CONFIDENTIAL with the Watermark tool, which can repeat across all pages.

What the site does not do is write a header that is tied to the margin and repeats by itself on every page. For that, use Excel's own setup and save the PDF from Excel.

Common problems

The header is not visible. It does not show in Normal view. Switch to Page Layout view or open Print Preview.

The footer is cut off or overlaps the data. The margin is too small for it. In Page Setup, on the Margins tab, increase the Header or Footer distance, or the top and bottom margins.

Only one sheet has the header. Each sheet has its own page setup. Select all the sheets you want, by clicking the first tab and then the last with Shift held, before opening Page Setup, and the change is applied to the whole group. Click a single tab afterwards to ungroup, or you may edit all of them by accident.

Choose the spreadsheet, get the PDF at once, then add page numbers, text, a logo or a watermark and download it. Free, no account, and the file stays on your device.

Convert a spreadsheet to PDF on EditFlip →

Questions

How do I add a header and footer in Excel?

Open the Insert tab, press Header & Footer, then click the left, centre or right box at the top or bottom of the page and type or use the buttons.

How do I add page numbers to an Excel sheet?

In Header & Footer, click a box in the footer and press Page Number. For Page 1 of 3, also press Number of Pages after the word of.

Why can't I see my header and footer?

They do not show in Normal view. Use Page Layout view or Print Preview.

How do I put a logo in the header?

Click a header box, press Picture in Header & Footer Elements and choose the file. Keep it small, about 1 cm high.

Will the header and footer appear when I save as PDF?

Yes, when you save the PDF from Excel itself. A PDF made by EditFlip from a spreadsheet does not use them.

How do I add page numbers to a PDF made from a spreadsheet?

Use the Page numbers tool on the PDF. Pick one of six places and a look, and skip the first page if it is a cover.

How do I add the same header to several sheets?

Select the sheets together, click one tab and then another with Shift held, and open Page Setup. Ungroup afterwards.

Do it right in your browser.
Free, no account. Your files stay on your device.
Convert Excel to PDF