If Freeze Panes is grayed out in Excel for Microsoft 365 on Windows, first press Esc or Enter to exit cell-edit mode, then switch to View > Normal and try again. If the command is still unavailable, check whether the sheet is grouped with other sheets or the workbook is in a restricted viewing state.
What Freeze Panes does—and what it does not do
Freeze Panes keeps selected rows or columns visible while you scroll through the rest of a worksheet. For example, freezing the top row keeps column headings on screen as you move down a long list. It changes how the sheet is displayed; it does not lock cells against editing, protect data, or create a permanent split in the worksheet.
The selection determines what stays visible. To freeze the first two rows and the first column, select cell B3, then choose View > Freeze Panes > Freeze Panes. Excel freezes the rows above the selected cell and the columns to its left. To keep only the top row visible, use View > Freeze Panes > Freeze Top Row. To keep only the first column visible, choose Freeze First Column from the same menu.
Freeze settings apply to the current worksheet view, so another sheet in the same workbook can have different frozen rows or columns. You can remove the setting with View > Freeze Panes > Unfreeze Panes. This distinction matters when diagnosing a gray command: the problem is usually a temporary mode or interface restriction, not damaged worksheet data.
Start with the fastest checks
Try these checks in order. Each one takes only a moment and can identify a temporary reason that Excel will not accept a view command:
- Finish or cancel editing. If the insertion cursor is inside a cell or the formula bar, press Enter to accept the edit or Esc to cancel it. Then reopen the View tab. Commands that affect the worksheet window can be unavailable while Excel is editing a cell.
- Return to Normal view. Select View > Normal. If you were using Page Layout or another view, check whether Freeze Panes becomes available in Normal view.
- Check for grouped sheets. Look at the sheet tabs. If several are selected or highlighted together, right-click a selected tab and choose Ungroup Sheets. Grouping is useful for entering the same value on multiple sheets, but it can restrict worksheet-specific actions.
- Click a worksheet cell. Make sure the workbook window is active and a normal cell is selected, rather than a chart, text box, or another object. Then try the command again.
- Check for a restricted-view banner. If the file opened in Protected View, only leave that state if you trust the file and its source. Do not enable editing just to test a command in a file you do not trust.
Why cell-edit mode disables the command
Excel treats typing into a cell differently from selecting a cell. While you are entering a value or formula, keystrokes belong to that edit, so Excel temporarily limits commands that would change the worksheet or its view. This can happen after pressing F2, double-clicking a cell, or clicking in the formula bar. A visible text cursor, or an unfinished formula displayed in the formula bar, is a useful clue.
Press Enter if the edit is correct. Press Esc if you want to discard the unfinished change. If you are unsure, copy the text you have typed before canceling. Once Excel returns to the ordinary selection state, open View > Freeze Panes again. You do not need to close the workbook or restart Excel for this common issue.
Switch out of a view that restricts window commands
In Excel for Windows, choose View > Normal and inspect the Freeze Panes menu again. Page Layout view is designed to show how a worksheet will appear on printed pages, while Normal view is the standard workspace for scrolling and arranging a sheet. Some window commands may not be available in every view or window arrangement, so Normal is a sensible baseline for troubleshooting.
Also check whether the workbook has more than one window open. If you used View > New Window, you may be looking at a separate window for the same workbook. Click the window you intend to work in and confirm the active worksheet before changing its view. If a command appears missing rather than gray, maximize the Excel window or expand the ribbon; a narrow window can collapse ribbon controls into smaller menus.
Ungroup worksheets before changing one sheet
When multiple sheet tabs are selected, Excel is in group mode. Changes made to cells can affect every selected sheet, which is why grouped sheets deserve care. Depending on the command and workbook state, grouping can also make worksheet-level controls unavailable or confusing. To leave group mode, right-click one of the selected tabs and choose Ungroup Sheets. You can also click a single sheet tab, taking care not to hold Ctrl or Shift while selecting it.
Before changing anything, check that the intended worksheet is active. A useful example is a workbook with January, February, and March tabs: selecting all three to apply a common format may leave them grouped afterward. If you then want to freeze headings only on January, ungroup the sheets first, select January, and apply the freeze there. Confirm the other sheets separately if they need the same view.
Does worksheet or workbook protection cause it?
Protection is not the first explanation to assume. Worksheet protection mainly controls which cells and actions are allowed; Freeze Panes is a display setting, so protection does not automatically mean the data or freeze setting is broken. Likewise, read-only access commonly prevents saving edits but does not by itself explain every unavailable view command.
If the sheet is protected and the command remains gray after the basic checks, consider whether the file has other restrictions or is being opened in a special mode. Ask the workbook owner before removing protection or changing sharing settings. Do not unprotect a sheet by guessing passwords or alter a controlled workbook simply to make a display change. If you have permission, the owner can confirm which restrictions are intentional.
Choose the right freeze option after it becomes available
A frequent source of confusion is selecting the wrong cell. Excel freezes everything above and to the left of the active cell, not the cell itself. Suppose row 1 contains a report title, row 2 contains column headings, and data begins in row 3. Select A3 and choose Freeze Panes to keep both top rows visible. If you select B3 instead, Excel keeps rows 1 and 2 plus column A visible.
- For a single heading row, choose View > Freeze Panes > Freeze Top Row.
- For the first column, choose View > Freeze Panes > Freeze First Column.
- For a custom combination, select the cell immediately below the rows and immediately to the right of the columns to keep visible, then choose Freeze Panes.
- To change an existing arrangement, choose Unfreeze Panes first, select the new cell, and apply the desired freeze again.
Freeze Panes is different from Split. Split divides the worksheet window into independently scrollable sections; freezing keeps the chosen edge rows or columns in place while the remaining area scrolls. If you see movable divider bars or separate scrolling regions, you may be using Split rather than Freeze Panes. Remove or adjust the split from the View tab before setting up the view you actually want.
Excel for Mac and Excel for the web
In Excel for Mac, use the View tab or the View menu to find Freeze Panes; the exact ribbon layout can vary with the window size and Excel build. The same basic selection rule applies: select the cell below and to the right of the area to keep visible. Mac keyboards do not use the Windows Esc and Enter keys in exactly the same physical layout, but those keys generally perform the same cancel-or-accept action during cell editing. If a command is unavailable, leave editing mode and check the active sheet and view.
In Excel for the web, use the View tab and its Freeze Panes controls. The browser version has a more compact interface, and some desktop window features may be presented differently. If a workbook opens in the browser with limited controls, confirm that you are in the intended editing experience and have permission to make changes. Opening the file in the desktop app can help distinguish a browser-interface limitation from a workbook-specific issue.
Frequently Asked Questions
Why is Freeze Panes grayed out even though I selected a cell?
Excel may still be editing a cell, the workbook may be in a view that restricts the command, or multiple sheets may be grouped. Press Enter or Esc, choose View > Normal, ungroup the sheets, and retry.
Can I freeze more than one row or column?
Yes. Select the cell immediately below the rows and to the right of the columns you want to keep visible, then choose View > Freeze Panes > Freeze Panes. For example, select C4 to keep rows 1–3 and columns A–B visible.
Does freezing panes protect cells from editing?
No. Freezing affects scrolling only. To restrict changes to cells, use worksheet protection and configure the permitted actions separately.
How do I remove frozen rows or columns?
Choose View > Freeze Panes > Unfreeze Panes. If the command is gray, first leave cell-edit mode and confirm that the correct workbook window and sheet are active.
Why do headings still move when I scroll?
The wrong cell may have been selected when Freeze Panes was applied, or the sheet may not have a freeze setting. Choose Unfreeze Panes, select the correct boundary cell, and apply the command again. The top-row option works only for the first row.
When the command is still unavailable
If the command remains gray after these checks, save any permitted work, close and reopen the workbook, and test the same steps in a new blank workbook. If Freeze Panes works in the blank file, the original workbook may have a particular view, restriction, or file condition; ask its owner or your Microsoft 365 administrator before changing controls. If it is unavailable in every workbook, restart Excel and check for Office updates or organizational policy restrictions. Avoid deleting sheets, removing protection, or changing workbook structure as a first-line fix: none of those actions is needed for ordinary pane freezing.
Related
- Excel Shortcut Keys for Switching Between Worksheets
- Excel Shortcut Keys for the Next Sheet in a Workbook
- Excel Named Range Data Validation List: Setup and Fixes
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Delete a Blank Page in Word 365 Without Losing TextTo delete a blank page in Word 365, show formatting marks with Ctrl+Shift+8 on Windows, find the extra…
- Excel Data Table Image: Convert Pictures to CellsTo turn a picture of a table into editable Excel data in Microsoft 365 for Windows, choose Data…
- How to Archive Emails in Outlook Desktop: Step-by-StepTo archive an email in Outlook desktop, select it and choose Home > Archive. Outlook removes the message…
- How to Compare Two Word Documents in Microsoft WordTo compare two Word documents, open the desktop app and choose Review > Compare > Compare on Windows.…
- How to Rank in Excel From Top to BottomTo rank values from highest to lowest in Excel, enter =RANK.EQ(B2,$B$2:$B$10,0) beside the first value, then fill the…
- Google Sheets GOOGLEFINANCE: Prices, History, and LimitsGoogle Sheets’ GOOGLEFINANCE function retrieves supported market information, including current quote data and historical prices, directly into a…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.