Excel Page Break Formula: What Works and What Doesn’t

Formulas & functions · Updated November 3, 2026

Excel Page Break Formula: What Works and What Doesn't

No Excel worksheet formula can insert a print page break or tell Excel exactly where a printed page will end. To set a break, use Page Layout > Breaks in the desktop app; formulas can help label or group rows for planning, but they do not control pagination.

What an Excel page break formula can and cannot do

A page break is a print-layout instruction, not a value stored in a worksheet cell. Excel uses the paper size, margins, orientation, scaling, print area, row heights, column widths, and printer settings to work out how worksheet content fits on pages. A formula can calculate numbers or labels from cell data, but it cannot issue a command to the print layout engine.

There is no built-in worksheet function that inserts a page break, and there is no ordinary worksheet function that reliably returns the printed page number for a cell. A formula based on ROW can count worksheet rows, but a worksheet row is not the same thing as a printed page: a page might contain part of a row’s logical grouping, or fewer rows because some are taller or the margins are larger.

That distinction matters when searching for an Excel page break formula. If the goal is to make a report easier to print, a helper formula may organize the data, but you must still adjust print settings or insert breaks separately.

How Excel decides where printed pages end

Excel displays two kinds of page breaks. Automatic breaks are calculated from the current print settings and the printable space on the page. Manual breaks are breaks a user adds to control where a new page begins. In Page Break Preview, Excel shows the boundaries so you can see how the current sheet is divided.

Pagination can change after seemingly small edits. Widening a column may make the sheet spill onto another page horizontally. A wrapped description can increase a row’s height and push following rows down. Changing from portrait to landscape, selecting a different paper size, or changing the printer can also alter the available page area. Excel may recalculate automatic breaks when the layout changes.

Consequently, a formula that assumes every page contains a fixed number of rows is only an estimate. It may be useful for a deliberately standardized report, but it cannot account for all the layout choices that determine actual printed pages.

Use a helper formula to estimate page groups

A helper column can assign records to estimated page groups when every group is intended to contain the same number of data rows. For example, assume row 1 contains headings, records begin in row 2, and you want to plan for 25 records per group. Put this formula in B2 and fill it down:

With headings in row 1, records starting in row 2, and a target of 25 records per planned page, enter in B2: =INT((ROW()-2)/25)+1. In this example, B2 returns 1 and B26 also returns 1; B27 returns 2, because rows 2 through 26 contain the first 25 records.

The result is a page-group number, not an instruction to Excel to start a new printed page. You can use the numbers to review the proposed groups, sort or filter records, or identify where to insert manual breaks. If the heading row repeats on every page, remember that it takes up printable space; the example still counts only the data records and does not prove that 25 will physically fit.

For reports with variable-height rows, merged cells, subtotals, or long descriptions, a fixed-row estimate is especially likely to diverge from the print preview. In those cases, use the formula as a planning aid and verify the final result in Page Break Preview or File > Print.

Insert a manual page break in Excel

In Excel for Microsoft 365 on Windows, select the cell below the row where the next page should begin, then choose Page Layout > Breaks > Insert Page Break. Excel inserts a horizontal break above the selected row. To insert a vertical break, select a cell in the column that should start the next page; the break is placed to its left. Selecting a cell within the sheet can create both a horizontal and a vertical break.

To work visually, choose View > Page Break Preview. You can inspect the page boundaries and, where available, drag a break to adjust the printed area. A solid line indicates a manual break and a dashed line generally indicates an automatic break. The exact display can vary with the sheet’s current print settings.

  • To remove a specific break, select the cell immediately below a horizontal break or immediately to the right of a vertical break, then choose Page Layout > Breaks > Remove Page Break.
  • To clear manual breaks from the worksheet, choose Page Layout > Breaks > Reset All Page Breaks.
  • To check the final pagination, open File > Print and review the preview before printing or saving a PDF.

The core page-break controls are in the desktop Excel ribbon on Windows and Mac, although ribbon layout and keyboard navigation can differ. Excel for the web does not provide the same full set of manual page-break editing controls as the desktop app; open the workbook in desktop Excel when you need to manage those breaks directly.

