In Excel: go to Insert ▸ Header & Footer, click the footer box you want, then press the Page Number button on the Header & Footer tab.
On this page7
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. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. For “add page numbers in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected page change, and only then apply the same setup to the full sheet. 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 is what makes a layout choice that keeps the sheet readable and sortable useful in real work: repeatable, auditable, and not dependent on memory or luck.
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. A practical tip: try it on a copy of the sheet or a handful of sample rows first and check the result before you apply it to the real data. That one habit catches almost every surprise while it is still cheap to reverse.
In Google Sheets
This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Here is the takeaway for “add page numbers in excel”: follow the steps at the top, check the result on the sheet itself, and keep undo in mind while you experiment. Done once deliberately, it becomes something you do from memory in Excel rather than something you search for again.
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
People reach this page typing “add page numbers to excel”, “how do i add page numbers in excel”, “how do you add page numbers in excel” and “how to add page number on excel”, among other phrasings; whichever wording you used, the fix above is the one you want.
Why do people search for this in so many different ways?
Because the same task has many names. “add page numbers to excel”, “how do i add page numbers in excel”, “how do you add page numbers in excel” all point at the one operation explained on this page, which is why they all lead here.