How to Add Page Numbers in Excel for Printing
Learn how to add page numbers in Excel for printing with a practical, step-by-step approach. This XLS Library guide covers headers, footers, total pages, previews, and best practices for multi-sheet workbooks.

Excel page numbering is added via the Header & Footer options. Insert a Page Number (and optionally Total Pages) in the header or footer, choose its position (left, center, right), and preview with Print Preview to confirm alignment. This works for single sheets or across multiple sheets when configured in Page Setup.
What page numbers are in Excel and why you would use them
According to XLS Library, page numbers in Excel are primarily used to help readers identify and organize printed reports when a workbook spans multiple pages or worksheets. They provide a consistent reference system, especially in professional documents like quarterly analyses or project dashboards. By default, Excel does not display page numbers on screen, but you can enable them for print by using the Header & Footer tools. This makes distribution easier, reduces confusion during review cycles, and ensures your printed sheets maintain a polished, publication-ready appearance. When considering page numbers, think about whether you need Page X of Y, just Page X, or location-based numbering (Left, Center, or Right) in the header or footer. The approach you choose should align with your organization’s document standards and the intended print workflow.
What page numbers are and their role in printing across multiple sheets
Page numbering is not just cosmetic; it’s a navigational aid. If your workbook contains several worksheets, you can apply the same header or footer to all sheets or customize per-sheet settings. The key is to decide whether to number only the active sheet, all sheets, or a selected group. Excel’s standard Page Setup options enable you to apply consistent page numbers, margins, and scaling. Using Page Numbers becomes especially valuable when your printing process involves binding multiple reports together, where readers expect quick page references. The XLS Library team recommends planning the page-number strategy before you start formatting, to avoid rework later.
Where to place page numbers for clear readability
You have three primary placements: Left, Center, and Right within the header or footer. Center is the most common for formal reports, while Left or Right can be useful for supplementary metadata like file name or date. If your workbook has wide data tables, Center placement often yields better readability, whereas Left placement keeps the page header simple and clean. When you place a Page Number, Excel also allows you to include a Total Pages indicator (Page 1 of 5), which helps readers gauge the document length at a glance. Consistency across worksheets matters—use the same placement and formatting across your entire workbook to maintain a professional look.
Inserting page numbers: a practical, step-by-step approach
Begin by opening your workbook and selecting the worksheet you want to format. Go to the Page Layout tab (or Insert for some versions) and click on Header & Footer. In the Header/Footer design interface, choose where you want the page number to appear (Left, Center, Right). Click Page Number to insert the dynamic Page Number field. If you want the total page count, place the cursor where you want it and type the text Page, then insert the Page Number field, type of, and finally insert the Page Count field (often shown as &[Page] of &[Pages]).
Including total pages and custom text
To create a Page X of Y header/footer, place the Page Number field where you want the page count, and then add the Page Count field after the word 'of'. For example, in the Center section you would see: Page &[Page] of &[Pages]. You can also add static text like 'Report' or 'Confidential' adjacent to the page numbers. If you need different formats on different sheets, you can duplicate the header/footer blocks and customize them per sheet, but be mindful of consistency across the workbook. Testing with Print Preview helps verify that all pages print as intended.
Printing and previewing to ensure correct pagination
Always use Print Preview to verify that page numbers appear where you expect and that margins don’t clip the text. Check both landscape and portrait orientations if your data layout changes between sheets. If you notice misalignment, adjust the header/footer margins or switch the header/footer to a different section. When working with large or multi-sheet workbooks, consider applying a consistent Page Setup (scaling, margins) across all sheets to prevent page-number drift. A final test print on plain paper can catch issues that the on-screen preview might miss.
Tips for consistency across worksheets and workbooks
- Use the same header/footer across all relevant sheets for uniformity.
- If you use Page X of Y, ensure that all sheets have the same page-count behavior by setting consistent print areas and margins.
- On Windows vs Mac, header/footer behavior can differ slightly; test on both environments if your audience spans platforms.
- Create a small template workbook with a preformatted header/footer so new reports inherit the correct pagination. XLS Library recommends establishing a pagination standard to reduce repetitive edits.
Common mistakes and how to fix them
Common errors include placing page numbers in the wrong section (header vs footer), selecting the wrong alignment, and forgetting to include Total Pages when needed. Another frequent pitfall is not applying the Page Setup settings across all sheets, which can lead to inconsistent pagination. If you see empty spaces at the top or bottom of pages, adjust margins or scaling. Finally, remember to save a backup before applying broad changes so you can revert if something looks off in Print Preview.
Putting it all together: a best-practice checklist
- Decide the page-number format (Page X of Y vs just Page X).
- Choose a consistent header/footer location and alignment.
- Apply the same Page Setup and print areas across all relevant sheets.
- Preview carefully and print a test page before distributing the workbook.
- Document the pagination standard in your team’s guidelines so future work aligns with this approach. The XLS Library team also emphasizes testing across devices to ensure the layout remains stable when printed.
Tools & Materials
- Microsoft Excel (Windows or macOS)(Office 2019 or Microsoft 365 recommended)
- An open workbook you want to annotate with page numbers(Save a backup copy before editing)
- Access to Header & Footer/Print Setup tools(Located under Page Layout > Header & Footer or Page Setup)
- Printer (optional)(Use for a physical test print)
Steps
Estimated time: 15-25 minutes
- 1
Open workbook and select worksheet
Open the workbook that requires page numbering and select the worksheet to format. If you plan to apply the same pagination to multiple sheets, keep the workbook open and ready for the next steps. Save a backup copy before making changes.
Tip: Create a dedicated template workbook with preformatted header/footer for consistency. - 2
Open Header & Footer
Go to the Page Layout tab, then click Header & Footer. Alternatively, use the Insert tab to access Header & Footer in some versions. The header/footer area will become active for editing.
Tip: If you don’t see the header/footer area, enable it from Page Setup > Header/Footer. - 3
Choose placement
Decide whether to place the page number in the Left, Center, or Right section of the header or footer. Center is most common for formal documents, but your layout may require a different alignment.
Tip: Keep a consistent placement across all sheets to avoid confusion when printing. - 4
Insert Page Number
Click Page Number to insert the dynamic field. This automatically displays the current page number on print. For total pages, insert Page Count field (often shown as &[Page] and &[Pages]).
Tip: Avoid typing the fields manually; use the built-in Page Number and Page Count controls for accuracy. - 5
Add total pages (optional)
If you want a format like 'Page 1 of 5', place the cursor where you want it and insert the Page Number field, then the Page Count field following the word 'of'.
Tip: If you need multiple sheets to display the same total pages, apply to all sheets after formatting the first. - 6
Preview and adjust
Open Print Preview to verify placement, margins, and scaling. Adjust margins or orientation if necessary to ensure the numbers appear where intended.
Tip: Test a quick print on plain paper to confirm alignment before distributing the workbook.
People Also Ask
How do I add page numbers to just one worksheet?
Go to Page Setup, then Header/Footer and choose to apply changes to 'This worksheet' only. Insert the Page Number field there and verify in Print Preview.
Use the Page Setup option to target a single worksheet, then insert Page Number in the header or footer and preview.
Can I include total pages on all sheets with the same format?
Yes. Set up the header/footer on the first sheet, then apply the same settings to the other sheets by selecting them or using a group edit, and verify in Print Preview.
You can apply the same header/footer layout to all sheets and check via Print Preview.
How do I include total pages (Page X of Y)?
In the header or footer, insert Page Number and Page Count fields to display 'Page X of Y'. Place them together in the same section for a clean look.
Add Page Number and Page Count in the header or footer to show Page X of Y.
How do I remove page numbers once added?
Open the Header & Footer view, select the page number field, and delete it. You can also clear the field from Page Setup to reset formatting.
Delete the page number field from the header or footer to remove it.
Do page numbers appear in Excel Online?
Yes, Excel Online supports headers and footers for printing, but the UI may differ slightly from desktop versions. Always test Print Preview before sharing.
Excel Online can print headers and footers, but check the interface and Preview first.
Can page numbers be different across worksheets?
You can customize per sheet, but for consistency you may prefer the same placement and format across all worksheets. Use the same header/footer template and test across sheets.
Yes, you can, but it’s better to keep them consistent unless a specific sheet needs a different format.
Watch Video
The Essentials
- Insert page numbers via Header & Footer tools
- Use Page X of Y to show total pages
- Preview before printing to avoid surprises
- Keep pagination consistent across all sheets
