Freeze rows in Excel to keep headers visible while you scroll

Use Excel’s View tab and the Freeze Panes menu to lock the top row, first column, or any number of rows so they stay visible while you scroll.

What the video covers

Shows how to use the View tab Freeze Panes options to lock the top row, the first column, or a custom set of rows in Microsoft Excel.

Watch the video on YouTube

Step-by-step instructions

  1. Open the workbook and sheet that needs a locked header row.
    Make sure you’re viewing the worksheet in a normal sheet view and not actively editing a cell (press Enter or Esc to exit edit mode).
  2. Open the View tab and locate the Freeze Panes menu.
    On the ribbon’s View tab, find the Freeze Panes control and click it to reveal the drop-down options.
  3. Freeze the top row (common for headers).
    Choose the Freeze Top Row option to lock the first worksheet row so it remains visible when you scroll down.
  4. Freeze the first column (if needed).
    Choose the Freeze First Column option to lock the leftmost column so it stays visible when you scroll right.
  5. Freeze multiple rows or a specific set of rows.
    Select the row immediately below the last row you want to lock, open the Freeze Panes menu, and choose Freeze Panes. This locks all rows above your selected row.
  6. Unfreeze panes when you no longer need them.
    Open the Freeze Panes menu and choose the Unfreeze Panes option to remove any row/column locks and return to normal scrolling.

Watch the video

Video thumbnail for Freeze rows in Excel to keep headers visible while you scroll Play tutorial

Watch on YouTube

Why it matters

Freezing rows prevents header or key rows from scrolling out of view, making long spreadsheets easier to read and work with.

Check your result

After applying a Freeze Panes option, scroll down (or right) and confirm the chosen row(s) remain visible while other cells move.

Troubleshooting

If Freeze Panes doesn’t work or the options are unavailable, try these checks: ensure the sheet is not in a view mode that disables freezing (e.g., certain page layout modes), exit cell edit mode before using the menu, and confirm the sheet isn’t protected in a way that restricts layout changes. If only the top row or first column are freezing incorrectly, remove any existing freeze first then reapply the correct option.