To add page numbers in Excel, go to the Insert tab, select Header & Footer, and click the Page Number button in the Design tab. This process allows you to automatically track pages across large datasets, ensuring that printed reports remain organized and professional. Because Excel is a grid-based application rather than a word processor, page numbers are not visible in the standard Normal view; they only appear in Page Layout view or when printing the document.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • A dataset or spreadsheet that spans more than one printed page.
  • Access to a printer or a PDF viewer to verify the page numbering layout.

Step-by-Step

  1. Switch to Page Layout View: Open your workbook. By default, Excel opens in "Normal" view, which hides headers and footers. To see where your page numbers will go, go to the View tab on the ribbon and select Page Layout. Alternatively, click the middle icon (the one that looks like a small page) in the status bar at the bottom right of the Excel window. Note that menu labels may differ slightly depending on your version of Excel or region.
  2. Access the Header or Footer Area: Once in Page Layout view, you will see three boxes at the top of the page (the Header) and three boxes at the bottom (the Footer). Click inside any of these boxes—left, center, or right—to activate the header/footer editing mode.
  3. Open the Header & Footer Tools: As soon as you click into a header or footer box, a new contextual tab called Header & Footer (or Design in some versions) will appear in the top ribbon. Click this tab to reveal the specific tools for page numbering.
  4. Insert the Page Number Code: In the Header & Footer Design tab, look for the "Header & Footer Elements" group. Click the Page Number button. You will notice that Excel does not immediately show a number; instead, it inserts a code that looks like &[Page]. This is a placeholder that Excel replaces with the actual page number during printing or in the Page Layout view.
  5. Create a "Page X of Y" Format: To make your document easier to navigate, it is often better to show the total page count. To do this, type the word "Page " followed by a space, click the Page Number button, type " of " (with spaces), and then click the Number of Pages button. The resulting code should look like Page &[Page] of &[Pages].
  6. Finalize and Exit: Click anywhere inside the main spreadsheet cells to exit the header/footer editing mode. Your page numbers will now be visible in the Page Layout view.
  7. Verify via Print Preview: To ensure the numbers are positioned correctly, press Ctrl + P (Windows) or Cmd + P (Mac) to open the Print Preview. Scroll through the pages to confirm the numbers increment correctly.

Common Mistakes

One of the most frequent mistakes users make is attempting to find page numbers while in the Normal view. Because Excel focuses on the data grid, headers and footers are completely invisible in this mode. Users often think the numbering failed or that the &[Page] code is a glitch, when in reality, they are simply in the wrong view. Always switch to Page Layout or Print Preview to verify your work.

Another common error is manually typing a number (e.g., typing "1") into the footer. While this looks correct on the first page, every subsequent page will also display the number "1" because manual text is static. You must use the Page Number button to insert the dynamic code that tells Excel to calculate the page sequence automatically.

Users also frequently forget to check their Print Area. If you have a specific print area defined, Excel only numbers the pages within that area. If you add data outside the print area, those pages will not be numbered or printed at all, leading to gaps in your documentation.

Tips

Starting from a Specific Page Number: If your Excel sheet is part of a larger report and needs to start at page 5 instead of page 1, you can change the starting value. Go to the Page Layout tab, click the small arrow in the bottom right corner of the Page Setup group to open the full dialog box. In the "Page" tab, look for the First page number field at the bottom. Change "Auto" to your desired starting number (e.g., 5) and click OK.

Different First Page: If you have a cover page and do not want a page number to appear on it, go to the Header & Footer Design tab and check the box for Different First Page. This creates a unique header and footer for the first page, allowing you to leave it blank while the numbering begins on the second page.

Scaling for Fit: If your page numbers are being cut off or the data is spilling over into an extra page, use the Scale to Fit options on the Page Layout tab. By adjusting the width or height to "1 page," you can force the data to fit, which in turn cleans up the page numbering sequence.

Troubleshooting

If the page numbers are not appearing: First, ensure you are not in Normal view. Switch to View > Page Layout. If they still aren't appearing, check if you have accidentally checked the Different First Page or Different Odd & Even Pages options in the Design tab. If these are checked, you must enter the page number code separately for each unique section (e.g., once for the first page, once for odd pages, and once for even pages).

If the numbering is skipping pages: This usually happens when there are hidden rows or columns that Excel still considers part of the printable area. Check for any stray data or formatting in far-off cells. Clear those cells by selecting the rows/columns and using the "Clear All" option on the Home tab, then redefine your Print Area via Page Layout > Print Area > Set Print Area.

If the &[Page] code is visible instead of the number: This occurs when you are editing the header/footer. Simply click back into the main spreadsheet cells. If the code persists even after clicking away, ensure you are using a supported version of Excel and that the file is not saved in an ancient version (like .xls) that might be experiencing compatibility issues with modern header elements. Try saving the file as an .xlsx workbook.

Frequently Asked Questions

Can I put page numbers in the middle of the spreadsheet cells?

No, Excel does not have a function to insert dynamic page numbers directly into a cell. Page numbers can only be placed in the Header or Footer sections of the page.

How do I remove page numbers from my Excel sheet?

Go to View > Page Layout, click into the header or footer box where the page number is located, highlight the &[Page] code or the manual text, and press the Delete key on your keyboard.

Can I have different page numbering for different tabs (sheets) in one workbook?

Yes. Page numbering is handled on a per-sheet basis. You must go to each tab and set up the header/footer individually. If you want the same numbering across all sheets, you can select all tabs (hold Ctrl and click each tab) before inserting the page number code.

Why does my page number say "Page 1 of 1" even though I have lots of data?

This usually means your data is being scaled too small to fit on one page, or your Print Area is set too narrowly. Check Page Layout > Scale to Fit and ensure the scaling is not set to a percentage that forces everything onto a single page.

Does Excel page numbering work for PDF exports?

Yes. When you save as a PDF or print to PDF, Excel treats the PDF as a printed document, so all headers, footers, and dynamic page numbers are preserved exactly as they appear in the Print Preview.