To lock headings in Excel while scrolling, use the Freeze Panes feature: select the cell just below and to the right of the rows and columns you want to keep visible, then go to View > Freeze Panes > Freeze Panes. This keeps your header row (and optionally your first column) on screen as you scroll through the rest of the sheet.

What You'll Need

  • Microsoft Excel on Windows, macOS, or Excel for the web (the steps are nearly identical across versions; menu labels may differ slightly by version, device, or region).
  • A worksheet with at least one header row or column you want to keep visible.

Step-by-Step

  1. Open your Excel workbook and go to the worksheet that has the headings you want to lock.
  2. Decide what to freeze. To freeze only the top row, you will select the row below it. To freeze only the first column, select the column to its right. To freeze both, select the cell that is one row below and one column to the right of your headings.
  3. Click the cell at the intersection described above. For example, if row 1 contains your headings and column A contains labels, click cell B2. If only row 1 has headings, click cell A2.
  4. On the ribbon, click the View tab.
  5. In the Window group, click Freeze Panes.
  6. From the dropdown, choose Freeze Panes. (The options Freeze Top Row and Freeze First Column are shortcuts that freeze only those, but they ignore your current selection.)
  7. Scroll down or to the right. The frozen rows and columns stay in place while the rest of the sheet moves.
  8. To remove the lock later, go back to View > Freeze Panes > Unfreeze Panes.

Common Mistakes

  • Selecting the header row itself instead of the row below it. If you select row 1 and then choose Freeze Panes, Excel freezes everything above the selection (nothing) or behaves unexpectedly. Always select the cell just below and to the right of what you want frozen.
  • Using Freeze Top Row when you need both row and column frozen. That shortcut freezes only the top row and ignores your selection. Use the main Freeze Panes option for combined freezes.
  • Forgetting that freeze panes apply per worksheet. Freezing on one sheet does not carry over to others. Repeat the steps on each sheet where you need locked headings.
  • Expecting frozen panes to print. Freeze panes affect only the on-screen view. To repeat headings on printed pages, use Page Layout > Print Titles instead.
  • Trying to freeze in Excel for the web on a phone or tablet. Freeze Panes is available in the desktop apps and in Excel for the web on a computer, but the mobile Excel app has limited support. If the option is missing, use a desktop browser or the desktop app.

Tips

  • If you want to freeze multiple rows, select the cell in column A that is one row below the last row you want frozen. For example, to freeze rows 1–3, select cell A4, then choose Freeze Panes.
  • To freeze both a header row and a label column, select the cell one row below the header and one column to the right of the label column, then choose Freeze Panes.
  • Frozen panes show a thin black line between the frozen and scrollable areas. If you do not see that line, the freeze did not apply.
  • You can still edit cells in the frozen area; freezing only affects scrolling, not protection. To prevent changes, use Review > Protect Sheet separately.
  • If you need headings repeated on every printed page, set Print Titles under Page Layout > Print Titles, which is different from freezing panes.

Troubleshooting

If the headings still scroll away, first check whether Freeze Panes is actually active: go to View and see whether the button says Unfreeze Panes. If it does, the freeze is on; if not, repeat the steps and make sure you selected the correct cell before clicking Freeze Panes.

If the Freeze Panes option is greyed out, the worksheet may be in a view that does not support it, such as Page Layout view. Switch to Normal view (View > Normal) and try again. Also check that you are not in cell edit mode; press Enter or Esc to exit editing.

If only part of what you expected is frozen, you likely used Freeze Top Row or Freeze First Column instead of Freeze Panes. Unfreeze, select the correct cell, and choose Freeze Panes.

If the freeze seems to disappear after reopening the file, note that freeze panes are saved with the workbook. If it is still missing, the file may have been saved in a format that does not retain the setting, or the sheet may have been changed. Reapply the freeze and save again.

If you are on Excel for the web and cannot find Freeze Panes, try a desktop browser or the desktop app; the mobile app has limited support for this feature.

Frequently Asked Questions

Can I freeze more than one row?

Yes. Select the cell in column A that is one row below the last row you want frozen, then choose View > Freeze Panes > Freeze Panes. For example, to freeze rows 1–3, select A4.

Does freezing panes affect printing?

No. Freeze panes only change the on-screen view. To repeat headings on printed pages, use Page Layout > Print Titles.

Can I freeze a column and a row at the same time?

Yes. Select the cell that is one row below your header row and one column to the right of your label column, then choose Freeze Panes.

Why is Freeze Panes greyed out?

It is often unavailable in Page Layout view or while editing a cell. Switch to Normal view and press Enter or Esc, then try again.

Does freezing panes work in Excel for the web?

Yes, in Excel for the web on a computer. The mobile Excel app has limited support, so use a desktop browser or the desktop app if the option is missing.

How do I remove the freeze?

Go to View > Freeze Panes > Unfreeze Panes. This removes the freeze from the current worksheet only.