In Excel: go to Insert ▸ Header & Footer, click the footer box you want, then press the Page Number button on the Header & Footer tab.
Insert ▸ Text ▸ Header & Footer, or View ▸ Page Layout and click the footer area.
Click the left, centre or right box where the number should print.
Press Page Number on the Header & Footer tab; add " of " and Number of Pages for the X-of-Y form.
To change the starting number, open the Page Setup dialog ▸ Page tab ▸ First page number.
To control the order pages are counted across a wide sheet, use Page Setup ▸ Sheet tab ▸ Page order.
Check the result in File ▸ Print rather than in Normal view.
What this does
Page numbers live in the header or footer, not in a cell, and Excel inserts them as the field code &[Page] so they renumber automatically as the printout grows. The neighbouring Number of Pages button adds &[Pages] for a "Page 3 of 12" pattern. Where numbering starts and in what order pages are counted are set separately in Page Setup: First page number on the Page tab, and Down, then over / Over, then down on the Sheet tab. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “insert page number in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected page shows up while it is still harmless. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That turns a layout choice that keeps the sheet readable and sortable into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
To print "Page 3 of 12" centred at the bottom: Insert ▸ Header & Footer ▸ click the centre footer box ▸ type "Page " ▸ press Page Number ▸ type " of " ▸ press Number of Pages. The box shows Page &[Page] of &[Pages]. To make the first printed page count as 4 instead of 1, open Page Layout ▸ the Page Setup dialog launcher ▸ Page tab ▸ First page number: 4. A stapled report without page numbers cannot be referenced in a meeting, and a PDF without them cannot be quoted in an email — it is thirty seconds that makes a printout citable. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. Here is the takeaway for “insert page number in excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.
Common mistakes
- Typing the numbers by hand, which stops matching the moment a row is added.
- Numbering each sheet separately and expecting a continuous sequence across a multi-sheet print — select all the sheets before printing so Excel counts them as one job.
- Looking for the numbers in Normal view, where headers and footers are never shown.
- Leaving Page order on the default when a wide sheet spills sideways, so page 2 is the sheet's right-hand half rather than its continuation downwards.
Frequently asked questions
How do I insert page numbers in Excel?
Insert ▸ Header & Footer, click a footer box, then press the Page Number button. Excel inserts &[Page], which renumbers itself.
How do I show "Page 1 of 10"?
In the footer box type "Page ", press Page Number, type " of ", then press Number of Pages. The stored code is Page &[Page] of &[Pages].
How do I start numbering at a number other than 1?
Open the Page Setup dialog from the Page Layout tab, go to the Page tab, and set First page number to the value you want.
How do I remove page numbers?
Insert ▸ Header & Footer, click into the box holding the code and delete it, or choose Header & Footer ▸ Footer ▸ (none).
Other ways people ask this
On the way here you may have searched this as “how to insert a page number in excel”, “insert page number in excel”, “how do i insert page numbers in excel” and “how to insert page numbers excel” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “how to insert a page number in excel”, “insert page number in excel”, “how do i insert page numbers in excel” all point at the one operation explained on this page, which is why they all lead here.