Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Repeat Rows Except Last Page: Fix

· 5 min read · Home Tech

In this article
  1. Why Excel Repeats Rows on Every Page
  2. How to Achieve "Repeat Except Last Page"
  3. Common Problems and Misconceptions
  4. How to Choose the Right Method
  5. Alternatives to Repeating Rows
  6. Frequently Asked Questions

To repeat header rows on every printed page in Excel except the last one, you can't do it directly with the built-in "Print Titles" feature—that applies to all pages. The workaround is to use a custom page break or a separate print area for the last page, or to manually set the print titles and then adjust the page setup for the final page.

Why Excel Repeats Rows on Every Page

Excel's "Print Titles" feature (Page Layout > Print Titles) lets you designate specific rows (and columns) to repeat at the top of each printed page. This is extremely useful for multi-page reports where you want column headers to appear on every sheet. However, the feature is global—it applies to the entire print job. There is no built-in option to say "repeat these rows on all pages except the last one."

The reason is that Excel treats the print area as a single continuous range. When you set print titles, they are inserted into the page layout for every page that contains data from that range. The last page is just another page in that sequence, so it gets the same treatment.

How to Achieve "Repeat Except Last Page"

While there's no one-click solution, you can achieve the desired output by splitting your print job into two parts: one for the main body (with repeated headers) and one for the final page (without them). Here are three reliable methods:

Method 1: Separate Print Area for the Last Page

  1. Identify the row where the last page begins. You can see page breaks by going to View > Page Break Preview.
  2. Select the rows that make up the last page (e.g., rows 50–60).
  3. Go to Page Layout > Print Area > Set Print Area. This sets a separate print area for just those rows.
  4. Now, go to Page Layout > Print Titles and clear the "Rows to repeat at top" field (or set it to none).
  5. Print the main body first (select the main range and set its print area), then print the last page separately.

This method requires you to print the report in two steps, but it gives you full control over each part.

Method 2: Use a Custom Page Break

  1. In Page Break Preview, drag the horizontal page break so that the last page contains only the rows you want.
  2. Set your print titles as usual.
  3. Before printing, temporarily hide the rows that are on the last page, then print the main body. Unhide them and print the last page separately.

This is more manual and error-prone, but it works if you only need to do this occasionally.

Method 3: Use a Macro (VBA)

If you need to do this regularly, a simple macro can automate the process. The macro would:

  • Determine the total number of pages based on the current print area.
  • Set the print titles for the main body.
  • Print the main body (all pages except the last).
  • Then, temporarily clear the print titles and print the last page only.

This is the most efficient for repetitive tasks, but it requires enabling macros and some basic VBA knowledge.

Common Problems and Misconceptions

A common misconception is that you can use a different print title for the last page by inserting a manual page break. Actually, manual page breaks don't change how print titles apply—they still appear on every page. Another issue is that if you set a print area for the last page, the page numbering might restart. To avoid that, you can set the "First page number" in Page Setup to the correct starting number.

Also, be aware that if you have a footer with page numbers, those will still show on all pages, including the last one. You cannot exclude the last page from footers either without splitting the print job.

How to Choose the Right Method

Consider your needs:

  • One-time report: Use Method 1 (separate print area) for simplicity.
  • Recurring reports: Use a macro (Method 3) to save time.
  • No macro allowed: Use Method 2 (hiding rows) if you're comfortable with manual steps.

If you're printing to PDF, you can also print the entire document to PDF, then use a PDF editor to remove the header from the last page—but that's a separate tool.

Alternatives to Repeating Rows

If your goal is to have the last page look different (e.g., no header), consider these alternatives:

  • Use a separate worksheet for the summary page and print it separately.
  • Adjust the page breaks so the last page is blank—not practical for most reports.
  • Use Excel's "Page Setup" to set different margins or scaling for the last page by splitting the print job.

None of these are as elegant as a built-in feature, but they work.

Frequently Asked Questions

Can I set print titles to only apply to certain pages?

No, Excel's print titles are global. There's no built-in way to exclude a specific page. You must split the print job or use a macro.

Why does my last page have extra blank rows?

This often happens when the print area includes extra rows that are empty. Check the print area (Page Layout > Print Area > Set Print Area) and adjust it to exclude those rows.

How do I stop repeating rows on the last page when printing to PDF?

You can use the same methods: print the main body to PDF, then print the last page separately to a second PDF, and combine them with a PDF tool. Or use a macro that prints to PDF in two steps.

Does the page break preview affect print titles?

No, page breaks just determine where pages split. Print titles are applied independently and will appear on every page regardless of where breaks are.

Can I use a formula to conditionally repeat rows?

No, print titles are a page setup property, not a formula. You cannot conditionally apply them based on page number.