How to Page Number in Excel

Learn how to add and customize page numbers in Excel across single sheets and workbooks, with header/footer techniques, printing tips, and troubleshooting from XLS Library.

XLS Library
XLS Library Team
·5 min read
Quick AnswerSteps

According to XLS Library, you can add page numbers in Excel by using the Header & Footer tools on the Page Layout tab. This quick guide shows how to insert numbers, customize their position, and apply numbering to multiple worksheets for printing clean, professional reports from Excel. It also covers first-page differences and total pages.

What page numbers do and when to use them

Page numbers help readers follow printed worksheets and reports, especially when you distribute a workbook across multiple pages. In Excel, page numbers come from Header and Footer areas, not from cells. This means you control pagination through the Page Layout/Sheet options rather than inserting a formula. According to XLS Library, understanding when to place numbers in the header or footer, and whether to apply them to a single sheet or the entire workbook, will save you from rework and printing glitches. When you print a multi-sheet workbook, consistent pagination improves readability and professionalism. In practice, you typically use page numbers for formal reports, budgets, and data exports that accompany a written analysis. If your workbook has charts or tables spanning several pages, a well-placed page number becomes a navigational anchor for your audience.

Header/Footer anatomy in Excel

Excel’s Header and Footer area is where page numbers are defined. The Page Layout tab hosts the Page Setup group, which contains Header/Footer, Margins, and Print Area settings. Within Header/Footer, you have three zones: Left, Center, and Right. Each zone can hold Page Number, Number of Pages, Date, Time, File Name, and custom text. Understanding that headers stay with the printed page while cells remain in the worksheet helps you plan pagination around content density and margins. For many users, the quickest route is to insert Page Number and Number of Pages into the Header/Footer and then adjust alignment to fit the page design. This approach makes printed reports neat and navigable.

Preparing your workbook for pagination

Before you start, confirm your workbook structure aligns with your printing goals. If you have a multi-sheet workbook, decide whether every sheet should show page numbers or only selected sheets. Consider whether to include total pages (Page X of Y) or just the current page (Page X). If you’re sharing a workbook with colleagues, you may want consistent paging across all sheets. In practice, this is where XLS Library recommends planning the pagination strategy: map out headers and footers on a sample sheet, then apply it consistently across the workbook. If you anticipate reordering tabs or adding sheets, test pagination after the changes to avoid surprises at print time.

Step-by-step overview: where to locate the controls

The Page Layout tab on the Ribbon houses the Page Setup group, where you’ll access Header/Footer settings. Click Header or Footer to switch into the design view, then select Page Number and Number of Pages from the drop-down options. Choose Left, Center, or Right for placement and preview how your page numbers align with your content. If you need more control, use Custom Header or Custom Footer to craft a personalized layout. Remember to save your workbook before testing prints, so you can revert if needed.

Applying to multiple sheets or an entire workbook

To apply the same page numbers to multiple sheets, first select all the sheets you want to include by holding Ctrl and clicking each tab or by right-clicking and choosing “Select All Worksheets.” Any changes you make to headers and footers while multiple sheets are selected will apply to all included sheets. This is especially useful for uniform reports or portfolios that span several worksheets. After applying, use Print Preview to verify consistency across pages and sheets. If you prefer selective paging, skip grouping and set headers/footers per sheet or per group.

Start numbering from a specific page or section

Excel provides options to tailor pagination to sections of your document. In many cases, you may want the first page unnumbered or numbering to start from a specific page. Check the

Different First Page

or equivalent setting available in the Header/Footer Tools. If your document includes a cover sheet or title page, enable this option so the page numbering begins on the desired page. Preview the result to ensure that the numbering aligns with your layout and does not disrupt margins or content density.

Previewing and printing: final checks

Always preview before printing. Use File > Print or the Print Preview pane to confirm margins, header/footer placement, and the overall flow of pages. If your printer uses nonstandard margins, you may see shifts in where page numbers land. Adjust margins and scale settings to fit your content and re-check the preview. Consistency is key for professional documents, especially when sharing with colleagues or clients. Saving a test copy with the pagination you want can save time on future revisions.

Common pitfalls and troubleshooting

Common issues include page numbers not appearing, misaligned headers, or numbers restarting unexpectedly on new sheets. Ensure you are in Header/Footer view when inserting Page Number, and verify that you’ve selected the correct placement zone. If applying to multiple sheets, confirm all targeted sheets are indeed grouped. If you still don’t see page numbers, check for hidden rows/columns affecting the layout, inspect margins, and review print setup options. When in doubt, revert to a clean template and reapply the headers/footers from scratch.

How XLS Library can help you master Excel pagination

