This browser does not support basic Web standards, preventing the display of our site's intended design. May we suggest that you upgrade your browser?
Excel allows you to customize your header (information printed at the top) and footer (information printed at the bottom) information to suit the needs for a given worksheet. This document describes some options for modifying your headers and footers. These options are located in the Page Setup dialog box; for more information on these options, refer to the Header/Footer Tab Options in About the Page Setup Dialog Box.
This option allows you to set the number that you want to be printed on the first page. The default will start page numbering with one; however, if you want to start numbering with a number other than one, follow these instructions.
From the File menu, select Page Setup...
The Page Setup dialog box appears.
Select the Page tab
In the First page number text box, type the number you wish to begin with
Click OK
Preset headers and footers comprise samples from Microsoft and headers or footers you have used from other files in the past.
From the File menu, select Page Setup...
The Page Setup dialog box appears.
Select the Header/Footer tab
From the Header or Footer pull-down list, select a preset header or footer
Click OK
There are several buttons available in the Header and Footer dialog boxes. Each one is displayed and explained here. To access these dialog boxes, click CUSTOM HEADER... or CUSTOM FOOTER..., respectively.
| Button | Code | Action |
|---|---|---|
| |
Displays the Font dialog box so you can adjust the font, size, and style of the text for each of the three sections of the header or footer | |
| &[Page] | Inserts the page number | |
| &[Pages] | Inserts the total number of pages | |
| &[Date] | Inserts the date | |
| &[Time] | Inserts the time | |
| &[File] | Inserts the filename of the workbook | |
| &[Tab] | Inserts the name of the current worksheet | |
| &[Path]&[File] | Inserts the path and filename | |
| Windows: Macintosh: |
&[Picture] | Displays the Insert Picture dialog box so you can insert a picture |
| Windows: Macintosh: |
Displays the Format Picture dialog box so you can adjust picture properties |
NOTES: The Code column in the table above shows the command that Excel will insert when the option is selected. The code will be translated to the corresponding information when the sheet is printed.
Sometimes, you may want to create your own headers or footers. You can adjust the font face and the size, add your own text, and pick up fields of information from Excel. The Header dialog box for customizing appears here.

From the File menu, select Page Setup...
The Page Setup dialog box appears.
Select the Header/Footer tab
Click CUSTOM HEADER... or CUSTOM FOOTER...
The Header or Footer dialog box appears, respectively.
Using the buttons described in Working with Custom Header and Footer Buttons, fill out the three sections in the Header or Footer dialog box
OPTIONAL: To change the font, refer to Changing the Header/Footer Font.
When done, click OK
Click OK
NOTES:
If you created a multiple line header, it may overlap with the information on the spreadsheet.
To ensure that your multiple line header is displaying properly, refer to Adjusting Margins with the Mouse or Adjusting Margins with the Page Setup Dialog Box.
It may be wise to check your custom header or footer to ensure that they will print properly. If there are problems with the display of your header or footer, you can fix them by adjusting the margins.
From the File menu, select Print Preview
The Print Preview dialog box appears.
Review the custom header or footer
If adjustments are necessary,
Windows:
Click MARGINS
Macintosh: Click MARGINS![]()
The margin outlines appear.
Using the mouse, click and drag the margin outlines
NOTE: The uppermost and bottommost margins are for the header and footer, respectively.
Click CLOSE
From the File menu, select Print Preview
The Print Preview dialog box appears.
Review the custom header or footer
If adjustments are necessary, click SETUP...
The Page Setup dialog box appears.

Select the Margins tab
In the Top, Left, Right, Bottom, Header, and/or Footer text boxes, type or use the nudge buttons to adjust the margins
Click OK
Click CLOSE
You can change the font of the header/footer text in the Header/Footer dialog box. For more information, refer to the section Adding a Custom Header or Footer.
From the File menu, select Page Setup...
The Page Setup dialog box appears.
From the Page Setup dialog box, select the Header/Footer tab
Click CUSTOM HEADER... or CUSTOM FOOTER...
The Header or Footer dialog box appears, respectively.

Select the text in the section you want to change
Click FONT![]()
The Font dialog box appears.
Under Font, Font style, and Size, make the appropriate changes
Click OK
You are returned to the Header/Footer dialog box.
Click OK
You are returned to the Page Setup dialog box.
Click OK