Skip to content

Smart home, audio and desk gear, chosen with care.

Set It Up

How to Freeze a Row in Excel: Keep Headings in View

Freeze a row in Excel in seconds: choose the right cell, head to View > Freeze Panes, unfreeze it again and fix the greyed-out option.

Set It Up
Desktop monitor and keyboard on a clean white desk

The short answer

Open the sheet, click the View tab on the ribbon, click Freeze Panes and choose Freeze Top Row. Excel pins row 1 to the top of the window, so your headings stay visible while you scroll down through hundreds of rows of data.

If your headings sit on rows 1 and 2, or you also want the first column locked in place, don't use the one-click option. Click a single cell first and then choose Freeze Panes from the same menu — more on picking that cell below.

What you need before you start

Nothing special — freezing is a view setting, not a formatting change, so it works on any sheet you can open. A few things worth knowing first:

  • The menus are the same in Excel for Microsoft 365, Excel 2021, Excel 2019 and Excel for the web; on Excel for Mac the tab is still View, though the wording of individual items is slightly different.
  • Put the cell cursor somewhere sensible before you click. Freeze Panes reads the position of the active cell, not the range you have highlighted.
  • Plan for one frozen area per sheet. If you need a different arrangement later, you simply freeze again and the old one is replaced.
Where the control lives
View tab > Freeze Panes
What you can freeze
Rows above and columns to the left of the active cell
Scope
One worksheet at a time — other sheets are unaffected
Saved with the workbook
Yes, the freeze reopens with the file
Included when printing
No — use Page Layout > Print Titles instead
To undo it
View > Freeze Panes > Unfreeze Panes

Step by step: freeze the top row

  1. 01 /

    Get back to the top-left of the sheet

    Press Ctrl + Home (Cmd + Home on a Mac) so you can see row 1. If your headings are hidden behind a filter or a hidden row, clear that first — a frozen row you can't see is worse than no freeze at all.

  2. 02 /

    Click the View tab

    The View tab sits towards the right of the ribbon, past Data and Review. Everything to do with panes, zoom and window arrangement lives here, not on the Home tab.

  3. 03 /

    Open Freeze Panes and choose Freeze Top Row

    Click the Freeze Panes button to drop down the menu, then pick Freeze Top Row. Excel marks the freeze with a thin grey line under row 1 — it's subtle, so look closely along the row-number column.

  4. 04 /

    Test it by scrolling

    Scroll down a screen or two. Row 1 should stay put at the top while the rows beneath it move. If the headings scroll away, the freeze didn't take: check you clicked the right menu item and that you're on the sheet you think you are.

Freeze several rows, or rows and columns together

Freeze Top Row only ever freezes row 1. As soon as your headings occupy two or three rows, or you want the customer-name column to stay visible while you scroll sideways, you need the general Freeze Panes command and the right starting cell.

  1. 01 /

    Decide exactly what should stay visible

    Say it out loud: "rows 1 to 3, and column A". That decision tells you which cell to click in the next step.

  2. 02 /

    Click the single cell just below and to the right of that area

    For headings on rows 1–3 with no locked column, click A4. For row 1 plus column A, click B2. For rows 1–3 plus columns A and B, click C4. One cell, not a highlighted block.

  3. 03 /

    Choose View > Freeze Panes > Freeze Panes

    Pick the first item in the list, not Freeze Top Row or Freeze First Column. Those two shortcuts ignore your cell position and always use row 1 or column A.

  4. 04 /

    Check both directions

    Scroll down and then scroll right. The frozen block should stay anchored in the top-left corner, with a thin line marking both edges.

What freezes depends on the cell you select before choosing Freeze Panes.
You selectRows frozenColumns frozen
A1None — nothing is above or to the leftNone
A2Row 1None
A4Rows 1–3None
B2Row 1Column A
C4Rows 1–3Columns A and B

How to unfreeze rows again

  1. 01 /

    Click anywhere on the sheet

    No selection is needed — unfreezing applies to the whole worksheet.

  2. 02 /

    Go to View > Freeze Panes > Unfreeze Panes

    The Unfreeze option only lights up when that sheet actually has a freeze in place, which makes it a quick way to confirm whether a freeze is active.

  3. 03 /

    Scroll to verify

    The grey line disappears and the headings should now scroll out of view with the rest of the data.

You don't have to unfreeze before setting a new freeze — applying Freeze Panes again replaces the previous one. And because the setting is stored per worksheet, a freeze you can't shift on Sheet 2 might simply belong to Sheet 1: click through the tabs and check each one.

