How-to recipes · Workbooks and sheets

How to freeze panes in Excel

Keep header rows and label columns visible while you scroll with Freeze Panes, Freeze Top Row and Freeze First Column, and fix panes that freeze the wrong area.

Beginner SUBTOTAL

In a list with hundreds of rows, the column headers scroll out of view after the first screen, and you start guessing which column is Amount and which is Tax. In a wide sheet, the names in column A disappear when you scroll to the right. Freeze Panes locks rows at the top and columns at the left so they stay on screen while the rest scrolls. It is a view setting: it changes nothing in the data and is saved with the workbook.

Freeze the top row or the first column

  1. Go to the View tab.
  2. Click Freeze Panes.
  3. Choose Freeze Top Row to keep row 1 visible, or Freeze First Column to keep column A visible.

A thin grey line appears below row 1 (or right of column A). Scroll down and the header stays put. These two commands always freeze row 1 or column A, regardless of which cell is selected, and you can only use one of them at a time.

Freeze rows and columns together

To freeze several rows, several columns, or both, use the selection-based command. The rule is simple: everything above and to the left of the selected cell is frozen.

  1. Click the cell just below the last row and just right of the last column you want to freeze. To freeze rows 1-3 and column A, click B4.
  2. View > Freeze Panes > Freeze Panes.
To freezeSelectThen
Rows 1-3 onlyA4 (or the whole row 4)Freeze Panes
Columns A-B onlyC1 (or the whole column C)Freeze Panes
Rows 1-3 and column AB4Freeze Panes
Row 1 onlyanythingFreeze Top Row

On Mac the commands are in the same place: View > Freeze Panes, Freeze Top Row, Freeze First Column. In Excel for the web they are under View > Freeze Panes too.

Keep totals visible as well

A useful layout puts a total above the headers and freezes all of those rows. The total then stays visible while you scroll through the data. Use SUBTOTAL so it also reacts to filters:

D1fx=SUBTOTAL(109,C4:C7)
ABCD
1Total2570
2
3DateCustomerAmountStatus
42026-11-02Alpha Ltd1200Paid
52026-11-05Brightway450Open
62026-11-09Cedar Co300Paid
72026-11-12Delta Inc620Open

The total is in row 1, the headers in row 3. Select A4 and Freeze Panes to keep rows 1-3 on screen. In a real list, extend the range to the last data row (or use a table column).

Result: 2570

Because row 1 is frozen, you see the total of the visible rows at all times, even when you filter the list by customer or status. See How to sum only visible cells in Excel.

Unfreeze

View > Freeze Panes > Unfreeze Panes. The command appears in place of Freeze Panes whenever something is frozen. Unfreeze before freezing a different area; choosing Freeze Panes again on an already frozen sheet replaces the old setting.

Split panes: the alternative

View > Split divides the window into two or four panes that scroll independently. Unlike freezing, each pane can show a different part of the sheet, which is handy to compare row 10 with row 900 side by side. You cannot split and freeze at the same time; drag the split bar away or click Split again to remove it.

Freeze panes in Excel tables

If your list is formatted as an Excel table (Excel tables and structured references), you often do not need to freeze anything: when you scroll down inside the table, Excel replaces the column letters A, B, C with the table's header names. That only works while a cell inside the table is selected; freezing the header row is still more reliable for printing-like reading.

Pitfalls

  • The wrong area is frozen. If you scrolled before freezing, Excel freezes what is above and left of the selected cell on screen, so rows that were scrolled out of view are frozen out of reach. Press Ctrl+Home, unfreeze, scroll to the top, and freeze again.
  • Freeze Panes is greyed out. The sheet is in Page Layout view, cell editing mode, or the workbook is protected. Switch to Normal view (View > Normal) and press Esc.
  • Too many frozen rows on a small laptop screen leave no room to scroll. Freeze only the header row and put totals in the status bar instead (select the cells and read Sum at the bottom right).
  • Printing. Freezing does not repeat headers on printed pages. For that use Page Layout > Print Titles > Rows to repeat at top, explained in Printing and page setup.
Tip. Keyboard: press Alt, W, F, F for Freeze Panes, Alt, W, F, R for Freeze Top Row and Alt, W, F, C for Freeze First Column. More shortcuts are in Keyboard shortcuts for Windows and Mac; the window and view options are introduced in The Excel interface: workbooks, sheets and the ribbon.
⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 12 KB

More how-to recipes