To freeze the top two rows in Excel, click cell A3, then go to View > Freeze Panes > Freeze Panes. Excel locks every row above the selected cell, so rows 1 and 2 stay on screen while you scroll. To freeze only the top row, use View > Freeze Panes > Freeze Top Row instead.
| What you want to keep visible | Select this first | Then click |
|---|---|---|
| Row 1 only | Any cell | View > Freeze Panes > Freeze Top Row |
| Column A only | Any cell | View > Freeze Panes > Freeze First Column |
| Rows 1 and 2 | Cell A3 (or all of row 3) | View > Freeze Panes > Freeze Panes |
| Rows 1 to 3 and column A | Cell B4 | View > Freeze Panes > Freeze Panes |
| Columns A and B | Cell C1 (or all of column C) | View > Freeze Panes > Freeze Panes |
| Nothing (undo a freeze) | Any cell | View > Freeze Panes > Unfreeze Panes |
How do I freeze the top two rows in Excel?
Select the first cell of the row directly below the rows you want to lock, then apply Freeze Panes. The rule to remember is simple: Excel freezes everything above and to the left of the active cell.

- Scroll to the very top of the sheet so row 1 is visible. Press Ctrl+Home to jump there.
- Click cell A3. Selecting the whole of row 3 (click the row number) works too.
- On the View tab, in the Window group, click Freeze Panes.
- Choose Freeze Panes from the menu.
A thin grey line appears under row 2. Scroll down and rows 1 and 2 stay put. Because you selected a cell in column A, no columns are frozen.
How do I freeze the second row in Excel?
You can't freeze row 2 on its own while row 1 scrolls away, because Excel always freezes from the top of the visible window. Freezing "the second row" in practice means freezing rows 1 and 2 together, which is the A3 method above.
If row 1 holds a title you don't need to see, you have two cleaner options:
- Scroll so that row 2 is the top visible row, click A3, then choose Freeze Panes. Row 1 is now hidden above the frozen area and row 2 acts as your header. The catch is that you can't scroll back up to row 1 until you unfreeze.
- Move the title out of the way. Delete row 1 or put the title in the header instead, so your column labels sit in row 1 and Freeze Top Row does the job. Our guide to adding a header and footer in Excel shows where a sheet title can live instead.
Here is a typical layout where freezing two rows makes sense:
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Sales report 2026 | |||
| 2 | Order ID | Customer | Region | Amount |
| 3 | 1001 | Northwind | North | 420 |
| 4 | 1002 | Contoso | South | 315 |
Click A3, apply Freeze Panes, and both the title and the column labels stay visible across hundreds of orders.
How do I freeze cells in Excel (rows and columns together)?
Select the cell just below the last row and just to the right of the last column you want to lock, then click View > Freeze Panes > Freeze Panes. To freeze rows 1 to 2 and column A in the table above, click B3.

Excel can't freeze a block in the middle of a sheet, such as cells D10:F20. Freezing always works from the top-left corner of the window. If you need to compare two distant areas, use View > Split instead. Split divides the window into panes that scroll independently, and you drag the split bars to resize them.
The term "freeze cells" also gets used for stopping people from editing cells. That's a different feature. To stop edits, you lock the cells and protect the sheet, as covered in our guide to locking and unlocking cells in Excel.
How do I unfreeze panes in Excel?
Go to View > Freeze Panes > Unfreeze Panes. When panes are frozen, the first option in the menu changes from Freeze Panes to Unfreeze Panes, so you can't stack a new freeze on top of an old one.
To change which rows are frozen, unfreeze first, select the new cell, then freeze again. Freeze settings are saved per worksheet, so each sheet in the workbook can have its own frozen area.
If you use the keyboard more than the mouse, press Alt, W, F to open the Freeze Panes menu, then F for Freeze Panes, R for Freeze Top Row or C for Freeze First Column. Our list of Excel keyboard shortcuts covers more ribbon key sequences like this.
Why is Freeze Panes not working in Excel?
Freeze Panes usually fails for one of a handful of reasons. Work down this list:

