WP Workflow Picks
excelfreeze panesspreadsheets

Excel Freeze Top Row: Keep Headers Visible on Windows, Mac and Web

How to freeze the top row in Excel on Windows, Mac and the web, the keyboard shortcut, how to unfreeze, and what to check when Freeze Panes is greyed out.

WP Workflow Picks team · · 5 min read · 6 sources
Churchill Club Top 10 Tech Tech Trends Debate 2013 — I chose Deep Learning / Machine Learning
Photo: jurvetson (CC BY 2.0) via Openverse

To freeze the top row in Excel, go to the View tab, open Freeze Panes, and choose Freeze Top Row. Row 1 now stays in place while you scroll down, and a thin line appears under it to show where the freeze is.

That covers most people. The rest of this guide explains the Mac and web versions, how to freeze more than one row, how to undo it, and what to check when the button won’t cooperate. Steps reflect Microsoft’s documentation as of November 2026; ribbon layouts do shift between versions, so labels may look slightly different on your screen.

Freeze the top row in Excel for Windows

Microsoft’s Freeze panes support article lists this as applying to Excel for Microsoft 365, Excel for the web, and Excel 2016 through 2024.

  1. Open the worksheet you want to change. Freezing is set per sheet, so each tab needs its own freeze.
  2. Select the View tab on the ribbon.
  3. Select Freeze Panes.
  4. Choose Freeze Top Row.

You don’t need to select any particular cell first. As Automate Excel points out, Freeze Top Row freezes only row 1 regardless of which cell is active.

Keyboard shortcut

There’s no single-key shortcut, but the ribbon key sequence works well once it’s in muscle memory. Press and release these keys one after another (don’t hold them together):

  • Alt, W, F, R to freeze the top row
  • Alt, W, F, U to unfreeze (when something is already frozen, this option replaces Freeze Panes in the menu)

These are ribbon access keys rather than documented shortcuts, so they follow the menu labels. If a future update renames a command, the letter may change too.

Freeze the top row in Excel for Mac

Microsoft’s Excel for Mac article gives a slightly shorter path, because on the Mac the options appear as separate buttons on the View tab:

  1. Select the View tab.
  2. Select Freeze Top Row.

If the freeze buttons are greyed out, Microsoft’s advice is to select Normal on the View tab first, since the commands aren’t available in Page Layout view.

You may see older tutorials that tell Mac users to go through the Window menu. That path doesn’t appear in Microsoft’s current Mac documentation, so stick with the View tab.

Freeze the top row in Excel for the web

Excel for the web uses the same View tab approach: View > Freeze Panes > Freeze Top Row. Microsoft’s Unfreeze panes page covers the web version alongside the desktop apps.

One practical catch: if the workbook opened in a read-only or viewing mode, you may need to switch to editing before the freeze options show up on the ribbon.

Freeze more than one row (or rows and columns)

Freeze Top Row only ever locks row 1. If your headers span two or three rows, or you have a title above the header row, use Freeze Panes instead:

  1. Select the cell directly below the last row you want to keep visible, and to the right of any columns you want to keep visible.
    • To freeze rows 1 to 3 only, select cell A4.
    • To freeze row 1 and column A together, select cell B2.
  2. Go to View > Freeze Panes > Freeze Panes.

Microsoft’s guidance is the same rule in one line: everything above and to the left of the selected cell stays put.

GoalCommandWhat to select first
Lock row 1 onlyFreeze Top RowNothing in particular
Lock column A onlyFreeze First ColumnNothing in particular
Lock several top rowsFreeze PanesFirst cell in column A below those rows
Lock rows and columns togetherFreeze PanesCell below and to the right of the area to lock

How to unfreeze

Go to View > Freeze Panes > Unfreeze Panes (on the Mac, View > Unfreeze Panes). This removes every frozen row and column on the sheet at once. There’s no separate “unfreeze top row” command, so if you had row 1 and column A frozen and only want the column, unfreeze everything and then apply Freeze First Column.

Freeze Panes greyed out? What to check

