How to Repeat the File Name on Every Page in Excel for Office 365

A printed spreadsheet is a difficult thing to customize properly. Whether you need lines between cells, you need it centered on the page, or you need to repeat a row on every page, there are a lot of options to consider.

But perhaps one of the biggest challenges when printing in Excel is ensuring that multi-page spreadsheets are easy to identify should the pages become separated.

A lot of spreadsheets look very similar to one another, and a rogue page of one of those spreadsheets could be difficult to identify. Our guide below will show you how to include your Excel file name at the top of every page to help solve this problem.

Printing the file name is useful for identifying documents, but learning how to fit all columns on one page in Excel can save you some paper and ink.

How to Include the Filename in the Header or Footer in Excel

The steps in this article were performed in Microsoft Excel for Office 365, but will work in most recent versions of Excel as well. I am going to be adding the filename to the header in the steps below, but the process is nearly identical if you want to add the filename to the footer.

Step 1: Open your file in Excel.

Step 2: Choose the Page Layout tab.

select the page layout tab

Step 3: Click the small Page Setup button at the bottom–right corner of the Page Setup section of the ribbon.

click the page setup button

Step 4: Choose the Header/Footer tab at the top of the window.

choose the header and footer tab

Step 5: Click the Custom Header or Custom Footer button, depending on where you want to place the filename.

select the custom header or custom footer

Step 6: Click inside the part of the header or footer where you want the filename, then click the Insert File Name button.

how to add a filename to each page in excel

Step 7: Click the OK button on each of the open windows to close them and return to the spreadsheet.

file name has been added to header in excel

Now that you know how to repeat the file name on each printed page in Excel for Office 265 you can ensure that the document can be put back together more easily if the pages become separated in the future.

Find out how to repeat the top row of your spreadsheet on every page if you have a row of headers that make it easier to identify the data in your cells.

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy