Excel Floating Header: Freeze Rows & Columns the Easy Way
In this article
Yes, Excel can keep your header row visible while you scroll, and it takes about ten seconds. The official name for this "floating header" is Freeze Panes, found on the View tab. You select the row below your header, click View > Freeze Panes > Freeze Panes, and your header stays pinned at the top of the sheet no matter how far down you scroll. You can freeze columns on the left the same way, or both at once.
What You'll Need
- Excel on Windows or Mac (the desktop version), Excel for the web, or the Excel mobile app; the steps below focus on the desktop version
- A worksheet with a header row (for example, column titles in row 1)
- No add-ins, formulas, or special files are required
Step-by-Step
- Open your workbook in Excel and go to the worksheet where you want the floating header.
- Click the row number directly below your header. If your headers are in row 1, click the 2 on the left edge so the entire row 2 is selected. Freeze Panes freezes everything above and left of your selection, so selecting the row below the header is what pins the header.
- Go to the View tab on the ribbon. Menu labels can differ slightly between Excel versions and platforms, but the Freeze Panes button is on the View tab in all current versions.
- Click Freeze Panes (in the Window group), then choose Freeze Panes from the small drop-down menu.
- Scroll down the sheet. A thin grey line now appears under row 1, and the header stays fixed at the top while the data moves underneath it. That is your floating header.
- To also freeze columns (for example, a Name column in column A along with the header), click the single cell that is below the header row and to the right of the column you want frozen, such as cell B2, then use View > Freeze Panes > Freeze Panes again.
- To freeze only the top row or only the first column, use the other two options in the same drop-down: Freeze Top Row or Freeze First Column. These are quick shortcuts when your headers are exactly in row 1 or column A.
- To remove it later, go back to View > Freeze Panes and click Unfreeze Panes.
In Excel for the web: the same View tab and Freeze Panes drop-down exist, so the steps are identical. In the Excel mobile app: tap a cell, open the ribbon's View or toggle pane (depending on your version) and look for Freeze Panes or Freeze Top Row; if your version does not show it, use the desktop or web version instead.
Common Mistakes
- Selecting the header row itself instead of the row below it. If you select row 1 and freeze, Excel freezes everything above row 1, which is nothing, and your header still scrolls away. Always select the row below the header.
- Using Freeze Top Row when headers span two rows. Freeze Top Row only freezes row 1. For multi-row headers, select the row below the last header row and use the regular Freeze Panes option.
- Expecting Freeze Panes to work in a table's filter dropdowns to move with it. Freezing is a screen feature only; it does not print and does not change the data.
- Freezing while a filter drop-down is open or while editing a cell. Press Enter or Esc first so a cell is not in edit mode.
- Trying to freeze the middle of the sheet. Freeze Panes can only lock the top rows and left columns, never rows or columns in the middle or on the right/bottom edges.
Tips
- Freeze Panes is saved with the workbook, so the floating header will still be there the next time you or a colleague opens the file.
- You can freeze any number of rows, not just one. Selecting row 5 and freezing, for example, keeps rows 1 to 4 visible.
- If your workbook is shared, remember the frozen panes affect everyone's view of that sheet.
- Combine a frozen header with Ctrl+Shift+L to add filter arrows, making long lists much easier to scan.
- For printing, use Page Layout > Print Titles to repeat header rows on every printed page; Freeze Panes alone does not print.
Troubleshooting
- Freeze Panes is greyed out. The worksheet is probably protected. Unprotect it via Review > Unprotect Sheet (you may need the password from whoever protected it), or freeze the panes before protection is applied.
- The Freeze Panes option is missing entirely. You are likely in Page Layout view or another view where it behaves differently. Switch back to Normal view via View > Normal, then try again.
- The header still scrolls away. You probably froze while the wrong row was selected. Click View > Freeze Panes > Unfreeze Panes, select the correct row, and freeze again.
- Excel seems frozen after freezing. A very large frozen area (many rows or columns) leaves little room to scroll. Unfreeze and freeze fewer rows or columns.
- Wrong sheet. Freeze Panes applies per worksheet, not per workbook. Switch to each sheet and freeze it individually.
- It worked before but stopped. The setting is saved per sheet, so if it vanished, someone unfroze it, or you are looking at a different sheet or an older copy of the file.
Frequently Asked Questions
What is the difference between Freeze Top Row and Freeze Panes?
Freeze Top Row is a one-click shortcut that locks only row 1. Freeze Panes locks everything above and to the left of whatever cell or row you selected, so it can handle multiple rows and columns.
Does a frozen header print on every page?
No. Freeze Panes only affects what you see on screen. To repeat headers when printing, set Print Titles under Page Layout > Print Titles > Rows to repeat at top.
Can I freeze both a header row and a column at the same time?
Yes. Click the cell that sits directly below the header row and directly to the right of the column you want locked, then apply View > Freeze Panes > Freeze Panes.
Does Freeze Panes work in Google Sheets too?
Yes, Google Sheets has the same feature under View > Freeze, where you choose how many rows or columns to lock.
Why can't I freeze a row in the middle of my data?
Excel can only lock rows from the top down and columns from the left side. Rows in the middle cannot be frozen.
Is the frozen header visible to others when I share the file?
Yes. The setting is stored in the worksheet, so anyone who opens the file sees the same frozen panes until someone unfreezes them.