XLS Library offers practical, approachable guides to pagination in Excel, with step-by-step walkthroughs and real-world scenarios. The team emphasizes predictable printing and clean layouts, so you can deliver polished reports. For further learning, explore our tips on headers, footers, and workbook-wide consistency. The XLS Library team recommends practicing on a test workbook before applying changes to important documents.

Tools & Materials

  • Computer with Excel (Office 365/Office 2019 or later)(Any recent version supports Header & Footer features)
  • Active workbook with at least one worksheet (preferably a test file with multiple sheets)(Prepare a workbook to test across sheets)
  • Printer or reliable print preview(Optional if you want to print; use Print Preview to confirm)
  • Notes app or screenshot tool(Capture steps or issues for reference)

Steps

Estimated time: 15-25 minutes

  1. 1

    Open Page Layout options

    From the Ribbon, switch to the Page Layout tab. Open the Page Setup group to access headers, footers, margins, and print area settings.

    Tip: If you don’t see Page Layout, switch to Normal view or check workbook protection.
  2. 2

    Choose Header or Footer

    Click Header or Footer to place page numbers and choose Left, Center, or Right alignment within the header/footer area.

    Tip: Use the horizontal alignment to fit your content without crowding margins.
  3. 3

    Insert Page Number and Number of Pages

    In the Header/Footer design, select Page Number and Number of Pages from the Header/Footer tools to create a Page X of Y effect.

    Tip: If you want only the current page, skip inserting Number of Pages.
  4. 4

    Position the pagination

    Decide whether page numbers appear on the header or footer and on which side (Left/Center/Right) for each sheet.

    Tip: Center alignment works well for formal reports; left/right can accommodate logos or dates.
  5. 5

    Apply to one or many sheets

    To apply across multiple sheets, group the worksheets and set the header/footer while the group is active.

    Tip: Group sheets by holding Ctrl and clicking tabs, then perform the header/footer change.
  6. 6

    Start numbering from a specific page

    Use the Different First Page option or similar settings to start numbering later if you have a cover page.

    Tip: Preview to ensure the first non-cover page is Page 1.
  7. 7

    Preview before printing

    Use File > Print or Print Preview to verify margins, page breaks, and header/footer placement.

    Tip: Check both portrait and landscape orientations if your content rotates.
  8. 8

    Save and test

    Save the workbook and perform a test print to confirm the pagination across sheets.

    Tip: Keep a backup file before mass changes.
Pro Tip: Use Group Sheets to apply the same header/footer across multiple worksheets.
Warning: Avoid placing page numbers where margins might clip them during printing.
Note: Always preview with Print Preview to confirm the exact placement.
Pro Tip: Enable Different First Page if you have a cover page that should be unnumbered.

People Also Ask

How do I add page numbers to the header versus the footer in Excel?

Open Page Layout > Header/Footer, then choose Page Number to insert into the desired section (Header or Footer). You can also use Number of Pages for Page X of Y. Try a quick preview to ensure correct placement.

Open Page Layout, add Page Number to the header or footer, and preview to confirm location and formatting.

Can I have different page numbers on the first page?

Yes. Enable the Different First Page option in the Header/Footer Tools to suppress numbering on the first page or apply a different header/footer. Preview to verify the result.

Turn on Different First Page in the header/footer tools and recheck in Print Preview.

Is it possible to show Page X of Y instead of just Page X?

Insert Page Number and Number of Pages in the header/footer. The combination displays Page X of Y. Ensure you choose the correct placement (Left/Center/Right).

Use Page Number and Number of Pages to get X of Y in the header or footer.

How do I apply page numbers to all sheets in a workbook?

Group the worksheets you want to paginate, then set the header/footer while the group is active. Changes apply to all grouped sheets. Ungroup when finished.

Group the sheets, set the pagination, then ungroup.

Why don’t page numbers appear when I print, even though they show on screen?

Check print margins and scaling, ensure the header/footer is enabled, and verify you are using Print Preview. Some printers trim or reposition page elements differently.

Verify margins and print settings; use Print Preview to spot issues.

Is there a keyboard shortcut to insert page numbers in Excel?

Excel does not have a universal keyboard shortcut for inserting page numbers. Use the Ribbon: Page Layout > Header/Footer and insert the fields manually for each sheet.

Use the Ribbon to insert page numbers; there isn’t a single universal shortcut.

Watch Video

The Essentials

  • Insert page numbers via Header & Footer.
  • Apply pagination to multiple sheets by grouping.
  • Choose position—Left, Center, or Right.
  • Preview before printing to verify margins.
  • Save workbook after adjustments.
Process flow showing how to add page numbers in Excel
Process: add page numbers via Header/Footer and Preview before printing

Related Articles