Blog
How to Freeze Rows and Columns in Excel (Freeze Panes)
To freeze rows and columns in Excel, select the cell just below the rows and just to the right of the columns you want to keep visible, then choose View > Freeze Panes > Freeze Panes. For the common cases there are shortcuts in the same menu: Freeze Top Row keeps row 1 on screen, and Freeze First Column keeps column A. That one rule, "rows above and columns to the left of the selected cell," explains every freeze that goes right and every one that goes wrong.
It matters most on the sheets you live in: a gradebook with forty assignment columns, an attendance tracker with a column for every school day, a personal budget with every transaction since January. Without frozen headers you scroll back to the top dozens of times a day to check whether a number is a quiz score or a test score. This guide covers the exact cell to pick for each layout, a worked example, the fixes for frozen panes that misbehave, and the printing setting that Freeze Panes doesn't cover.
The three Freeze Panes options
The Freeze Panes button on the View tab opens three options. Microsoft's Freeze panes to lock rows and columns article describes the same rule: Freeze Panes freezes the rows above and the columns to the left of the selected cell.
| Option | What stays visible | Cell to select first |
|---|---|---|
| Freeze Top Row | Row 1 | Any |
| Freeze First Column | Column A | Any |
| Freeze Panes | All rows above and all columns left of the selected cell | Just below the last row and right of the last column to keep |
Freeze Top Row and Freeze First Column ignore your selection. If your header takes two rows, or you need student ID and student name both pinned, use Freeze Panes.

How to freeze rows
Freeze the top row
Select View > Freeze Panes > Freeze Top Row. A thin grey line appears under row 1, and row 1 stays at the top as you scroll down. It doesn't matter which cell is active.
Freeze several rows
Select the row just below the last row you want to keep, then View > Freeze Panes > Freeze Panes. To keep rows 1 and 2, click the row 3 heading or cell A3. If you pick B3 instead, column A gets frozen too, so when you only want rows, select a cell in column A or the whole row.
How to freeze columns
To keep column A, use Freeze First Column. To keep several columns, select the column just to the right of the last one you want, then Freeze Panes. To keep columns A through H, click the column I heading.


Freeze rows and columns at the same time
Select the cell that is below the rows and right of the columns to keep. Row 1 and column A: B2. Rows 1–2 and columns A–B: C3. Row 1 and columns A–H: I2. After Freeze Panes, you'll see both a horizontal and a vertical line, and only the lower-right area scrolls.

Worked example: a semester gradebook
A high school English teacher reviews her semester gradebook before progress reports go home. Row 1 is a title, row 2 holds assignment names, column A is the student ID and column B the student name. To the right are class period, 38 assignment columns and the running average, for 168 students.
- Clear the old freeze. She saved the file last month with a freeze in the wrong place, so the first menu item reads Unfreeze Panes. Select it.
- Go to the top. Press Ctrl+Home so A1 is in the top-left corner. Freezing while scrolled halfway down hides every row above the visible area.
- Pick the anchor cell. Two header rows plus student ID and student name means C3.
- Freeze. Check that the lines sit under row 2 and right of column B, then scroll down and right to confirm each name stays readable next to the scores for the last essay.
- Set print titles. She prints each period's page for her conference binder, so Page Layout > Print Titles gets rows 1:2 under Rows to repeat at top and A:B under Columns to repeat at left.
- Save. The freeze is stored in the file, so the gradebook opens with the same view next week.
Her first attempt failed at step 2: she had scrolled so row 120 sat at the top of the window, selected C122 and froze. Rows 1 through 119 vanished above the frozen area and scrolling up didn't bring them back. Unfreeze, Ctrl+Home, freeze again fixed it.
When frozen panes misbehave
The wrong rows are frozen
Freeze Panes uses what is on screen. If you're scrolled to row 480 when you freeze, row 480 becomes the top of the frozen area and everything above it is out of reach. Unfreeze, press Ctrl+Home, and freeze again. One more quirk: while panes are frozen, Ctrl+Home jumps to the first cell below and right of the frozen area, not to A1.

