Freeze header rows and columns in Excel
Technical Terrence · November 12, 2026
When a list is longer than the window, the header row scrolls off the screen and it’s easy to enter data in the wrong column. Freeze Panes keeps those headers visible.
- Select the cell below the rows you want to keep and to the right of the columns you want to keep. To freeze the top row and the first column, select cell B2.
- Go to the View tab > Freeze Panes. In desktop Excel, choose Freeze Panes again. In Excel for the web, the same command is labeled Freeze at selection.
- To freeze only the top row or only the first column, use Freeze Top Row or Freeze First Column in that same menu. Excel for the web may label those Top Row and First Column.
A thin line shows where the freeze starts. Scroll to confirm the headers stay put.
To turn it off, go to View > Freeze Panes > Unfreeze Panes. You can’t add a second freeze in the same sheet; unfreeze first, then set it again.
This only affects how you view the sheet. It doesn’t lock cells from editing. Use Protect Sheet if you need that.
Last updated: November 22, 2026
Sources checked
- Freeze panes to lock rows and columns
- See tips for Excel for the web (this page still says View > Freeze Panes > Freeze Panes; the current Excel for the web menu labels that command Freeze at selection)