Page Setup and Printing a Report That Fits
After this lesson you can
- Print any dataset on the intended number of pages
- Repeat headers on every page
- Produce a clean PDF for circulation
Why this matters
Excel's default print behaviour is genuinely bad — it slices data wherever the page happens to end, orphans the last two columns onto page seven, and repeats no headers, so page four is a grid of numbers with no labels. Five settings fix almost all of it, and learning them once means printing stops being a source of embarrassment.
How it works
The five settings
1. Orientation. Landscape for wide data, which is most business tables.
2. Print Area. Excel prints everything by default, including that stray note in AB300. Select what you want → Page Layout → Print Area → Set Print Area.
3. Scaling. The most useful control in the dialog. Page Layout → Scale to Fit:
- Width: 1 page, Height: Automatic — the standard choice. All columns on one page width, as many pages long as needed.
- Avoid "Fit Sheet on One Page" on long data — it shrinks a 250-row report to about 15% and nobody can read it.
4. Print Titles. This is the one that makes a report look professional. Page Layout → Print Titles → Rows to repeat at top: $1:$1. Every page now carries the header row.
For wide reports also set Columns to repeat at left to $A:$A, so names stay visible when the report needs a second page-width.
5. Headers and footers. Page Setup → Header/Footer → Custom Footer.
| Code | Inserts |
|---|---|
&P | Current page number |
&N | Total pages |
&D | Current date |
&F | File name |
&A | Sheet name |
The standard professional footer: &F | &A on the left, Page &P of &N centred, &D on the right.
Do it
Use a dataset with headers in row 1 and at least 60 rows.
- Press Ctrl+P and note the page count and what's wrong. Typically 8–10 pages, split columns, no headers after page 1.
- Select your data range. Page Layout → Print Area → Set Print Area.
- Page Layout → Orientation → Landscape.
- Page Layout → Scale to Fit → Width: 1 page, Height: Automatic.
- Page Layout → Print Titles → Rows to repeat at top: click row 1 → it reads
$1:$1. - In the same dialog, Columns to repeat at left: click column B →
$B:$B. - Page Layout → Sheet Options → tick Print under Gridlines.
- Page Layout → Margins → Narrow.
- Page Setup launcher (the small arrow) → Header/Footer → Custom Footer: left
&F | &A, centrePage &P of &N, right&D. - Margins tab → tick Horizontally under Center on page.
- Press Ctrl+P again. Compare the page count with step 1 — typically 8–10 becomes 4–5. Check that page 3 carries the headers.
Control the page breaks
- View → Page Break Preview. Drag a blue line so a page breaks where you want it.
- To force one: click a row → Page Layout → Breaks → Insert Page Break.
Export a PDF
- File → Export → Create PDF/XPS → Options → Active sheet(s) → Publish.
- Open the PDF and check it. The PDF uses your print settings exactly, so any mistake is faithfully reproduced.
Shortcuts
| Shortcut | What it does | When to use it | Example |
|---|---|---|---|
Ctrl + P | Print preview and settings | Before every print or PDF, without exception | Check the page count and that headers repeat |
Alt + P + I | Print Titles dialog | Setting repeating headers — the setting that matters most | Rows to repeat: $1:$1 |
Alt + P + R + S | Set print area | After selecting the range you actually want | Stops stray cells creating blank pages |
Alt + W + I | Page Break Preview | Dragging page breaks to sensible places | Alt+W+L returns to Normal |
Watch out
| Mistake | What you see | Fix |
|---|---|---|
| No repeating headers | Pages 2 onward are unlabelled columns of numbers | Print Titles → $1:$1 |
| Using "Fit Sheet on One Page" | 2pt text nobody can read | Width: 1 page, Height: Automatic |
| Not setting a print area | Stray cells create blank or junk pages | Set Print Area explicitly |
| Not previewing | You discover the problem after printing 40 copies | Ctrl+P, always |
| Forgetting gridlines | Rows blur together on paper | Sheet Options → Gridlines → Print |
| Assuming settings are workbook-wide | Sheet 2 prints badly after you perfected Sheet 1 | Settings are per sheet — copy the configured sheet |
| Wide reports without repeating columns | Page 5 shows figures with no names attached | Columns to repeat at left |
Practice
Practice
Scenario
Prepare a 60-row HR report for printing and PDF distribution to a leadership team.
Dataset: HR Employee Master
At least 60 rows with headers: EmpID | Name | Department | Designation | DOJ | Location | Gender | CTC | Manager | Status
Your task
- Print preview as-is. Note the page count and list three things wrong with it.
- Set the print area to your data only. Set Landscape. Set Scale to Fit → Width 1 page, Height Automatic.
- Set row 1 to repeat at the top, and column B to repeat at the left.
- Turn on gridline printing and set margins to Narrow.
- Add a footer: file name and sheet on the left,
Page &P of &Ncentred, date on the right. - Centre the report horizontally on the page.
- Preview again. Compare the page count with step 1. Check page 3 carries both the header row and the Name column.
- Open Page Break Preview and drag a break so it doesn't split a department awkwardly.
- Export a PDF and open it to verify the headers repeat.
- Now add a second sheet with the same data and press Ctrl+P. Why is the layout wrong again?
What you should end up with
Step 1: typically 8–10 pages, split columns, headers only on page 1 · Step 7: typically 4–5 pages, headers on every page · Step 10: print settings are stored per worksheet, not per workbook
Quiz
Question 1 of 3 · Multiple choice
