Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel: Keep Top Row Visible (Freeze Panes Guide)

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To keep the top row visible in Excel, use Freeze Panes: go to View > Freeze Panes > Freeze Top Row. This locks row 1 in place so it stays on screen while you scroll through the rest of the sheet. The same menu also lets you freeze just the first column or a custom set of rows and columns. The steps below apply to Excel for Microsoft 365, Excel 2021, 2019, and 2016 on Windows and Mac; labels can differ slightly by version, device, or region.

What You'll Need

  • Excel desktop app (Windows or Mac) or Excel for the web. The mobile apps have a different, more limited interface and do not offer the same Freeze Panes menu.
  • A workbook with data in the top row you want to keep visible.
  • No special permissions; freezing panes is a view setting and does not change the data.

Step-by-Step

  1. Open your workbook and click any cell in the sheet you want to adjust. You do not need to select the top row first.
  2. On the ribbon, click the View tab.
  3. In the Window group, click Freeze Panes. A small menu opens with three options.
  4. Choose Freeze Top Row. Excel immediately draws a thin horizontal line below row 1, and the row stays visible as you scroll down.
  5. To confirm it worked, scroll down several screens. Row 1 should remain at the top of the worksheet area while the row numbers below it change.
  6. To remove it later, return to View > Freeze Panes > Unfreeze Panes.

If you also want the first column visible, choose Freeze First Column instead. To freeze both the top row and the first column at once, click cell B2 first, then choose Freeze Panes (the first option in the menu). Excel freezes everything above and to the left of the selected cell, so selecting B2 locks row 1 and column A together.

For a custom freeze, such as keeping rows 1 through 3 visible, click the cell just below and to the right of the area you want frozen. For example, click cell A4 and then choose Freeze Panes to lock rows 1–3. The same logic applies to columns: click the cell to the right of the last column you want frozen.

Common Mistakes

  • Using Freeze Top Row when you need more than one row. That option only locks row 1. For two or more rows, select the cell below the last row you want frozen and use the general Freeze Panes command.
  • Freezing the wrong sheet. Freeze Panes applies only to the active worksheet. If you switch tabs, you must set it again on each sheet where you want it.
  • Confusing freeze with split. The Split command divides the window into scrollable panes but does not lock rows in place the same way. Use Freeze Panes for a persistent header.
  • Expecting the freeze to survive a new window. Opening the workbook in a new window or on another device may not carry the same view settings, depending on how the file was saved and which app you use.
  • Thinking the freeze changes the printout. Freeze Panes affects only the on-screen view. To repeat the top row on every printed page, use Page Layout > Print Titles > Rows to repeat at top.

Tips

  • Freeze Panes works best when your header row is actually row 1. If you have title rows above the header, either move the header to row 1 or use the custom Freeze Panes method to lock the rows you need.
  • You can combine a frozen top row with filters. Apply AutoFilter to the header row before or after freezing; the filter buttons stay visible along with the row.
  • If the frozen line is hard to see, check your gridline settings under View > Gridlines. The freeze line is a view indicator, not a border, so it will not print.
  • On Excel for the web, the Freeze Panes options are under View as well, but some custom selections may behave differently than in the desktop app. For complex freezes, use the desktop version.
  • Keep your header row short and clearly labeled. A frozen row takes up screen space, so a compact header leaves more room for data.

Troubleshooting

If the top row does not stay visible after you choose Freeze Top Row, first check that you are on the correct worksheet and that the View tab is showing the Freeze Panes menu rather than a greyed-out command. A greyed-out Freeze Panes option usually means the sheet is protected or the workbook is in a view mode that does not support it; unprotect the sheet under Review > Unprotect Sheet if you have the password, or switch back to Normal view under View > Normal.

If the freeze line appears in the wrong place, you likely used the general Freeze Panes command with the wrong cell selected. Click Unfreeze Panes, then reselect the correct cell (the one just below and to the right of the area you want frozen) and try again.

If Freeze Panes is unavailable in Excel for the web, make sure you are editing in the browser version that supports it and that the file is not in a restricted view. Opening the file in the desktop app is the most reliable fix.

If the frozen row disappears when you open the file on another computer, remember that view settings can vary by app and version. Reapply Freeze Panes on that device if needed.

Frequently Asked Questions

Does freezing the top row change my data?

No. Freeze Panes is a view setting only. It does not alter cell values, formulas, or formatting, and it does not affect how the file prints unless you also set Print Titles.

Can I freeze more than one row?

Yes. Click the cell immediately below the last row you want frozen, then choose View > Freeze Panes > Freeze Panes. For example, select A4 to freeze rows 1–3.

Why is Freeze Panes greyed out?

The sheet may be protected, or the workbook may be in a view that does not support freezing. Unprotect the sheet or switch to Normal view, then try again.

Does the frozen row print on every page?

No. Freeze Panes affects the screen only. To repeat the top row in print, go to Page Layout > Print Titles and set Rows to repeat at top.

Can I freeze the top row in Excel for the web?

Yes, the View tab in Excel for the web includes Freeze Panes options, though custom selections may behave differently from the desktop app. For complex freezes, use the desktop version.

How do I remove the freeze?

Go to View > Freeze Panes > Unfreeze Panes. This removes the freeze on the active sheet only; other sheets keep their own settings.