Sub topic 1
How Excel decides what goes on each page
A worksheet has no pages. It is a grid that extends in every direction, and Excel only divides it into pages at the moment it prepares output for a printer or a PDF file. This chapter explains how that division works, so the settings in later chapters make sense: print area, orientation, scaling, page breaks, and print titles all feed into the same process.
Prerequisites
This chapter assumes you can:
- Move around the Excel ribbon and open tabs such as Home, Page Layout, and View.
- Enter data, select ranges, and format cells.
- Tell a worksheet (one tab) from a workbook (the whole file).
You do not need any VBA knowledge until the last chapter.
The core idea: pagination is calculated, not stored
When you print, Excel does not read pages from the file. It calculates them each time from four inputs:
- The cells that have content or formatting, or the print area if you set one.
- The paper size, margins, and orientation.
- The scaling percentage, or a fit-to-pages setting.
- Any manual page breaks you inserted.
Excel places the content onto the printable space, fills one page, and starts the next. The process is called pagination. Because it is recalculated, changing any input can move content from one page to another.
What counts as printable content
If you have not set a print area, Excel prints the used range. The used range runs from cell A1 to the farthest cell that holds a value, a formula result, a border, a fill color, or other formatting. It also includes objects such as charts, shapes, and pictures.
This causes a common surprise. A cell that looks empty but has a fill color or border far down the sheet is still part of the used range. Excel will print the blank pages that lead up to it.
Cells with white text on a white background still count as content. Hidden rows and hidden columns do not print, and they take up no space on the page.
The printable area of one page
Each page has a fixed amount of usable space. You can work out its size with simple subtraction:
- Start with the paper size, for example Letter (8.5 × 11 inches) or A4 (210 × 297 mm).
- Swap width and height if the orientation is landscape.
- Subtract the left and right margins from the width.
- Subtract the top and bottom margins from the height.
The result is the space available for cells. Headers and footers sit inside the margin area, so they do not reduce this space unless they are larger than the margin.
For Letter portrait with 0.7 inch left and right margins, the usable width is 8.5 − 1.4 = 7.1 inches. Excel's default column width of 8.43 characters is about 0.67 inches (64 pixels at 96 dpi). So roughly ten or eleven default columns fit across one page at 100% scale. A twelfth column spills onto another page.
The order in which pages are numbered
Excel fills pages down first, then across. This is the "Down, then over" order, and it is the default. Imagine a sheet that needs two pages of height and two pages of width. The pages are numbered like this:
| Page number | Position in the sheet |
|---|---|
| 1 | Top left |
| 2 | Bottom left |
| 3 | Top right |
| 4 | Bottom right |
You can change this to "Over, then down" in the Sheet tab of the Page Setup dialog. Choose it when the sheet is wide and readers will flip through it like a book from left to right. Page numbers in the footer follow whichever order you pick.
Automatic and manual page breaks
A page break is the line where one page ends and the next begins. Excel creates two kinds:
- Automatic breaks appear where the content no longer fits on the page. Excel places them. In Normal view they show as dashed lines after you have previewed or printed once.
- Manual breaks are ones you insert. They show as solid lines.
Automatic breaks always fall at a row or column boundary. Excel never splits a row in half, so a tall row that does not fit moves entirely to the next page. For the same reason, a column that is only slightly too wide for the page goes to the next page whole. This is the cause of the "one stray column on its own page" problem.
If a manual break and the page size disagree, Excel obeys the manual break and then recalculates the automatic breaks after it. Chapter 6 covers inserting and removing breaks.
Why the printer and paper affect pagination
The page size comes from the printer driver, not just from Excel. Each driver reports the paper sizes it supports and the unprintable edges of the machine. Two things follow from this.
First, the same workbook can paginate differently on two computers. If one computer has a printer set to Letter and another to A4, the usable space differs, and so do the page breaks. A colleague opening your file may see content on a different page than you do.
Second, if no printer is installed, Excel may have no information to calculate pages. Page Break Preview and Page Layout view can show a message or look wrong. Installing any printer, or setting the Microsoft Print to PDF device as the default, fixes this.
The workbook stores the paper size and orientation you chose. It does not store the printer's exact behavior. Using the same paper size on every machine reduces surprises.
Settings that act on pagination
The table lists each setting from the plan and where it affects the process. Later chapters cover each in detail.
| Setting | What it changes in the calculation |
|---|---|
| Print area | Replaces the used range as the content to paginate |
| Orientation | Swaps the page width and height |
| Paper size | Sets the total page dimensions |
| Margins | Reduces the space available for cells |
| Scaling | Shrinks or enlarges content before it is placed on the page |
| Page breaks | Forces a new page at a chosen row or column |
| Print titles | Repeats chosen rows or columns at the top or left of each page |
| Sheet options | Adds or removes gridlines, headings, comments, and error text |
Scaling deserves a short note now. At 100%, one inch of sheet is one inch of paper. At 50%, content is half the size, so twice as much fits across and down. Excel decides the page breaks after applying the scale, not before. That is why changing the scale can reduce the number of pages.
Seeing the result of the calculation
You can see the pagination in three places. They are covered in the next chapter, so this is only an overview:
- Page Layout view shows each page as a sheet of paper with margins, headers, and footers.
- Page Break Preview shows the print area in white, the rest in gray, and the page breaks as blue lines.
- Print Preview, opened with Ctrl+P, shows the final output and the total page count.
The page count in the lower left of Print Preview is the quickest check of whether your settings did what you expected.
A worked example
Suppose a sales sheet has data in A1:N80. Columns are default width and rows are default height. You print it on Letter, portrait, with the default margins.
- Excel finds the used range, A1:N80, because there is no print area.
- The usable space is 7.1 inches wide and 9.5 inches tall, using 0.7 inch side margins and 0.75 inch top and bottom margins.
- Ten or eleven columns fit across at 100%. The columns beyond that go to a second set of pages.
- At 15 points per row, about 47 rows fit on a page. Rows 48 to 80 go onto the next page.
- The result is four pages: A to about K for rows 1 to 47, then A to K for rows 48 to 80, then the remaining columns for each of the same two row bands.
- With Down, then over, the order is 1 (top left), 2 (bottom left), 3 (top right), and 4 (bottom right).
Switching to landscape swaps width and height. The usable width becomes about 9.6 inches, so more columns fit, but fewer rows do. Changing orientation does not always reduce the page count. It only moves the break lines.
Common errors at this stage
- Blank pages at the end. Stray formatting or a space character in a distant cell enlarges the used range. Set a print area, or clear the extra cells.
- A column on its own page. The content is slightly wider than the usable space. Reduce margins or scale slightly.
- Different page counts on two computers. The printers or the paper sizes differ.
- Page numbers that look out of order. The page order setting is Down, then over, while the reader expects left to right.
Exercise
A worksheet has data in A1:F40, but a cell at Z500 has a light yellow fill. You print with no print area set. Why do you get many extra pages, and what is the simplest way to stop it?
Show answer
The used range runs from A1 to Z500 because the filled cell counts as formatted content, so Excel paginates all of that area, including the blank cells. The simplest fix is to select A1:F40 and set it as the print area, which replaces the used range as the content to paginate. You could also clear the formatting from Z500 and the cells around it.
Exercise
A sheet needs two pages of height and three pages of width at the current scale. Using the default page order, which page number is the top of the second column of pages?
Show answer
Page 3. Down, then over numbers the first column of pages as 1 and 2, so the top of the second column is page 3.