If Excel won't freeze the rows you selected, the usual cause is that you are in cell edit mode, the sheet is protected, or you picked a cell in the wrong position. The fix is to press Esc to leave edit mode, unprotect the sheet if needed, and then select the cell just below the rows you want to keep visible before choosing Freeze Panes. This guide walks through the exact steps, common mistakes, and troubleshooting so you can lock rows in place and scroll without losing your headers.
What You'll Need
- Excel for Windows, Mac, or Excel for the web (the Freeze Panes command is in the same place across these versions, though labels can differ slightly by version, device, or region).
- A worksheet with data and a clear idea of which rows should stay visible while you scroll.
- Edit access to the file — if the sheet is protected or the workbook is read-only, you cannot change freeze panes until that is resolved.
Step-by-Step
- Exit any cell edit mode. If you are typing inside a cell or a formula bar is active, press Esc. Excel disables the Freeze Panes command while you are editing, so this is the first thing to check.
- Select the cell just below the rows you want frozen. To freeze rows 1 through 3, click cell A4. To freeze only row 1, click A2. Do not select the entire row or a range — select a single cell. The freeze line is drawn above the selected cell, so selecting the wrong cell is the most common reason the command appears to do nothing.
- Go to the View tab on the ribbon. In the Window group, click Freeze Panes. If you see Unfreeze Panes instead, something is already frozen; click Unfreeze Panes first, then repeat the selection and freeze again.
- Choose Freeze Panes from the dropdown. The other two options, Freeze Top Row and Freeze First Column, are shortcuts that ignore your selection. If you need a custom split, use Freeze Panes.
- Confirm the freeze line. A thin black line should appear below the last frozen row. Scroll down — the frozen rows stay visible while the rest of the sheet moves.
- Save the workbook. Freeze panes are saved with the file, so the setting persists when you reopen it. If you are working in Excel for the web, the freeze is saved automatically.
Common Mistakes
- Selecting the rows you want frozen instead of the cell below them. If you highlight rows 1–3 and then click Freeze Panes, Excel freezes above the active cell inside that selection, which may not be what you intended. Always click the first cell of the scrolling area.
- Trying to freeze while editing a cell. The command is greyed out. Press Esc or Enter to commit the edit first.
- Using Freeze Top Row when you need multiple rows. That shortcut only freezes row 1. For two or more rows, use the main Freeze Panes option.
- Forgetting the sheet is protected. If the Freeze Panes button is disabled and you are not editing, check Review > Protect Sheet. You need to unprotect the sheet (with the password, if one was set) before freezing.
- Expecting freeze panes to work in Page Layout view. Freeze panes apply in Normal view. Switch back to Normal view from the View tab if the line does not appear.
Tips
- Freeze panes works per worksheet, not per workbook. If you switch tabs, you may need to set it again on each sheet.
- To freeze both rows and columns, select the cell below the rows and to the right of the columns you want locked. For example, to freeze rows 1–2 and column A, select B3.
- If you only need the header row visible while scrolling, Freeze Top Row is faster than selecting a cell.
- Use Split instead of Freeze Panes if you want to scroll two parts of the same sheet independently. Split is on the same View tab.
- On a Mac, the View tab and Freeze Panes menu are in the same place, but the ribbon may look slightly different depending on your Excel version.
Troubleshooting
If the freeze line does not appear or the rows still scroll away, work through these checks in order:
- Press Esc and try again. A hidden edit mode is the most frequent cause. Click a single cell, then go back to View > Freeze Panes.
- Check for an existing freeze. If the menu shows Unfreeze Panes, click it, then reapply the freeze with the correct cell selected.
- Unprotect the sheet. Go to Review > Unprotect Sheet. If you do not have the password, ask the file owner; there is no built-in bypass.
- Switch to Normal view. View > Normal. Freeze panes are not visible in Page Layout or Page Break Preview.
- Make sure the workbook is not read-only. If the title bar says Read-Only, save a copy or ask for edit permission, then reopen and freeze.
- Test in a new worksheet. If freezing works there, the original sheet may have a corrupted view setting. Copy your data to a new sheet and set the freeze again.
- Update Excel. If the command is missing entirely, install the latest updates from your Microsoft account or the app store, then restart Excel.
Frequently Asked Questions
Why is Freeze Panes greyed out?
You are likely editing a cell, the sheet is protected, or the workbook is read-only. Press Esc, unprotect the sheet from the Review tab, or save an editable copy.
Can I freeze more than one row?
Yes. Select the cell immediately below the last row you want frozen, then choose View > Freeze Panes. For example, select A5 to freeze rows 1–4.
Does freezing rows affect printing?
No. Freeze panes only change how the sheet scrolls on screen. To repeat rows on every printed page, use Page Layout > Print Titles.
Why does the freeze line disappear after I reopen the file?
The freeze may not have been saved, or the file was opened in a view that does not show it. Save the workbook after freezing, and open it in Normal view.
Can I freeze rows in Excel for the web?
Yes. Select the cell below the rows you want frozen, then go to View > Freeze Panes. The option is in the same place as the desktop version.
What is the difference between Freeze Panes and Split?
Freeze Panes keeps rows or columns visible while you scroll. Split divides the window into separate scrollable panes, which is useful for comparing distant parts of the same sheet.