Smart Systems for Home

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

How to Lock a Heading in Excel: Freeze Panes Guide

· 6 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

To lock a heading in Excel, use the Freeze Panes feature: click the row below your heading (or the cell just below and to the right of it), then go to View > Freeze Panes > Freeze Panes. This keeps the heading visible while you scroll. The exact menu labels can differ slightly by Excel version, device, or region, but the feature is present in Excel for Windows, Mac, and the web app.

What You'll Need

  • Excel for Windows, Mac, or Excel for the web (the steps below use the desktop ribbon; the web app has the same View tab).
  • A worksheet with a heading row at the top and/or a heading column on the left.
  • No special permissions — Freeze Panes works in any normal workbook.

Step-by-Step

  1. Decide what to lock. To lock only the top heading row, you will select the first data row (row 2). To lock a heading row and a left-hand label column, select the cell that is one row below and one column to the right of the headings (for example, B2 if row 1 and column A are headings). To lock only a left column, select the first data cell in that column's right neighbour (for example, B1).
  2. Click that cell. Excel freezes everything above and to the left of the selected cell. Selecting row 1 instead of row 2 is the most common cause of a heading that still scrolls away.
  3. Go to the View tab on the ribbon. In Excel for Windows and Mac, the View tab is in the top ribbon. In Excel for the web, it is also on the ribbon.
  4. Click Freeze Panes. A small dropdown opens with three options: Freeze Panes, Freeze Top Row, and Freeze First Column.
  5. Choose Freeze Panes. This applies the freeze based on your selected cell. If you only need the top row locked, you can instead choose Freeze Top Row — it does the same thing without needing to select row 2 first.
  6. Verify it worked. Scroll down (and right, if you froze a column). The heading should stay in place while the data moves. A thin grey line appears between the frozen and scrolling areas.
  7. To remove the lock, return to View > Freeze Panes and click Unfreeze Panes. The option changes label once a freeze is active.

Common Mistakes

  • Selecting the heading row instead of the row below it. If you select row 1 and choose Freeze Panes, only row 1 is frozen — which is correct — but if you select a cell inside the heading row and expect the heading plus data to lock, it will not. Always select the first cell of the scrolling area.
  • Freezing the wrong column. Selecting A2 freezes column A and row 1. If you only wanted the top row, select B2 or use Freeze Top Row.
  • Expecting the heading to repeat on printed pages. Freeze Panes only affects on-screen scrolling. For printing, use Page Layout > Print Titles > Rows to repeat at top.
  • Trying to freeze inside a table. If your data is formatted as an Excel Table, the Freeze Panes command still works, but the table's own header row already stays visible when you scroll inside the table. Freezing panes on top of that can create two header rows on screen.
  • Forgetting that freeze applies to the whole worksheet. It is not per-selection or per-view; every user who opens the workbook sees the same frozen panes unless they change it.

Tips

  • Use Freeze Top Row when you only need row 1 locked — it is one click and avoids selection errors.
  • Freeze both a row and a column by selecting the cell diagonally below and right of both headings (for example, B2).
  • If you need more than one heading row locked (for example, rows 1–3), select the first data row (row 4) and choose Freeze Panes.
  • Split Panes (View > Split) is a different feature: it creates two independently scrolling areas, which is useful for comparing distant rows but not for keeping a heading visible.
  • On a Mac, the View tab and Freeze Panes work the same way; the ribbon layout may look slightly different.
  • Freeze Panes settings are saved with the workbook, so check them before sharing a file if you do not want recipients to see a frozen heading.

Troubleshooting

  • The heading still scrolls away. You probably selected a cell inside the heading area. Click the first cell of the data region (usually A2 or B2) and reapply Freeze Panes.
  • The Freeze Panes option is greyed out. This can happen when the worksheet is protected or when the workbook is in a view that does not support freezing (for example, Page Layout view). Switch to Normal view (View > Normal) and unprotect the sheet if you have permission (Review > Unprotect Sheet).
  • Only part of the heading is frozen. Freeze Panes freezes everything above and left of the selected cell. If you selected B2, both row 1 and column A freeze. To freeze only the row, select A2; to freeze only the column, select B1.
  • The freeze line is in the wrong place. Click Unfreeze Panes, then reselect the correct cell and freeze again. You cannot drag the freeze line.
  • Freeze Panes is missing from the ribbon. In Excel for the web, the View tab includes Freeze Panes; if you are in Editing view in a browser, some commands may be unavailable. Open the workbook in the desktop app for full ribbon access.
  • Printing does not repeat the heading. That is a separate setting: Page Layout > Print Titles > Rows to repeat at top. Freeze Panes does not affect print output.

Frequently Asked Questions

Does freezing a heading affect other people who open the file?

Yes. Freeze Panes is saved in the workbook, so anyone who opens it sees the same frozen rows and columns unless they unfreeze them.

Can I freeze more than one row?

Yes. Select the first row below all the headings you want locked, then choose Freeze Panes. For example, select row 4 to freeze rows 1–3.

What is the difference between Freeze Panes and Split?

Freeze Panes keeps the heading visible while you scroll. Split creates two or four independent scrolling panes, which is useful for viewing distant parts of a sheet at once but does not lock a heading in place.

Will Freeze Panes repeat my heading on every printed page?

No. Use Page Layout > Print Titles and set Rows to repeat at top for printing.

Can I freeze a heading in Excel for the web?

Yes. The View tab in Excel for the web includes Freeze Panes with the same options. The exact label wording can vary slightly by version.

Why is my frozen heading showing a second header row?

If your data is formatted as an Excel Table, the table header stays visible when you scroll inside the table. Freezing panes as well can duplicate the header on screen. Unfreeze panes or convert the table to a normal range if that is not what you want.