To make the first row in Excel stay visible while you scroll, use the Freeze Panes feature: select cell A2 (or any cell below the row you want to keep), then go to View > Freeze Panes > Freeze Top Row. On Excel for the web, the menu path is View > Freeze Panes > Freeze Top Row as well. This locks row 1 in place so it remains on screen no matter how far down you scroll, which is handy for keeping column headers in view. The steps below cover desktop Excel and mention where the web version differs slightly. Menu labels can vary a little by version and region, but the Freeze Panes option is present in all current versions.

What You'll Need

  • Excel installed on your computer (Windows or Mac) or a browser with Excel for the web.
  • A spreadsheet with data in the first row that you want to keep visible.
  • Basic familiarity with selecting cells and using the ribbon or menu bar.

Step-by-Step

  1. Open your Excel workbook and go to the sheet where you want the first row to stay.
  2. Click on cell A2. This is the cell just below the row you want to freeze. If you select a cell in row 1, the Freeze Top Row option will be greyed out because Excel needs a cell below the frozen area to know where to split the pane.
  3. On the ribbon, click the View tab. On Mac, the View tab is in the top menu bar; on Windows, it's in the ribbon at the top.
  4. In the Window group, click Freeze Panes. A dropdown menu appears.
  5. Choose Freeze Top Row. Excel immediately freezes row 1. You'll see a thin black line below row 1 indicating the frozen area.
  6. Scroll down the sheet to confirm that row 1 stays visible while the rest of the rows move.
  7. To unfreeze later, go back to View > Freeze Panes and select Unfreeze Panes. The line disappears and row 1 scrolls normally again.

If you want to freeze both the first row and the first column, select cell B2 instead of A2, then choose Freeze Panes from the dropdown (not Freeze Top Row). That freezes everything above and to the left of the selected cell. The Freeze Top Row option is a shortcut that always freezes row 1 regardless of which cell is selected, as long as you're not in row 1.

In Excel for the web, the steps are nearly identical: go to View > Freeze Panes > Freeze Top Row. The option may be under a slightly different group depending on your browser window size, but the View tab always contains it.

Common Mistakes

  • Selecting a cell in row 1 before freezing. If you click A1 and then try to freeze, the Freeze Top Row option is disabled. Always select a cell below the row you want to freeze, such as A2.
  • Using Freeze Panes instead of Freeze Top Row. The Freeze Panes option freezes based on the selected cell, so if you select A2 and choose Freeze Panes, it freezes only row 1 (same as Freeze Top Row). But if you select B2, it freezes both row 1 and column A. Freeze Top Row is a dedicated command that always freezes just row 1, which is safer if you only want the header row locked.
  • Forgetting that freezing affects only the current worksheet. Each sheet has its own freeze setting. If you switch to another sheet, you'll need to set it there separately.
  • Expecting the frozen row to print on every page. Freezing panes only affects the on-screen view. To repeat row 1 on printed pages, you need to set a print title via Page Layout > Print Titles.
  • Not noticing the freeze line. The thin line below row 1 can be subtle. If you don't see it, check that you actually applied the freeze and that you're not in a view mode like Page Layout that hides it.

Tips

  • Use Freeze Top Row when you only need the header row visible. It's a one-click solution that doesn't depend on cell selection.
  • If you have a table with a header row that isn't row 1 (for example, row 1 is a title and row 2 has headers), select the cell below the header row (like A3) and use Freeze Panes instead. That freezes rows 1 and 2.
  • To freeze multiple rows, select the cell just below the last row you want frozen, then choose Freeze Panes. For example, to freeze rows 1 through 3, select A4 and click Freeze Panes.
  • Keyboard shortcut: Alt+W, then F, then R (Windows) opens the Freeze Panes menu. On Mac, there's no default shortcut, but you can add one via System Preferences > Keyboard > Shortcuts.
  • If you often need to freeze the top row, consider adding the Freeze Panes button to the Quick Access Toolbar: right-click the Freeze Panes button and choose Add to Quick Access Toolbar.
  • Freezing panes works in Excel for Windows, Mac, and the web. The mobile apps have limited support; freezing is not available in the Excel mobile app for iOS or Android, so use a desktop or web browser for this feature.

Troubleshooting

  • The Freeze Top Row option is greyed out. This happens when you have a cell in row 1 selected, or when the sheet is protected. Click a cell below row 1 (like A2) and try again. If the sheet is protected, you'll need to unprotect it via Review > Unprotect Sheet (you'll need the password if one was set).
  • The freeze line appears but row 1 still scrolls. Make sure you didn't accidentally freeze a different row. Go to View > Freeze Panes; if Unfreeze Panes is available, click it, then reapply Freeze Top Row. Also check that you're not in Page Layout view, which can hide the freeze line; switch to Normal view via View > Normal.
  • Freeze Panes is missing from the View tab. This can occur in Excel for the web if the window is too narrow; try maximizing the browser window or collapsing the ribbon. In desktop Excel, the View tab always has it unless the workbook is in a special mode like Protected View; click Enable Editing if you see a yellow bar.
  • The frozen row doesn't stay when you close and reopen the workbook. Freeze panes are saved with the workbook, so they should persist. If they don't, check that you saved the file after applying the freeze. Also, if the file is in .csv format, freeze panes are not supported; save as .xlsx instead.
  • You want to freeze the top row but also keep a split view. Freeze Panes and Split are separate features. Applying one doesn't remove the other, but they can conflict visually. Unfreeze panes before using Split, or use Freeze Panes for a simpler result.

Frequently Asked Questions

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

Yes. Excel for the web supports Freeze Panes. Go to View > Freeze Panes > Freeze Top Row. The option is available in the ribbon just like in the desktop version.

Does freezing the top row affect printing?

No. Freezing panes only changes the on-screen view. To repeat row 1 on every printed page, use Page Layout > Print Titles and set the row to repeat.

How do I freeze both the first row and the first column?

Select cell B2, then go to View > Freeze Panes > Freeze Panes (not Freeze Top Row). This freezes everything above and to the left of B2, which includes row 1 and column A.

Why is Freeze Top Row greyed out?

Most often because a cell in row 1 is selected. Click a cell below row 1 (such as A2) and try again. It can also be greyed out if the worksheet is protected; unprotect it via Review > Unprotect Sheet.

Can I freeze more than one row at the top?

Yes. Select the cell just below the last row you want frozen (for example, A4 to freeze rows 1–3), then choose View > Freeze Panes > Freeze Panes. The Freeze Top Row command only freezes row 1.

Is there a keyboard shortcut to freeze the top row?

In Windows Excel, press Alt+W, then F, then R to open the Freeze Panes menu and choose Freeze Top Row. On Mac, there is no default shortcut, but you can assign one via System Preferences > Keyboard > Shortcuts.