Last updated on November 18th, 2026 at 12:26 pm
Select cell B2 in your Excel worksheet, then choose View > Freeze Panes > Freeze Panes. Row 1 and column A now stay on screen while the rest of the sheet scrolls. Need only the header row? Choose View > Freeze Panes > Freeze Top Row instead, with no cell selection. The steps are for Excel for Microsoft 365 and Excel 2016 through 2024 on Windows; Mac, web and mobile get their own sections.
Why you select cell B2 first
Excel has three freeze commands, and only one of them can lock a row and a column together. Freeze Top Row locks row 1 only. Freeze First Column locks column A only. Neither one is meant for holding both in place.
The third command, Freeze Panes, works from the cell you have selected: it freezes the rows above and the columns left of that cell. Cell B2 has exactly one row above it (row 1) and one column to its left (column A), so it is the right starting point for this task.
Can I use Freeze Top Row and then Freeze First Column?
That is not the documented way to lock both. Select cell B2 and use Freeze Panes, which sets the row and the column in one action.
Freeze the top row and first column in Excel for Windows
- Open the workbook and select the worksheet that you want to change.
- If you are typing in a cell, press Enter or Esc to finish editing first.
- Scroll to the top-left of the sheet so that row 1 and column A are both visible, then click cell B2. B2 is the cell in the second row of the second column.
- Select the View tab on the ribbon.
- Select Freeze Panes. A short menu opens.
- Select Freeze Panes in that menu. The menu closes and the freeze is applied.
- Scroll down and then to the right. Row 1 should stay at the top and column A should stay at the left the whole time.