Set up printing before adding breaks

Manual breaks are easier to manage after you decide what should be printed. On the Page Layout tab, use Orientation to choose portrait or landscape, Size to select the paper size, and Margins to adjust the printable area. Use Page Layout > Print Area > Set Print Area if only a particular range should print. A mistaken print area can make a sheet appear to have strange or excessive page breaks.

For a table whose column headings should appear on each page, use Page Layout > Print Titles and set Rows to repeat at top in the Page Setup dialog. Repeating a heading row is usually better than copying the headings into the data or inserting extra breaks to keep them visible. Check File > Print afterward, because repeated rows use space on every printed page.

Excel also has Scale to Fit controls on the Page Layout tab. Setting a sheet to fit one page wide can prevent columns from being split across pages, but may shrink text. Fitting a whole sheet to a set number of pages can make manual breaks ineffective or change how the content is divided. If exact manual break placement matters, avoid forcing the entire sheet to fit a page count; choose an appropriate paper size and scaling, then inspect the preview.

Why a formula may not match the printed pages

The main limitation is that formulas know worksheet values and positions, not the final physical layout. A formula that labels each 25th record as a new page will not know that one record has wrapped onto three lines, that a chart takes up space, or that a printer has different nonprinting margins. Nor will changing the formula automatically add or move a manual page break.

When the output changes, check these factors before assuming the formula is wrong:

  • Scaling: Fit-to-page settings can change the number of pages and the size of the content.
  • Print area: An old or incomplete print area may exclude rows or columns, or produce unexpected extra pages.
  • Paper and orientation: Letter versus A4, or portrait versus landscape, changes the space available.
  • Row and column dimensions: Wrapped text, hidden rows, and adjusted widths affect pagination.
  • Printer selection: Printer drivers can report different printable areas, so pagination may change between devices.

After correcting those settings, recheck Page Break Preview. A print preview is a more dependable guide to the output than a helper column or a visual guess from the normal worksheet grid.

Alternatives when page breaks need to change repeatedly

If the report always has the same number of records per section, a helper column can make the intended grouping visible, while manual breaks provide the actual print control. For a recurring report where page boundaries must be created automatically from rules, a VBA macro can add breaks through Excel’s page-break features. That is automation, not a worksheet formula; it requires macro-enabled desktop Excel and should be developed for the workbook’s particular layout.

Another option is to redesign the report so the data naturally falls into printable sections. Separate worksheets for distinct report sections, a repeated title row, or a carefully defined print area can be simpler to maintain than many manual breaks. If the objective is to distribute data rather than produce a fixed paper layout, exporting or sharing the table may be more practical than trying to make formulas predict pagination.

Use the simplest method that matches the need: a formula for categorizing records, a manual break for a stable print boundary, and a macro only when a repeatable rule must actively alter print layout.

Frequently Asked Questions

Can I insert a page break with an Excel formula?
No. Worksheet formulas calculate cell results; they cannot insert or remove print page breaks. Use Page Layout > Breaks in desktop Excel, or use a macro if a workbook needs automated page-break changes.

Is there a PAGE function in Excel?
There is no standard worksheet function that returns the printed page number for a cell. Functions such as ROW can report a worksheet row number, but they cannot determine final pagination from paper size, scaling, margins, and other print settings.

How do I start a new printed page after a particular row?
Select a cell in the row that should begin the next page, then choose Page Layout > Breaks > Insert Page Break. Excel places a horizontal break above that row. Confirm the result in View > Page Break Preview.

Why did my page breaks move?
Excel recalculates automatic breaks when the worksheet or print setup changes. Column widths, row heights, scaling, paper size, margins, print area, and printer selection can all affect pagination. Recheck the print preview after changing any of them.

Can a formula start a new page every 25 rows?
A formula can label each group of 25 rows, but it cannot make those groups print on separate pages. Add manual breaks at the matching rows and check the preview; variable row heights or print settings may mean 25 records do not fit on one page.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.