Quick answer
To keep the top row in view while you scroll, go to View > Freeze Panes > Freeze Top Row. To freeze rows and columns at once, click the cell just below and to the right of them, such as B2 to keep row 1 and column A, then choose View > Freeze Panes > Freeze Panes. To undo it, choose View > Freeze Panes > Unfreeze Panes.
In a timesheet with 300 rows, the headings scroll out of sight after the first screenful, and from there on you’re guessing which column is Tuesday. Freezing panes keeps the header row, the name column or both on screen while the rest of the sheet scrolls under them.
How freezing works
Freeze Panes cuts the window at the top-left corner of the cell you’ve selected. Every row above that cell and every column to its left stays where it is, and the rest of the sheet scrolls. So the cell to select is the first one that should move: the cell just below the rows you want to keep, and just right of the columns.
Freeze Top Row and Freeze First Column are shortcuts for the two simplest cases. They ignore which cell is selected.
Freeze the top row
- On the View tab, in the Window group, click Freeze Panes.
- Choose Freeze Top Row.
Row 1 now stays at the top of the window however far you scroll down.
Freeze the first column
- On the View tab, click Freeze Panes.
- Choose Freeze First Column.
Column A stays on the left as you scroll across, which suits a wide sheet with names or product codes in the first column.
Freeze rows and columns at the same time
Say your timesheet has a title in row 1, the day headings in row 2 and the names in column A. To keep all three in view, freeze two rows and one column:
- Click B3, the cell just below row 2 and to the right of column A.
- On the View tab, click Freeze Panes > Freeze Panes.
To check it, scroll down and then across. The title, the day headings and the names stay put while the hours move.
Freeze the top two rows, or more than one column
The rule works for any number of rows and columns:
| To keep | Select | Then choose |
|---|---|---|
| Row 1 | any cell | Freeze Top Row |
| Rows 1 and 2 | A3 | Freeze Panes |
| Column A | any cell | Freeze First Column |
| Columns A and B | C1 | Freeze Panes |
| Row 1 and column A | B2 | Freeze Panes |
| Rows 1 to 4 and columns A to C | D5 | Freeze Panes |
Select a cell in column A to freeze rows only, and a cell in row 1 to freeze columns only.
Unfreeze panes
On the View tab, click Freeze Panes > Unfreeze Panes. To freeze a different area, unfreeze first, select the new cell and freeze again.
Each sheet keeps its own frozen panes, and Excel saves them with the workbook, so the headings are still in place the next time you open the file.
Freeze panes on a Mac and in Excel for the web
On a Mac, the View tab has Freeze Panes, Freeze Top Row and Freeze First Column as buttons of their own, and Unfreeze Panes to undo them. The same commands are on the Window menu in the menu bar. The cell rule is the same.
In Excel for the web, Freeze Panes is on the View tab too.
When Freeze Panes is grayed out or doesn’t work
- In Page Layout view the freeze commands are unavailable. Switch to Normal on the View tab and they come back.
- While you’re still typing in a cell, most commands wait. Press Enter or Esc first.
- If the wrong rows stay put, the panes were frozen with another cell selected. Unfreeze, select the cell just below and right of what should stay, and freeze again.
Freeze Panes or Split?
Split, also on the View tab, divides the window into two or four panes that each scroll on their own, which is handy for comparing two parts of a long sheet. Freezing keeps one part still instead. The two work together in one way: choosing Freeze Panes while the window is split freezes it where it’s split, and you need to unfreeze before you can remove the split. Click Split again to remove it.
Keep the headings on every printed page
Frozen panes only affect the screen. To print the header row at the top of every page, go to Page Layout > Print Titles and set Rows to repeat at top, such as row 1 or rows 1 and 2.
Practice this in ProExcel
Set a log's column names to print at the top of every page.
ProExcel checks your answer the moment you press Enter.
The free lesson Repeat headers, number pages and set a print area covers the rest of a printout’s setup.
To get around a long sheet faster once the headings stay put, Ctrl+Down (Cmd+Down on a Mac) jumps to the last filled cell of a column; Excel keyboard shortcuts that save time has more, and the Excel shortcuts cheat sheet puts them on one page.
Frequently asked questions
How do I freeze the top row and first column at the same time?
Click B2, then choose View > Freeze Panes > Freeze Panes. Excel keeps everything above and to the left of the selected cell, which here is row 1 and column A.
How do I freeze the top two rows in Excel?
Click A3, the first cell below the rows you want to keep, then choose View > Freeze Panes > Freeze Panes. Rows 1 and 2 stay on screen as you scroll down.
How do I keep a row visible when I scroll?
If it’s the first row, choose View > Freeze Panes > Freeze Top Row. For a lower row, click the cell in column A just below it and choose Freeze Panes; every row above that cell stays visible.
How do I freeze more than one column?
Click the cell in row 1 just right of the last column you want to keep, such as C1 to keep columns A and B, then choose View > Freeze Panes > Freeze Panes.
Why is Freeze Panes not working?
Freeze Panes isn’t available in Page Layout view, so switch to Normal on the View tab, and make sure you’re not still typing in a cell. If the wrong rows stay put, unfreeze, select the right cell and freeze again.
Is there a keyboard shortcut to freeze panes?
There’s no Ctrl shortcut for it. On Windows, press Alt to show the ribbon’s KeyTips, then the letters Excel shows for the View tab, Freeze Panes and the option you want, one after another.
Practice this with real formulas
ProExcel's free course turns each idea into a formula you type yourself, checked the moment you press Enter. Five minutes a lesson, on your phone or computer.