Microsoft’s own instructions for this are on its Freeze panes to lock rows and columns support page.
Does freezing change or protect my data?
No. Freezing only controls which rows and columns stay visible while you scroll. It is not a way to lock cells against editing.
Can I freeze the top row on several worksheets at once?
No. Freezing applies to one worksheet at a time, so repeat the steps on each sheet that needs it.
Once your headings stay in view, the active cell highlighting trick makes it easier to see where you are in a large sheet. When the cursor will not move the way you expect, our guide shows how to unlock the cursor in Excel.
Freeze only the top row in Excel
When you just want the header row to stay visible as you scroll down a long list, you do not need cell B2. Freeze Top Row always locks row 1, whatever cell is selected. Google Sheets works differently: there you freeze rows from the View menu in Google Sheets and pick how many to lock.
- Open the worksheet where you want to freeze the top row. The freeze applies only to the sheet you are viewing.
- Select the View tab on the ribbon.
- Select Freeze Panes. It may show a small snowflake icon.
- Choose Freeze Top Row from the menu.
Row 1 now stays in place as you scroll down. To lock only column A instead, choose Freeze First Column from the same menu.
On other versions of Excel, the path is close to the same:
- Excel for Mac: select View > Freeze Top Row. The View tab has Freeze Panes, Freeze Top Row and Freeze First Column as separate buttons.
- Excel for the web: select View > Freeze Panes > Freeze Top Row.
- Excel on iPhone, iPad and Android: open the View tab (see the mobile section below for reaching it on a phone), then tap Freeze Panes > Freeze Top Row.
Use the keyboard to reach Freeze Panes
You can open the same menu without the mouse. Select cell B2, then press Alt to show Key Tips, the small letters that appear next to each ribbon tab and command. Press Alt+W to open the View tab, and then press the letters shown on Freeze Panes and on the menu option you want. Because Excel displays the letters on screen, you do not have to memorize the sequence.
In the English version of Excel for Windows, the full sequences are below. Press and release each key in order.
- Alt, W, F, F freezes panes at the selected cell (B2 for the top row and first column), or unfreezes them if panes are already frozen.
- Alt, W, F, R freezes the top row.
- Alt, W, F, C freezes the first column.
Freeze the top row and first column in Excel for Mac
Excel for Mac puts the freeze buttons directly on the View tab, so the path is one click shorter.
- Open the worksheet and select cell B2.
- Select the View tab.
- Select Freeze Panes.
- Scroll down and to the right to check that row 1 and column A stay in place.
If the freeze buttons are grayed out on a Mac, select Normal on the View tab first, then try again.
Freeze panes in Excel for iPad and iPhone
The mobile apps use the same rule: what you select decides what gets frozen.
- iPad: make your selection, then tap View > Freeze Panes > Freeze Panes.
- iPhone: make your selection, tap the ellipsis (…) button to open the ribbon, switch from Home to View, scroll down, and tap Freeze Panes.
To remove the freeze on either device, go back to View > Freeze Panes and clear the selected options.
How to confirm it worked
Scrolling is the real test, but there is also a visual cue. Whenever rows and columns are frozen, the border below the last frozen row and to the right of the last frozen column appears a little thicker or darker than the other gridlines. After freezing at B2, look for that line under row 1 and to the right of column A. On a very wide sheet, it also helps to change the zoom level in Excel so more columns fit beside your frozen headings.
If only one of the two stays put, the wrong cell was selected or one of the single-purpose commands was used. Unfreeze the sheet and repeat the steps from cell B2.
What if my headings are not in row 1 or column A?
Select the cell just below your heading row and just to the right of your label column. Every row above it and every column to its left will be frozen, including any blank or title rows at the top.
Unfreeze the row and column
- Select the View tab.
- Select Freeze Panes.
- Select Unfreeze Panes.
On a Mac, select Unfreeze Panes directly on the View tab. Unfreezing changes only what stays on screen. It does not delete or move any data. The same steps remove a Freeze Top Row or Freeze First Column setting.
Freeze more than one row or column
The same rule scales up. Pick the cell that sits just below the last row and just to the right of the last column you want to keep, then use View > Freeze Panes > Freeze Panes.
| You want to keep visible | Select this cell first |
|---|---|
| Row 1 and column A | B2 |
| Rows 1 and 2, and column A | B3 |
| Rows 1 and 2, and columns A and B | C3 |
| Rows 1 to 4, and columns A to C | D5 |
Freeze Top Row only ever locks row 1. If your headers span two or three rows and you want rows only, scroll to the top of the sheet and click the row number just below the last row you want to keep (for example, row 4 to freeze rows 1 to 3), or select cell A4. Then use View > Freeze Panes > Freeze Panes.
If you need columns only, select the whole column to the right of the ones you want to lock instead of a single cell. Our guide on how to freeze multiple columns in Excel walks through that version.
An alternative: format your data as a table
If you press Ctrl + T to turn your data into an Excel table, the column letters at the top of the window are replaced by your table headers as you scroll down. It is a handy option if you also want filtering and banded rows, though freezing is more reliable when you have content above the table.
Panes already frozen or too much frozen
The sheet already has frozen panes
Clear the existing freeze before setting a new one. Go to View > Freeze Panes > Unfreeze Panes, click cell B2, and then choose View > Freeze Panes > Freeze Panes.
More rows or columns are frozen than you wanted
Excel freezes everything above and to the left of the selected cell, so selecting something like D10 locks nine rows and three columns. Unfreeze, scroll back to the top-left corner, select B2, and freeze again.
Row 1 is hidden behind the freeze
If row 1 was scrolled out of view when you froze the panes, it stays out of sight. Unfreeze, press Ctrl + Home to jump back to the top of the sheet, and freeze again.
The freeze command is not available
Finish any cell edit by pressing Enter or Esc. If you are in a page-oriented view such as Page Layout, go to View > Normal and try again. A protected sheet can also block the command.
There is no View tab
A missing View tab usually means you are using Excel Starter, which does not support every feature. In that case the freeze commands may not be available in your copy of Excel.
You want two scrolling areas rather than locked headings
That is a different feature. Select a cell and go to View > Window > Split to divide the sheet into panes that scroll separately. Select Split again to remove it. Freeze Panes and Split cannot be used at the same time, so if you see a gray dividing line but nothing stays put, the sheet is split rather than frozen. Turn off Split, then freeze.
Do frozen panes print on every page?
No. Freezing only affects what you see while scrolling. To repeat headings on printed pages, open the Page Layout tab, select Print Titles, and on the Sheet tab fill in Rows to repeat at top (for example $1:$1) and Columns to repeat at left.

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Each guide follows Microsoft, Apple and Google’s own documentation and is updated when the steps change. Screenshots marked “Recreated” are illustrations of the real screens.