Add Page Numbers to Excel: A Step-by-Step Guide
Learn how to add page numbers in Excel for printing, with header/footer tricks, Page Setup, and printing best practices. Windows and Mac workflows covered, plus tips for multi-sheet workbooks and professional reports. 2026 guidance from XLS Library.

Learn how to add page numbers in Excel for printouts and shared workbooks. You’ll use headers, footers, and the Page Setup dialog to place numbers left, center, or right, with options for current page, total pages, date, and file path. This guide covers Windows and Mac workflows and emphasizes previewing before printing. According to XLS Library, consistent numbering improves readability and navigation across worksheets in 2026.
Why page numbers matter in Excel for printing and sharing
In Excel, page numbers help readers track pages when a workbook spans multiple sheets or when printed. They appear in the header or footer area and can be customized to show the current page, total pages, file path, or date. For aspiring and professional Excel users, understanding page numbering reduces printing errors, improves professional presentation, and supports audit trails in reports. This section unpacks the core reasons to add page numbers and how to think about their placement relative to headers, footers, and margins. A consistent approach also makes it easier to review reports on shared drives and ensures your documents look polished when distributed to stakeholders. If you’re preparing quarterly dashboards or project summaries, page numbers help reviewers navigate long printouts and printed handouts. When you design a workbook with multiple sections, thoughtful page numbering can align with your headers and footers to communicate structure clearly. The right placement also helps when you print in color or grayscale, where contrast affects readability. Finally, setting up page numbers early saves time later and reduces last-minute rework during approval workflows.
Header vs. footer: what to use and when
Header and footer sections host page numbers; you can put numbers at the top or bottom and align left, center, or right. They can display current page, total pages, date, time, or file path. In Excel, you access this via the Page Layout tab or the Page Setup dialog. Codes such as &[Page], &[Pages], &[Date], and &[Path] render the dynamic values when you print. Mac and Windows behave similarly, but keyboard shortcuts and menu paths differ slightly. A small but crucial detail is whether you enable 'Different First Page'—this helps you omit a page number on your title page while keeping the rest numbered. By planning header/footer content, you can ensure your first page reads like a cover and your subsequent pages stay consistent. This is especially important for professional reports, invoices, and proposals where the header carries a client name or date alongside page numbers. The XLS Library team notes that many users forget to pair page numbers with gridlines and sheet titles, resulting in pages that are hard to interpret at a glance. A simple rule: decide whether you want page numbers only on the printing pages or also in on-screen views for review.
Quick-path: adding page numbers using the Header & Footer tools
Open the workbook and switch to Page Layout or Page Break Preview. Click the Header & Footer button or press Alt+N+H in Windows (Option+Command+P on Mac) to enter header/footer editing mode. Choose where to insert the code: left, center, or right section. Type or insert the page number code &[Page] and, if desired, add &[Pages] after a separator like 'of' to show 'Page 1 of 5'. Exit header/footer editing and use Print Preview to verify alignment. Optional: add the date &[Date] or file path &[Path]. Tip: use the 'Different First Page' option if the title page should omit numbering, and keep a consistent font size for readability.
Step-by-step alternative: Page Setup dialog for page numbers
Open Page Setup from the Page Layout tab or by right-clicking a sheet tab and selecting Page Setup. Go to the Header/Footer tab. Click 'Custom Header' or 'Custom Footer' and insert codes like &[Page] and &[Pages] in the desired sections. If you want the total pages to display across all sheets, use a workbook-level setting; but Excel typically renders per worksheet. Adjust the margins and header height to prevent clipping, and use the Preview to confirm. Save settings as a template for new workbooks.
Handling multiple sheets and different printing scenarios
For a workbook with many sheets, page numbers are typically printed per sheet, unless you place them in a header/footer and apply to each sheet with consistent margins. If you need a single numbering sequence across the entire workbook, you will need to set up printing as a multi-sheet print job and ensure no page breaks disrupt the intended flow. Use Page Setup > Page tab: set 'Fit to' options to ensure page width, and use 'Print titles' to repeat the header row on each page. When sharing printed reports, align the header text with your brand, and consider including page numbers in the header area along with the workbook title.
Verification and best practices
Always preview before printing; use Print Preview (Ctrl+P) to confirm how numbers look in different views (Normal, Page Break Preview, etc.). Test with a sample workbook that has multiple sheets and a title page. Keep page numbers on a consistent style: same font size, same formatting; test both portrait and landscape orientations. If your workbook uses many pages, you may want to adjust scaling (Scale to Fit) so your page numbers don't crowd the header area. Document versioning and filename patterns in the header for traceability. A small checklist can help: verify the first page, verify right-aligned numbers on landscape prints, and verify totals across pages if you included them.
Authority sources and learning resources
- Microsoft Learn: Add headers and footers in Excel. https://learn.microsoft.com/en-us/office/troubleshoot/excel/add-headers-footers-excel
- Microsoft Support: Print a worksheet and set up headers/footers. https://support.microsoft.com/en-us/office/print-a-worksheet-1e9df6a3-5462-4ca3-ae4b-d2133e5a2b67
- Excel official documentation: Page Setup and printing basics. https://support.office.com/
Tools & Materials
- Excel (Windows or macOS)(Recent version with Header & Footer support (Excel 2019+ preferred))
- Printer or ready print preview(Use Print Preview to verify before printing)
- Blank workbook or test file(Helpful for trial runs without affecting production files)
- Access to Page Setup dialog(Needed for Custom Header/Footer and page codes)
Steps
Estimated time: 15-25 minutes
- 1
Open the Header/Footer area
Open your workbook and switch to Page Layout or Page Break Preview. This sets the stage for adding page numbers and deciding their placement.
Tip: If you plan to omit numbering on the first page, enable 'Different First Page' in the header/footer options. - 2
Insert header/footer codes
Click Header & Footer (or enter Custom Header/Footer) and choose the section (left, center, right) where numbers will appear. Insert codes like &[Page] and &[Pages] to show current and total pages.
Tip: Combine codes with text, for example 'Page &[Page] of &[Pages]'. - 3
Choose alignment and content
Decide whether numbers should align left, center, or right, and which extra data (date, file path) to display. Preview changes in the header/footer area.
Tip: Keep a consistent font and size for readability across pages. - 4
Test with Print Preview
Exit header/footer editing and open Print Preview to verify how numbers look on screen and on paper. Check portrait and landscape orientations as needed.
Tip: If numbers clip, adjust margins or header height in Page Setup. - 5
Apply to multiple sheets
If your workbook has many sheets, apply the same header/footer settings to each sheet to keep numbering consistent across the workbook.
Tip: Consider making a template file with numbering preconfigured. - 6
Advanced: use Page Setup for complex layouts
For more control, use the Page Setup dialog’s Header/Footer tab to craft custom headers or footers with multiple codes and spaces.
Tip: Avoid overloading the header with too many elements which can push numbers off the page. - 7
Save and reuse your settings
Save the workbook as a template or copy the header/footer setup to future workbooks to ensure consistency and save time.
Tip: Document the steps you followed for future reference.
People Also Ask
Do page numbers appear on every page by default?
Page numbers appear on pages depending on where you place them (header or footer) and whether you enable 'Different First Page'. They will appear on pages that are printed unless you choose to omit the first page.
Yes, page numbers appear on the printed pages based on your header or footer settings and whether you use a different first page.
Can I add page numbers to only specific sheets?
Yes. You can apply the header/footer setup to individual sheets or copy the settings to selected sheets. For consistent numbering across a few sheets, configure each sheet the same way.
Absolutely. Set the header or footer on the sheets you want, or copy the setup to multiple sheets.
How do I remove page numbers?
Open the header/footer editor and delete the page number codes, or reset the header/footer to remove all custom content. Save changes and re-check Print Preview.
Open the header or footer editor, delete the page number codes, and save. Then preview again.
Can I customize page numbers to show total pages and date?
Yes. Use codes like &[Page], &[Pages], and combine with &[Date] to display both the current page, total pages, and the date. You can place these in any header/footer section.
You can show page numbers, total pages, and the date in headers or footers with the right codes.
What if page numbers don’t appear in print preview?
Check header/footer codes, margins, and header height. Ensure the correct sheet is selected and that 'Print' is selected for the intended pages. Reopen Print Preview after adjustments.
If you don’t see numbers, review codes, margins, and the sheet you’re printing.
Do Mac and Windows handle page numbers the same way?
Both platforms support header/footer page numbers, but menu paths and shortcuts differ. Follow the same logic for codes like &[Page], and adjust using the Page Setup dialog on both systems.
Page numbers work similarly on Mac and Windows, though the steps can differ slightly.
Watch Video
The Essentials
- Decide where page numbers belong: header vs footer.
- Use codes like &[Page] and &[Pages] for dynamic numbering.
- Preview printing before finalizing to avoid clipping.
- Apply consistent settings across sheets for a polished workbook.