Most “it won’t freeze” problems come down to a few causes. Microsoft documents the first one; the others are widely reported in Excel forums and troubleshooting guides, so treat them as a practical checklist rather than an official list.

  1. You’re in Page Layout view. Freeze Panes isn’t available there. Switch to View > Normal.
  2. You’re still editing a cell. If the cursor is blinking inside a cell or the formula bar, most ribbon commands are disabled. Press Enter or Esc, then try again.
  3. The file is in Protected View. Files from email or the internet often open this way. Select Enable Editing on the yellow bar.
  4. The sheet or workbook is protected. Protection can block changes to the window layout. If you own the file, remove the protection; if you don’t, ask the person who set it. Forum reports suggest protection isn’t always the only factor, so check the other items too.

If you see a split line with two independent scroll bars instead of a frozen header, you’ve turned on Split rather than Freeze Panes. Split divides the window into separately scrollable areas. Turn it off with View > Split and use Freeze Panes instead.

Excel Tables keep headers visible without freezing

If your data is formatted as a Table (Insert > Table), Excel already helps: when the active cell is inside the table and you scroll past the header row, the table’s column names replace the A, B, C letters at the top of the grid. MrExcel describes this as an easy way to keep headings in view.

It has limits. It only works while a cell inside the table is selected, it shows a single header row, and it doesn’t lock a column when you scroll sideways. For anything beyond that, Freeze Panes is still the tool.

Repeating the header row when printing

Freezing is purely an on-screen setting. It does nothing for printouts. To repeat your header row on every printed page, use Print Titles, as described in Microsoft’s print headers article:

  1. Go to Page Layout > Print Titles.
  2. On the Sheet tab, click in Rows to repeat at top.
  3. Enter $1:$1 for row 1 (or click the row number on the sheet).
  4. Select OK, then check File > Print and look at page 2 to confirm.

Quick recap

  • Top row only: View > Freeze Panes > Freeze Top Row (Mac: View > Freeze Top Row).
  • Several rows: select the cell below them, then View > Freeze Panes > Freeze Panes.
  • Undo: View > Freeze Panes > Unfreeze Panes.
  • Greyed out: switch to Normal view, finish editing the cell, enable editing, check protection.
  • Printing: use Print Titles, not Freeze Panes.

Frequently asked questions

Does Freeze Top Row depend on which cell I have selected? +

No. Freeze Top Row always locks row 1 of the visible sheet, whatever cell is active. If you want to lock more than one row, use Freeze Panes instead and select the cell directly below the last row you want to keep visible.

Will freezing the top row make it print on every page? +

No. Freezing only affects what you see on screen. To repeat a header row on printed pages, use Page Layout > Print Titles and enter the row (for example $1:$1) in the Rows to repeat at top box.

Can I unfreeze just the top row and keep a frozen column? +

Not directly. Excel has a single Unfreeze Panes command that removes all frozen rows and columns at once. Unfreeze, then re-apply the freeze you actually want.

Why is Freeze Panes greyed out? +

The most common causes are being in Page Layout view or still editing a cell. Switch to Normal view on the View tab and press Enter or Esc to finish editing; if it is still unavailable, check whether the sheet is protected or the file is open in Protected View.

Sources

  1. Freeze panes to lock rows and columns (Microsoft Support) (support.microsoft.com)
  2. Freeze panes to lock the first row or column in Excel for Mac (Microsoft Support) (support.microsoft.com)
  3. Unfreeze panes (Microsoft Support) (support.microsoft.com)
  4. Print rows with column headers on top of every page (Microsoft Support) (support.microsoft.com)
  5. Freeze / Unfreeze Panes – Excel & Google Sheets (Automate Excel) (automateexcel.com)
  6. How to See Headings as You Scroll Around a Report (MrExcel) (mrexcel.com)
About this guide. Researched and drafted with AI assistance from the sources above, then checked against our editorial rules. It reflects what was publicly known on November 11, 2026; details can change, so confirm with the official source before acting on it. How we work →

Our reviews

In-depth reviews from Workflow Picks that go with this topic.

Keep reading