Frozen Panes in Excel: How to Lock Rows and Columns
In this article
To freeze panes in Excel, go to the View tab, click Freeze Panes, and select the option that fits your needs: Freeze Top Row, Freeze First Column, or Freeze Panes (for custom selections). This feature locks specific rows or columns in place, ensuring that your headers or key identifiers remain visible on the screen even as you scroll through thousands of rows or columns of data.
This is essential for maintaining context in large datasets. Without frozen panes, you have to scroll back to the top of the sheet to remember which column represents "Date" or "Total Revenue," which increases the likelihood of data entry errors and slows down your analysis.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- An open workbook containing a dataset with headers or identifying labels.
Step-by-Step
Depending on your goal, there are three different ways to apply this feature. Note that menu labels may differ slightly depending on your version of Excel or region.
Option 1: Freeze the Top Row
Use this when you have a single header row at the very top of your sheet.
- Open your Excel workbook and navigate to the worksheet you want to modify.
- Click on the View tab in the top ribbon menu.
- Click the Freeze Panes button.
- Select Freeze Top Row from the dropdown menu.
- Scroll down to verify that the first row remains visible.
Option 2: Freeze the First Column
Use this when your primary identifiers (like names or ID numbers) are in the leftmost column.
- Click on the View tab in the top ribbon menu.
- Click the Freeze Panes button.
- Select Freeze First Column from the dropdown menu.
- Scroll to the right to verify that column A remains visible.
Option 3: Freeze Multiple Rows and Columns (Custom)
Use this if you have multiple header rows or want to lock both a row and a column simultaneously.
- Identify the "intersection" cell. This is the cell immediately below the last row you want to freeze and immediately to the right of the last column you want to freeze.
- Example: To freeze the top two rows and the first column, click cell B3.
- Click on the View tab in the top ribbon menu.
- Click the Freeze Panes button.
- Select the first option in the list, titled Freeze Panes.
- Scroll in both directions to ensure the correct area is locked.
How to Unfreeze Panes
- Go to the View tab.
- Click Freeze Panes.
- Select Unfreeze Panes. This removes all locks from the current worksheet.
Common Mistakes
- Selecting the wrong cell for custom freezes: The most common error is clicking the cell you want to freeze. Excel freezes everything above and to the left of your selection. If you click cell A1 and select Freeze Panes, nothing will happen because there is nothing above or to the left of A1.
- Trying to freeze non-adjacent rows: You cannot freeze row 1 and row 5 while leaving row 2, 3, and 4 scrollable. Freezing always starts from the edge of the sheet (top or left) and continues in a solid block.
- Confusing Freeze Panes with Split: The "Split" tool divides the window into separate scrollable areas. While similar, Split allows you to see two different parts of the same sheet independently, whereas Freeze Panes is specifically for keeping headers static.
Tips
- Use Tables: If you convert your data range into an official Excel Table (Insert > Table), Excel automatically treats the top row as a header. When you scroll down, the column letters (A, B, C) are replaced by your table headers, often removing the need to manually freeze panes.
- Check your Zoom: If you are zoomed out too far, it may be difficult to see exactly where the freeze line is. Set your zoom to 100% when setting up your frozen panes for better precision.
- Print Titles: Remember that freezing panes only affects your screen view. It does not affect how the document prints. To keep headers on every printed page, go to Page Layout > Print Titles and specify the rows to repeat at the top.
Troubleshooting
If the Freeze Panes option is greyed out or not working as expected, try these steps:
- Exit Cell Edit Mode: If you are currently typing inside a cell (the cursor is blinking inside the cell), the ribbon options are disabled. Press Enter or Esc to exit the cell and try again.
- Check Page Layout View: Freeze Panes is not available in "Page Layout" view. Go to the View tab and ensure you are in Normal view.
- Check for Protected Sheets: If the worksheet is protected, some ribbon commands may be disabled. Go to the Review tab and check if it says "Unprotect Sheet." If so, you may need a password to unlock the sheet before modifying the view.
- Verify Selection: If you used the custom "Freeze Panes" option and it froze the wrong area, you must select Unfreeze Panes first before you can set a new freeze point.
Frequently Asked Questions
Can I freeze panes on the Excel mobile app?
Yes, though the interface differs. Generally, you select the row or column header and look for the "Freeze Panes" option within the menu that appears or under the View tab in the mobile ribbon.
Why can't I freeze only the middle of my spreadsheet?
Excel is designed to lock the "anchor" points of a dataset (the headers). Because of this, freezing must always begin from the top row or the leftmost column.
Does freezing panes slow down my computer?
No. Freezing panes is a visual setting and does not impact the processing speed or calculation performance of your workbook.
Can I freeze different rows on different sheets in the same file?
Yes. Freeze Panes settings are specific to each individual worksheet. You will need to apply the setting to each tab separately.
Will frozen panes be visible to other people when I share the file?
Yes. Freeze Panes are saved as part of the worksheet's view settings, so anyone who opens the file will see the same rows and columns locked.