Keyboard shortcuts and faster routes

On Windows you can skip the mouse entirely. Press Alt, then W, then F to open the Freeze Panes menu. Once the menu is open, the underlined letters pick the item: F for Freeze Panes, R for Freeze Top Row, C for Freeze First Column and U for Unfreeze Panes. Repeat the same sequence to undo, so Alt, W, F, U is your quick release.

Excel for Mac has no shortcut assigned to freezing by default, so use View > Freeze Panes from the menu bar. The Excel apps for iPhone, iPad and Android also carry a Freeze Panes option on the View tab, with top-row and first-column choices, which is handy for checking a sheet on a phone but fiddly for anything more complex.

Don't confuse freezing with Split, which sits near it on the same View tab. Split gives you two or four independent scroll areas so you can compare distant parts of one sheet side by side; it's a different job from pinning headings.

Why Freeze Panes is greyed out — and how to fix it

Nine times out of ten the button is greyed out because Excel is busy doing something else, or because the sheet is locked. Work through these in order.

What you seeUsual causeFix
The whole button is pale and unresponsiveYou're still inside a cell in edit modePress Enter or Esc, then try the View tab again
Greyed out in one particular viewThe sheet is in Page Layout or Page Break PreviewView > Normal, then freeze
Works on some sheets, not othersThat worksheet is protectedReview > Unprotect Sheet — you'll need the password if one was set
The option is missing or much simplerYou're in Excel for the web or a mobile appUse the single Freeze Panes button there, after clicking the right cell
Unfreeze is greyed out but Freeze worksNo freeze is currently active on that sheetNothing to fix — freeze first, then unfreeze becomes available

Common mistakes worth avoiding

  • Clicking a whole row first. If you select row 1 from the row-number strip, the active cell is A1, so Freeze Panes has nothing above or to the left to pin. Nothing happens and it looks broken. Click a single cell instead.
  • Assuming Freeze Top Row adapts to your headings. It doesn't. If your header block runs to row 3, the one-click option leaves two of those rows scrolling away.
  • Freezing on the wrong sheet. Freezes are stored per worksheet. Set it on the summary tab and your detail tab is still naked.
  • Mistaking a freeze for hidden rows. Freezing changes nothing about the data; hiding rows removes them from view and from a printed page. If the row numbers skip, you've hidden rows, not frozen them.
  • Expecting the line to be obvious. The marker is a hairline, not a thick border. If you can't tell whether a freeze is on, the state of the Unfreeze Panes item tells you.
  • Freezing after applying a filter. Filters and freezes coexist fine, but if row 1 is filtered out of view the freeze keeps a blank strip at the top. Clear the filter before you set it up.

Frozen rows don't print — use Print Titles instead

A freeze affects what you see on screen; it has no effect on paper. If your goal is headings on every printed page, go to Page Layout > Print Titles, choose the Sheet tab, and set Rows to repeat at top to something like $1:$3. That setting is separate from the freeze, and you can happily use both: freeze on screen for day-to-day editing, print titles for the document you hand over.

Frequently asked questions

Does freezing a row change the data or the file size?

No. A freeze is purely a view setting stored with the worksheet. Sorting, formulas, filters, charts and file size are all unaffected, and anyone opening the file on a compatible version of Excel sees the same frozen rows.

Can I freeze a row in the middle of a long sheet?

Not with Freeze Panes. It only ever pins the area above and to the left of your active cell, so the rows you want to keep must sit at the top. For a row buried halfway down, either move that block of data to the top of the sheet or use Split to view two parts of the sheet at once.

Can I freeze different rows on different sheets?

Yes. Each worksheet keeps its own freeze, so you can pin row 1 on a data sheet, rows 1 to 4 on a dashboard tab, and leave a scratch sheet unfrozen. Select the sheet tabs one at a time to set or clear each freeze.

How do I do the same thing in Google Sheets?

Google Sheets puts it under View > Freeze, where you can pick 1 row, 2 rows, or 'up to current row' based on where your cursor is. The logic is the same: everything above the chosen row stays visible.

Why has my freeze vanished after someone else edited the file?

Common culprits are a re-saved copy that lost the view state, a sheet that was unprotected and re-protected, or an edit made in a different app. Simply re-apply the freeze: click the cell below your headings and choose View > Freeze Panes > Freeze Panes.

Search