Keep Cells Visible While Scrolling in Excel (Freeze Panes)
In this article
To make cells stay on screen while you scroll in Excel, use Freeze Panes: click the cell just below and to the right of the rows and columns you want to keep visible, then go to View > Freeze Panes > Freeze Panes (the button can be labelled just Freeze Panes and the menu wording varies slightly by Excel version, platform and region). Pick cell B2 to lock a single header row and column A; pick A2 to lock only row 1; pick B1 to lock only column A. To undo it, use View > Freeze Panes > Unfreeze Panes. This is available in all modern Excel releases, including Microsoft 365, Excel 2019 and later, and Excel for the web, Windows, Mac, iPad and iPhone. The desktop and web versions offer the full command.
What You'll Need
- A copy of Excel with the spreadsheet you want to adjust, either desktop (Windows or Mac) or Excel for the web. The phone and tablet apps have a reduced set of features but do include freeze options on the current versions.
- A clear idea of which rows and columns should stay visible: usually the top header row and the left identifying column. Decide before you click, because the freeze position depends entirely on where your cursor sits.
- Optionally, a table formatted as an Excel Table (Select data > Insert > Table). Tables handle their own header behaviour when you scroll inside them, but Freeze Panes still applies to the sheet as a whole.
Step-by-Step
- Open the sheet and scroll to the top. Press Ctrl + Home (Windows) or Cmd + Home (Mac) so your view starts at cell A1. Freezing works relative to visible position, so starting in a strange place can hide rows above the current view.
- Decide what should stay put. If row 1 is your header row and column A holds names or dates, you want both locked. If only the headers need to stay, you only lock row 1.
- Click the anchor cell. Everything above and to the left of the cell you select becomes frozen. Select B2 to keep row 1 and column A visible. Select A2 to keep only row 1. Select B1 to keep only column A. Select C3 to freeze rows 1–2 and columns A–B.
- Go to the View tab. On the ribbon, click View. On narrower windows this tab may sit under a Ribbon Display Options menu, so widen the Excel window or use the small chevron at the right end of the tab row.
- Click Freeze Panes. The button usually sits in the Window group on the left side of the View tab and shows a small split-screen icon. In some versions it is labelled simply Freeze Panes and drops down a menu with three entries: Freeze Panes, Freeze Top Row and Freeze First Column.
- Choose Freeze Panes. Pick the first option to apply the freeze at the cell you selected. If you only need a single header row and no locked column, Freeze Top Row is quicker and does not depend on your cursor. If you only need column A locked, choose Freeze First Column.
- Verify it worked. A thin grey or black line appears just below the frozen row and to the right of the frozen column. Scroll down or right; the frozen cells stay pinned while the rest of the sheet moves.
- Adjust later if needed. To change the split point, first choose View > Freeze Panes > Unfreeze Panes, then select the new anchor cell and freeze again. You cannot move the freeze line by dragging it; it must be reset.
On Excel for the web, the same View > Freeze Panes options appear, though the button wording and placement vary slightly. On iPhone and iPad, freeze options live in the View area of the edit menu; open the sheet in edit mode, locate the View section, and look for a freeze or header option. If you cannot find it, that version does not support it and you should use a desktop or web browser instead.
Common Mistakes
- Selecting a cell in the middle of the data. If you click cell D15 and freeze, Excel freezes every row above and every column left of D15, hiding most of the sheet behind frozen panes. Always return to the top and pick a cell in the first visible rows.
- Assuming the first row is the header. If row 1 is blank or contains a title, freezing row 1 pins empty or decorative cells, not your real headers. Either delete the blank row, or select the row below it and freeze that instead.
- Freezing in Page Layout or print preview. Print titles set under Page Layout for repeating headers on paper are separate from Freeze Panes. Freezing changes what you see on screen; it does not make the header repeat on every printed page. Use Page Layout > Print Titles for print output.
- Forgetting merged cells. Frozen panes work best with unmerged cells. If your header spans multiple columns with merges, the freeze point may look odd, so unmerge or adjust the anchor cell to the right of the merged block.
- Thinking the freeze saved to the wrong file. Freeze settings are per worksheet and are saved with the workbook. If a copied worksheet shows no freeze, check whether you pasted it into another file, since the setting does not carry over with a plain paste of cell contents.
Tips
- Avoid freezing more than a couple of rows and one or two columns. Too many frozen lines leave very little scrolling space on small laptop screens.
- Freeze the top row and first column together with B2 when building data-entry sheets with many rows and wide columns. It prevents losing track of which row you are editing.
- Combine Freeze Panes with Split, found in the same View tab group, when you want to view two distant sections of the same sheet at once. Split creates two scrollable panes without pinning content.
- If you use a table, freezing the row above it keeps column headings visible even when the table filters or scrolls.
- Turn off gridlines and add borders before freezing long sheets. The frozen line blends with gridlines, and visible borders make the separation easier to read.
- Consider printing or exporting to PDF if the freeze appears to work but the file sent by email looks wrong. The recipient sees the same freeze when they open the workbook in Excel; other viewers may ignore it.
Troubleshooting
- The line is not where you want it. Unfreeze, press Ctrl + Home to return to A1, then click the correct anchor cell and freeze again.
- The Freeze Panes button is greyed out. This often means the workbook is in a state that disables it, such as being in cell edit mode or having a cell open for typing. Press Enter or Esc to leave edit mode. If the sheet is protected, go to Review > Unprotect Sheet (this needs the password) and try again.
- The frozen area keeps growing as you scroll. This usually points to a freeze set too far down the sheet, or to a hidden filter or table header. Unfreeze, clear any filters, delete stray content far down the sheet, and reapply at row 2.
- The freeze looks fine on your screen but not in the browser. Excel for the web shows frozen panes but keeps the three-row and three-column scroll limit in place; the behaviour can look slightly different in some browsers. Try a different browser or the desktop app.
- Freeze options missing on a phone. Not every mobile version exposes them. Use the browser version or a desktop computer, as those offer the full command.
- Nothing happens when you click the button. Save the file (Ctrl + S), close and reopen Excel, and confirm the workbook is not read-only. A read-only file still allows freeze, but a locked or corrupted file may ignore it.
Frequently Asked Questions
Does freezing panes affect anyone else who opens the file?
Yes. Freeze settings are stored with the worksheet, so anyone opening the workbook in Excel sees the same frozen rows and columns. They can unfreeze them on their own copy without changing yours.
How do I keep both a header row and a label column frozen?
Select the cell at the intersection of the first row and column you want scrollable, usually B2, then choose View > Freeze Panes > Freeze Panes. That pins everything above and left of that cell.
Can I freeze two separate areas, such as the top and bottom of a long sheet?
No. Freeze Panes only locks rows and columns at the top and left of the sheet. To compare distant sections, use View > Split, which gives you independent scrollable panes.
Does freezing carry over to a PDF export?
Freeze panes are an on-screen view setting. When exporting to PDF, use Page Layout > Print Titles to repeat header rows on each page so the printed output keeps the headings.
Why did my freeze disappear after I changed the filter or sorted?
Sorting and filtering normally keep the freeze intact, but if the header row itself moved or the sheet was re-created, the anchor point shifts. Reapply the freeze at the new header row, and keep filters on the header row rather than above it.
Can I freeze rows in the middle of the data that are not the top rows?
You can only anchor a freeze below the rows you want pinned, so mid-sheet rows cannot be frozen while the top rows scroll away. If you need a specific block always visible, move it to the top or use Split.