- You're in Page Layout view. Freeze Panes is greyed out in Page Layout view. Switch to View > Normal and try again.
- You're editing a cell. If the cursor is blinking inside a cell or the formula bar, most ribbon commands are unavailable. Press Enter or Esc first.
- The sheet was scrolled when you froze it. Excel freezes the rows visible above the selected cell, not rows 1 and 2 by number. If row 40 was at the top of the window, rows 40 and 41 get frozen. Unfreeze, press Ctrl+Home, then freeze again.
- The wrong cell was selected. Selecting A2 freezes only row 1. Selecting B3 freezes rows 1 and 2 plus column A, which surprises people who only wanted rows.
- A split is active. If the window is already split, Freeze Panes turns the split into a freeze at that position. Click View > Split to remove the split, then freeze from a fresh selection.
- The workbook is protected. Files protected in older Excel versions with the Windows option of Protect Workbook keep their window layout locked. If the Review > Protect Workbook button is highlighted, unprotect the workbook and try again.
- Rows are hidden. If rows above your selection are hidden, the frozen area may look wrong. Our guide to unhiding rows and columns shows how to reveal them.
What we commonly see: someone freezes panes while halfway down a long list, then can't scroll up to the top rows at all. The data isn't gone. The top rows are simply hidden above the frozen line. Unfreeze, press Ctrl+Home and freeze again from the top.
Does freezing panes repeat the rows when I print?
No. Freeze Panes only affects what you see on screen. To repeat header rows on every printed page, go to Page Layout > Print Titles, open the Sheet tab and enter the rows in Rows to repeat at top, for example $1:$2 for the top two rows. Microsoft's guide to printing rows with column headers on every page walks through the dialog. Pair this with a defined print range from our guide to setting the print area in Excel.
Advanced nuance: an Excel table (Insert > Table) replaces the column letters with the table's header names as you scroll down inside it, even without Freeze Panes. That only works while the active cell is inside the table, so a frozen header row is still the more reliable choice for wide reports and shared files.
Does Freeze Panes work the same in every Excel version?
Yes. The View > Freeze Panes menu with Freeze Panes, Freeze Top Row and Freeze First Column works the same way in Excel 2016, 2019, 2021, 2024 and Microsoft 365 for Windows. Microsoft's freeze panes support article lists the same steps across those versions, and notes that Excel Starter lacks some features.
On a Mac, the same freeze commands sit on the View tab. Excel for the web also offers Freeze Panes on its View tab, although the options can be laid out a little differently. If you are choosing a desktop version for long-term use, Office 2021 support ended on 13 October 2026, while the Office 2024 licence keys cover a version supported until 9 October 2029.
Frequently asked questions
Can I freeze more than one row in Excel?
Yes. Select the first cell in the row directly below the last row you want to keep, then choose View > Freeze Panes > Freeze Panes. Click A4 to freeze rows 1 to 3, or A6 to freeze rows 1 to 5. There is no fixed limit, but freezing too many rows leaves little room to scroll on a small screen.
Why does Freeze Top Row freeze the wrong row?
Freeze Top Row locks whichever row is currently at the top of the window, not necessarily row 1. If you had scrolled down before clicking it, that visible row is frozen instead. Unfreeze the panes, press Ctrl+Home to return to cell A1, then choose Freeze Top Row again.
Can I freeze rows at the bottom of the sheet?
Not with Freeze Panes, which only locks rows at the top and columns on the left. For totals at the bottom, you can put the totals above the data and freeze them, or use View > New Window and arrange the two windows so one shows the totals while the other scrolls.
Do frozen panes stay when I save and reopen the file?
Yes. Frozen panes are saved with each worksheet, so colleagues who open the file see the same frozen rows and columns. Each sheet keeps its own setting, so freezing rows on one sheet does not affect the others. Saving as CSV discards the freeze, because CSV files store only data, not view settings.
What is the difference between Freeze Panes and Split?
Freeze Panes locks the top rows or left columns so they never scroll. Split divides the window into two or four panes that each scroll independently, which lets you compare distant parts of the same sheet side by side. You can turn on either one from the View tab, but not both at once.
Related guides
- How to set the print area in Excel
- How to add a header, footer and page numbers in Excel
- How to unhide columns and rows in Excel
- How to lock and unlock cells in Excel
- Excel keyboard shortcuts you'll actually use
Links in this guide
| Link | Type | Why it helps |
|---|---|---|
| Microsoft Support: Freeze panes to lock rows and columns | External | Official steps and the versions they apply to |
| Microsoft Support: Print rows with column headers on every page | External | Repeats header rows on printouts, which Freeze Panes doesn't do |
| Add a header and footer in Excel | Internal | Somewhere to put a sheet title instead of row 1 |
| Lock and unlock cells in Excel | Internal | For people who mean "stop edits" when they say freeze cells |
| Excel keyboard shortcuts | Internal | More ribbon key sequences like Alt, W, F |
| Unhide columns and rows in Excel | Internal | Fixes frozen areas that look wrong because of hidden rows |
| Set the print area in Excel | Internal | Pairs with Print Titles for clean printouts |
| Office 2024 licence keys | Internal | Current perpetual Office version for users on an unsupported release |
