How to Keep the Top Row Visible While Scrolling in Excel
Question details
The user wants to lock the first row of an Excel worksheet so that column headers stay on screen when scrolling down.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Working with large datasets where column headings need to remain visible for context while analyzing or entering data.
- Observed behavior
- The user needs the top row to be frozen in place instead of scrolling out of view when moving down the spreadsheet.
Ensure your Excel view is set to 'Normal' (at the bottom right of the screen), as the freeze panes feature may be unavailable or work incorrectly in 'Page Layout' view.
Use the Freeze Top Row Feature
This is the quickest and most direct method to lock the first row of your spreadsheet so it always stays visible.
Excel has a built-in preset specifically designed to lock the very first row of your current view. This will override any previously frozen panes.
Click anywhere in your Excel worksheet, then navigate to the 'View' tab located in the top menu ribbon.
Look for the 'Window' group on the ribbon, and click on the 'Freeze Panes' dropdown button.
Choose 'Freeze Top Row' from the dropdown menu. A faint continuous line will appear beneath row 1, indicating that it is now locked.

Freeze Multiple Rows Including the Header
Use this method if your headers span across multiple rows at the top of the sheet, such as rows 1 and 2.
Freeze Rows and Columns Effortlessly in WPS Office
WPS Spreadsheet offers a highly intuitive interface to freeze rows, columns, or specific panes, making it incredibly easy to manage large datasets. It is lightweight, fast, and fully compatible with Microsoft Excel formats.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your .xlsx spreadsheet document.
- 2. Navigate to the View tab: Click on the 'View' tab in the top menu ribbon.
- 3. Freeze the Top Row: Select the 'Freeze Panes' tool and click 'Freeze Top Row'. Your headers are now perfectly locked in place.

Frequently Asked Questions
How do I unfreeze the top row in Excel?
To unfreeze the row, go to the 'View' tab, click 'Freeze Panes', and select 'Unfreeze Panes' from the dropdown menu. The locked row will return to normal scrolling behavior.
Why is the Freeze Panes option grayed out?
The 'Freeze Panes' option may be disabled if you are in 'Page Layout' view, if a cell is currently in editing mode (cursor blinking inside a cell), or if the worksheet is protected. Press 'Esc' to exit cell editing mode and switch to 'Normal' view.
Can I freeze both the top row and the first column at the same time?
Yes. To freeze both, select cell B2 (the cell immediately below row 1 and to the right of column A), then go to View > Freeze Panes and click the primary 'Freeze Panes' option. This locks everything above and to the left of your active cell.
Does freezing the top row affect how the document prints?
No, freezing panes only changes how the spreadsheet is displayed on your computer screen. If you want the top row to repeat on every printed page, you must use the 'Print Titles' feature located in the 'Page Layout' tab.