Removing a freeze
Select View > Freeze Panes > Unfreeze Panes. That option appears only while a freeze is active. A sheet can hold one freeze at a time, so moving it means unfreezing and freezing again.

Freeze Panes is greyed out
You're editing a cell: press Enter or Esc. Or you're in Page Layout view, which doesn't support frozen panes: switch back to Normal on the View tab. Excel will even offer to remove the freeze when you switch to Page Layout for the same reason.
Other sheets aren't frozen
Freezing is stored per sheet. In VBA it is a property of the window, not the workbook (Window.FreezePanes on Microsoft Learn), and grouping sheets doesn't freeze them all at once. In a workbook with one tab per month, freeze the first tab, then copy that tab to create the next month; the freeze comes along.
Frozen area is wider than the screen
If the frozen columns are wider than your window, the scrolling area disappears off the right edge and you can't reach the rest of the sheet. This often happens when a file built on a large monitor opens on a laptop. Freeze fewer columns, narrow them, or zoom out.
👉 How to Freeze the Top Row and Columns in Excel
Freeze Panes vs. Split
View > Split divides the window into two or four panes that each scroll independently. Microsoft's Split panes article uses the example of keeping the top-ten finishers of a race in the upper pane while you scroll to row 180 in the lower one. Freeze keeps headers in place; Split lets you look at two distant parts of the same sheet.
You can't use both at once. If the screen still looks divided after you unfreeze, Split is on; select it again to turn it off. To see the header and a totals row at the bottom at the same time, Split is the tool, because Freeze Panes only pins the top and left.
For two different sheets side by side, such as the gradebook and the class roster, use View > New Window and then Arrange All. Each window can have its own freeze, and edits in one show up in the other because it's the same file.
Print headers on every page
Freeze Panes affects the screen only. To repeat headers on printed pages, open Page Layout > Print Titles, click in Rows to repeat at top and drag across rows 1–2 (Excel fills in $1:$2), and use Columns to repeat at left for identifier columns. The rows must be contiguous. Check page 2 in Print Preview. Like freezing, print titles are set per sheet.

Keyboard, web and Mac
- Windows shortcut: press Alt, then W, F, F in sequence to freeze at the selected cell. Alt, W, F, R freezes the top row and Alt, W, F, C the first column.
- Excel for the web: the menu looks different. Next to freezing at the selection, it offers the top row and first column plus "up to" options based on where your cursor is, such as up to row 2 or up to column B.
- Excel for Mac: the Freeze Panes button on the View tab lists Freeze Panes, Freeze Top Row and Freeze First Column, and Unfreeze Panes once a freeze is active.

FAQ
Q. Can I freeze the header and a totals row at the bottom?
No. Freeze Panes only pins rows at the top and columns at the left. Use Split, or move the totals row directly under the header and freeze both.
Q. Do I have to freeze each sheet separately?
Yes. The setting belongs to each sheet. Copying a frozen sheet copies its freeze, which is the fastest way to set up monthly tabs.
Q. I froze the panes and now the top rows are gone.
You froze while scrolled down. Unfreeze, press Ctrl+Home, select the anchor cell again and freeze.
Q. Does filtering affect frozen panes?
No. Freezing the header row that holds the filter buttons is actually the best setup: you can change filters while looking at row 900.
Find missing scores with inline AI
Freezing keeps the headers in view, but spotting every blank among 38 assignments and 168 students is still slow work by eye. inline AI opens the gradebook on your PC; ask "list every student with a missing score and which assignments are blank," and the list comes back on a new sheet while your frozen headers stay where you set them.
Gradebooks and spreadsheets, finished by inline AI in the file itself.
Ask in one sentence for roll-ups, trackers and the cleanup you repeat every week. Your files never leave your computer.




