Smart Systems for Home

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

How to Keep Header in Excel: Freeze Panes Guide

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You keep a header visible in Excel by freezing it: select the row just below your header, then open View > Freeze Panes > Freeze Panes. The header row stays pinned to the top of the window and keeps showing while the cells underneath scroll. It works the same in Excel for Microsoft 365, Excel 2024/2021/2019 and Excel on the web. Menu labels can differ slightly by version, device and region, so if you see a slightly different wording, look for the Freeze option on the View tab.

Freezing does not change data, formulas or printing. It only changes what you see on screen, and it is saved with the workbook, so anyone who opens it later sees the same frozen rows. To undo it, choose View > Freeze Panes > Unfreeze Panes.

What You'll Need

  • Excel on Windows, Mac, or Excel for the web (the web version has the same Freeze Panes command on the View tab).
  • The workbook with your header row in place. Headers do not need to be bold or formatted for freezing to work, but formatting makes them easier to spot.
  • About 30 seconds. Nothing is installed and no settings outside the file are changed.
  • A convenience: convert your range into a table with Insert > Table so Excel uses column names automatically. A table gives a different, related behaviour (header buttons stay visible as you scroll within the table), but Freeze Panes is still the tool for pinning rows on screen.

Step-by-Step

  1. Open the worksheet you want to fix. Freeze settings apply per worksheet, not to the whole workbook, so each sheet you want pinned has to be done separately. If you have several tabs, repeat the steps on each one.
  2. Decide what has to stay visible. Usually that is row 1 (the header) or rows 1 and 2 if you have a title row above the header. If you also want the first column (for example a list of names) to stay put while you scroll right, you will freeze columns too.
  3. Click the cell just below and to the right of the rows and columns you want frozen. This is the one step people get wrong. To freeze only row 1, click cell A2. To freeze rows 1 and 2, click A3. To freeze row 1 and column A together, click B2. Excel freezes everything above and to the left of the cell you select.
  4. Go to the View tab on the ribbon. On Windows and Mac, the View tab sits next to Insert and Review in the default layout. On Excel for the web it is in the same place in the ribbon.
  5. Click Freeze Panes, then click the first option, Freeze Panes. The drop-down has three choices: Freeze Panes, Freeze Top Row and Freeze First Column. Picking Freeze Panes uses the selection from step 3 and is the most flexible option. The other two are one-click shortcuts: Freeze Top Row pins row 1 no matter which cell is selected, and Freeze First Column pins column A.
  6. Scroll down to check it worked. A thin grey line appears below the frozen row, and the row heading numbers break their sequence at that point. Scroll a few hundred rows; the header should remain at the top while the data moves.
  7. Save the file with Ctrl+S (Cmd+S on Mac). The freeze state is stored in the workbook, so it is there the next time you open it, and on any computer that opens a recent Excel version.
  8. Adjust if needed. To change what is frozen, choose View > Freeze Panes > Unfreeze Panes, then repeat from step 3 with a different cell selected. Excel will not let you stack two freezes on one sheet, so always unfreeze first.

Freezing rows for printing

Freeze Panes affects only the screen; printed pages are controlled separately. To repeat the header on every printed page, go to Page Layout > Print Titles (in some versions it is under the Page Setup dialog, reachable from Print Titles on the Page Layout tab). In the Rows to repeat at top box, enter the row or rows, for example $1:$1, or click in the box and then click the header row on the sheet. Use Print Preview to confirm the header repeats before you print or export to PDF.

Common Mistakes

  • Selecting the whole row instead of the row below. If you click row 1 and then Freeze Panes, the frozen area starts at row 1 but the header can behave unexpectedly as you scroll. Always click a single cell (A2) rather than the row header.
  • Assuming it applies to every sheet. Freezes are per worksheet. Copying a sheet usually carries the freeze across, but adding a new sheet starts unfrozen.
  • Expecting the header to print. Freezing does nothing for printout; that is Print Titles.
  • Trying to add a second freeze. Excel supports one frozen block per sheet (top rows, left columns, or both). Unfreeze before choosing something new.
  • Freezing the wrong beginning. If your header actually starts at row 3 because rows 1 and 2 hold a title and notes, freeze at A4 (or A3 if only row 1 is a title) so everything from the first header row down stays as data.
  • Confusing it with split windows. The Split option on the View tab divides the window into panes you can scroll separately; it is not a sticky header and does not behave the same after resizing.

Tips

  • Use Freeze Top Row when you only ever need row 1 visible; it saves you counting cells.
  • To freeze several top rows, select the first cell in the row below the last header row. A three-row header means clicking A4.
  • Freeze a column as well when you scroll sideways a lot: select B2 to hold row 1 and column A together.
  • If the file is shared, frozen panes travel with the workbook but are not locked; any editor can unfreeze them.
  • For large imports, turn the header into a table with Insert > Table. Excel then keeps the column names visible through the table header buttons, which is handy when filtering.
  • If you use Excel for the web, freeze settings work there too, though very advanced features of the desktop version may not be present in the browser; check on the desktop if something looks different.

Troubleshooting

The Freeze Panes option is greyed out. This usually means the sheet is protected, the workbook is in a mode that blocks view changes, or you are editing inside a cell. Press Esc to leave edit mode, then check Review > Unprotect Sheet (you will need the password if one was set). If the workbook is read-only, save a copy you can edit.

The header still scrolls away. You likely froze the wrong area. Unfreeze, click A2, and freeze again. If you cannot see any grey line after freezing, the scroll position may already be near the top; scroll down a screen to confirm.

The frozen line appears halfway down the screen. The sheet was probably split earlier, or the window was scrolled before freezing. Choose View > Split to turn split off if it is highlighted, scroll to the top, and freeze again.

The line seems to jump or the layout looks odd after resizing the window. Maximise the Excel window, and if it persists, unfreeze, save, close and reopen the file, then freeze again.

On Excel for the web, the command is missing. Some browsers and older page versions do not show the full View tab options. Try reloading, or open the file in the desktop app, which has the complete feature set.

If that did not work, check whether the row really is row 1, or whether rows above it contain blank or hidden rows. Unhiding rows (select the visible row headings around them and choose Unhide) and then re-freezing at the correct cell usually sets things right.

Frequently Asked Questions

Does freezing a header change the data or formulas?

No. It only affects what is visible on screen. Values, formulas and formatting are untouched.

Can I freeze rows in Google Sheets or does this apply only to Excel?

Google Sheets has its own View menu freeze options, but the steps differ. This guide covers Excel on desktop and the web.

Why can't I freeze two different areas on one sheet?

Excel allows one frozen block per worksheet: top rows, left columns, or both at once. Unfreeze first, then choose a new selection.

How do I make the header print on every page?

Use Page Layout > Print Titles and set the rows to repeat at the top. Freezing only affects the on-screen view.

Will the freeze stay if I email the file?

Yes. The freeze is saved inside the workbook, so anyone opening it in a compatible Excel version sees the same frozen rows, though they can unfreeze it.

Can I freeze the header on a phone?

The Excel mobile apps offer limited view options and do not match the desktop Freeze Panes workflow exactly. For reliable results, do this on a computer or in the browser version.