Skip to main content
Bob Umlas/5 min read

How to Add Headers & Footers in Excel: More Fun with Excel's Page Layout Tab

Common Excel Functions

SUMIFS / COUNTIFS

Conditional sums and counts — multiple criteria.

INDEX/MATCH

More flexible than VLOOKUP — works any column direction.

IFERROR

Wrap formulas to suppress error displays.

TEXT

Format numbers as strings — TEXT(B1, "$#,##0.00") for currency.

Master Excel at Noble Desktop

Noble Desktop's Excel Bootcamp covers formulas, pivot tables, data analysis, and VBA.

Explore the detailed guide to understanding the Page Layout tab and other features in Excel, along with a step-by-step explanation on customizing headers, footers, and margins. The blog also covers useful tips on how to efficiently apply the same settings to multiple sheets.

In this blog, we’ll complete the discussion of what’s available on the Page Layout tab and a few other items. The Header/Footer tab of the Page Setup dialog is where we left off. Let’s look at this again. Click the dialog launcher below the Print Titles icon and then click the 3rd tab (Header/Footer), and you see:Excel Page Setup dialog showing Header/Footer tab options

The main buttons here are the Custom Header and Custom Footer buttons. Either gives the identical dialog aside from the results being shown in the Header or the Footer. The dialog looks like this:

Custom Header dialog in Excel with left, center, and right sections

Before we go into all these buttons, notice the tab, “Header” at the top of the dialog. If, in the previous dialog, the box “Different odd and even pages” was checked, then when the Custom Header button is clicked you’d see these tabs at the top:

Custom Header tabs showing odd and even page header options

And if the “Different first page” was checked, then you’d see these tabs at the top:

Custom Header tabs with Different First Page option enabled

And if both were checked, you’d see these tabs:

Custom Header tabs showing both odd/even and first page options

The icons in the middle of the dialog are these:

Header/Footer formatting icons in the Custom Header dialog

If you type “My left header” in the left section, then select that text, then click the Format Text icon (pointed to by the arrow), you will get the Font dialog as shown, where you can format the selected text. What’s shown here is the effect of doing exactly that, then issuing the command again where you can see the result of the text’s formatting:

Custom Header dialog showing formatted text and Font dialog result

In the next dialog, the cursor was placed in the Center section, the page number icon was selected, then the word “of” was typed (surrounded by a space), then the number of pages icon was selected:

Custom Header with page number and total pages codes entered

The &[Page] and &[Pages] are “codes” for Excel to insert the current page and total number of pages. For example, the following preview would show if this were done to the center section of the footer on a document with 19 pages and we were looking at page 2:

Excel footer showing page 2 of 19 in print preview

Some of the other commands are pretty self-explanatory. Here, the Insert Picture icon was selected (an Excel logo was chosen), then the Format picture icon was chosen where the image was set to be 1” X 1”:


Insert Picture dialog in Custom Header with company logo selected

The result:

Excel print preview showing header with inserted company logo

If the margins are also set, then this could show as:

Excel print preview with margins and logo in the header area

Where can you set the margins in the Print preview? Scroll down a bit and you’ll see 2 icons at the bottom right, quite hidden from the user (!) – Notice the red arrow:

Excel print preview margin adjustment icons highlighted with red arrow

The left button is the toggle for the margins, which you can then drag around, and the right one is to zoom in to the page.

The last icons on the Page Layout tab we’re discussing are these:

Excel Page Layout tab Scale to Fit group with Width, Height, and Scale options

The # of pages wide or tall can be set, or the scale can be set. For example, if you set both Width and Height to 1 page, then the Scale would automatically be set (and no longer enabled), something like this:

Scale to Fit settings configured to fit one page wide and one page tall

The last 4 checkboxes are used to display and/or print the gridlines or headings (headings being the row numbers and column letters).

Suppose you make all your page settings as you like, and then realize you have other sheets to which you’d like to make the same settings. Do you have to repeat all the steps for each sheet? No! You can CTRL/click or shift/click the other worksheet tabs to put them into a group. Here, Sheet4 is active, but Sheet3 is now part of the group:

Excel sheet tabs showing grouped sheets with Sheet3 and Sheet4 selected

The top of the screen shows this:


Excel title bar displaying Group indicator for grouped worksheets

The word [group] indicates more than one sheet is included in the group.

Now all you need do is bring up the page setup dialog and simply click OK! The settings for the active sheet are copied to all the other sheets in the group!

If you click on the Page Break Preview icon at the bottom right of the screen,

 Page Break Preview icon at the bottom right of the Excel screen you would see an editable preview of the printout:

Excel Page Break Preview showing dotted automatic page break lines

The dotted lines indicate where the page breaks will automatically occur. You can actually click and drag these to a new location. If you drag the vertical break to the right, you would be inserting a manual page break. Here’s the same data with the vertical break dragged all the way to the right and the horizontal line dragged to the bottom:

Page Break Preview with page breaks manually dragged to the edges

The icon to the left of the Page Break preview at the bottom of the Excel screen is the Page Layout tab. This gives the following view:

Excel Page Layout view showing headers, rulers, and column headings

Notice you can see the header at the top, rulers are present above the columns headings and to the left of the row headings, the page break between columns J & K are shown, and you can still edit the workbook in this view. You can also click where it says “Add Header” (or “Add Footer” if you scroll down) and you’ll see this:

Page Layout view with Add Header area selected and Header editing tools visible

Notice the new ribbon tab, “Header & Footer” which gives you access to the items as icons we saw previously! Here are the definitions of the right-most checkboxes in the above illustration:

Header and Footer ribbon tab with formatting icons and checkbox options

These different views of the spreadsheet are also visible from the ribbon’s View tab in the very left section, as seen here:


Screenshot of the Microsoft Excel ribbon on the View tab, displaying workbook view options (Normal, Page Break Preview, Page Layout), checkboxes for Ruler, Formula Bar, Gridlines, and Headings, along with Zoom controls (100% and Zoom to Selection).