Freeze Panes in Excel to Lock Rows and Columns

Keep headers visible while you scroll by using Excel’s Freeze Panes. Lock the top row, first column, or any combination of rows/columns so large sheets stay readable.

What the video covers

Show how to use Excel’s Freeze Panes feature to keep rows and/or columns visible while scrolling. Covers freezing the top row, first column, custom panes, checking the result, and common troubleshooting tips.

Watch the video on YouTube

Step-by-step instructions

  1. Open your workbook and the worksheet you want to work with.
    Make sure the data and headers you want to lock are visible.
  2. Decide which rows and/or columns to keep visible.
    To freeze the top row only, choose a top-row option later. To freeze both rows and columns, pick the cell that is directly below the row(s) and to the right of the column(s) you want locked.
  3. Open the View tab and access Freeze Panes.
    On the ribbon, go to the View tab and click the Freeze Panes control to reveal the options.
  4. Choose a freeze option.
    – Freeze Top Row: locks the first worksheet row. – Freeze First Column: locks the first worksheet column. – Freeze Panes (custom): after selecting the cell below/right of what you want locked, choose Freeze Panes to lock all rows above and columns left of that cell.
  5. Verify the result by scrolling.
    Scroll down and/or across. The frozen row(s)/column(s) should remain visible while the rest of the sheet moves.
  6. To remove the freeze, use Unfreeze Panes.
    Open the Freeze Panes control again and select Unfreeze Panes to return to normal scrolling.

Watch the video

Video thumbnail for Freeze Panes in Excel to Lock Rows and Columns Play tutorial

Watch on YouTube

Why it matters

When working with large datasets or wide reports, headers can scroll out of view. Freezing panes keeps important rows or columns locked in place so you don't lose context while navigating the sheet.

Check your result

Scroll the worksheet vertically and horizontally. The selected row(s) and/or column(s) should remain visible while the rest of the sheet moves.

Troubleshooting

If Freeze Panes is unavailable or not working: ensure the sheet is not protected in a way that blocks layout changes; avoid having merged cells intersect the freeze line (unmerge those cells); select the correct cell (freeze uses the active cell to set the split); use Unfreeze Panes first if a previous freeze is already applied.