Field Guide

How to freeze a row in Excel: Freeze Panes for rows and columns

Updated

To freeze the top row in Excel on Windows: select View, select Freeze Panes, then select Freeze Top Row. In Excel for Mac, Freeze Top Row is its own button on the View tab. To freeze more than one row, select the row just below the last one you want frozen, then choose View > Freeze Panes > Freeze Panes. The frozen rows stay on screen while the rest of the worksheet scrolls.

Freezing pins chosen rows and columns in place so your header labels stay in view no matter how far down or across you scroll. This page covers the Windows and Mac paths for the top row, several rows, columns, rows and columns together, and unfreezing, plus the grayed-out cases and how freezing differs from splitting the window and from repeating rows on a printed page.

How do I freeze the top row?

On Windows, Microsoft’s instructions run in two steps:

  1. Press Enter or Esc so you are no longer editing a cell.
  2. Select View, select Freeze Panes, then select Freeze Top Row.

In Excel for Mac the command is one click: on the View tab, select Freeze Top Row. The Mac page adds a visual check: look for the slightly darker border that appears under row 1. That heavier line marks the frozen row.

The same commands sit in different places on the two platforms. Windows tucks the freeze commands into the Freeze Panes menu on the View tab, while Excel for Mac lays them out as separate View tab buttons. Microsoft documents the two paths on separate pages, so when a set of instructions does not match your ribbon, check which platform it was written for.

How do I freeze multiple rows?

Select the row just below the last one you want frozen, then choose Freeze Panes. To freeze the first two rows, select row 3, then View > Freeze Panes > Freeze Panes. Selecting cell A3 does the same job, because no columns sit to the left of column A, so only the rows freeze.

A B C D
1 Headcount plan
2 Team Q1 Q2 Q3
3 Support 14 16 18
4 Engineering 31 33 36
To freeze the first two rows, select cell A3 (or row 3), then Freeze Panes. The shaded rows 1 and 2 stay put while row 3 and everything below it scrolls.

Microsoft’s Mac page sets one limit: “You can freeze as many as you want, as long as you always start with the top row and the first column.” A freeze always grows from the top left corner of the sheet. There is no way to pin a band of rows in the middle of a worksheet on its own; for that job, split the window instead (covered below).

How do I freeze columns?

The sideways version of the same rule: select the column to the right of the last column you want frozen, then Freeze Panes. Microsoft’s worked example freezes the first two columns: select the third column, then View > Freeze Panes > Freeze Panes.

For just the first column, Excel for Mac has a dedicated Freeze First Column button on the View tab, marked the same way, with a slightly darker line to the right of column A. On Windows, selecting the second column and choosing View > Freeze Panes > Freeze Panes gets the same result.

How do I freeze rows and columns at the same time?

Both are driven by the cell you select before the command. Per Microsoft’s page: “Freeze Panes freezes the rows above and the columns left of the selected cell.” So pick the cell that sits just under the rows you want to keep and just right of the columns you want to keep, then select View > Freeze Panes > Freeze Panes.

Two worked selections from Microsoft’s pages:

When rows and columns are both frozen, a slightly thicker border marks the freeze edges, under the last frozen row and beside the last frozen column. With D5 selected, that means under row 4 and beside column C.

How do I unfreeze rows or columns?

On the View tab, select Freeze Panes > Unfreeze Panes. In Excel for Mac, choose Unfreeze Panes on the View tab. To move the freeze line, unfreeze, make a new selection, and choose Freeze Panes again.

Does freezing change the data or the printout?

A freeze is a view setting: it controls which part of the worksheet stays visible while you scroll to another part, and nothing else. The same values, formulas, and formatting sit in the same cells; the freeze only decides what stays on screen.

Freezing also does not touch printing. A frozen row 1 stays at the top of your screen, not at the top of every printed page. Repeating headings on paper is a separate feature, print titles: on the Page Layout tab, select Print Titles, then enter the rows in the Rows to repeat at top box, $1:$1 for row 1.

Freeze Panes or Split?

The View tab offers two ways to hold part of a sheet steady, and they behave differently. Freezing pins rows and columns so they never leave the screen. Splitting divides the worksheet into panes that scroll on their own, so the upper pane can hold the top rows steady while you move through the lower pane, or two panes can show far-apart regions of the same sheet at once.

To split, select the row below where the divide should go, the column to the right of it, or a cell below and to the right of it for both, then select View > Window > Split. Selecting Split again removes it.

The way to choose: a header row that must stay put is a freeze; reading row 180 against the top ten rows of the same sheet is a split.

Why is Freeze Panes grayed out?

A few things to check, each with its own fix:

The short version

Frequently asked questions

How do I freeze the top row in Excel?
On Windows, select View, select Freeze Panes, then select Freeze Top Row. Microsoft's own steps start with pressing Enter or Esc to make sure you are done editing a cell. In Excel for Mac, Freeze Top Row is a button directly on the View tab, and a slightly darker border appears under row 1 to show the row is frozen.
How do I freeze multiple rows in Excel?
Select the row just below the last one you want frozen, then choose Freeze Panes (on Windows that is View > Freeze Panes > Freeze Panes; in Excel for Mac, Freeze Panes sits directly on the View tab). To freeze the first two rows, select row 3 or cell A3, then Freeze Panes. Microsoft's rule: any number of rows can be frozen, provided the freeze starts at the top row.
How do I freeze rows and columns at the same time?
Select the cell just below the rows and just to the right of the columns you want to keep on screen, then choose Freeze Panes. The freeze covers the rows above and the columns to the left of the cell you selected, so selecting B2 freezes the top row and the first column, and selecting D5 freezes the top four rows and the leftmost three columns.
How do I unfreeze rows or columns in Excel?
On the View tab, select Freeze Panes, then Unfreeze Panes. In Excel for Mac, choose Unfreeze Panes on the View tab. To change what is frozen, unfreeze first, make a new selection, and freeze again.
Why is Freeze Panes grayed out in Excel?
In Excel for Mac, Microsoft's documented fix for grayed-out Freeze buttons is to select Normal on the View tab. On Windows, Microsoft's Freeze Top Row steps begin with pressing Enter or Esc to make sure you are done editing a cell, so commit the edit before reaching for the command. And if the View tab itself is missing, Microsoft notes you are likely using Excel Starter, which does not support every feature.
Does freezing the top row repeat it on every printed page?
No. Freezing controls what stays visible on screen while you scroll; it does not put row 1 on every printed page. Repeating rows in a printout is a separate feature called print titles: on the Page Layout tab, select Print Titles, then enter the rows in the Rows to repeat at top box, for example $1:$1 for row 1.

Catch the errors before they ship

Reviewing a change to a model? Compare the two versions in your browser and see every changed cell, formula, and value. It's free, and nothing leaves your computer.