How to Freeze 2 Rows in Excel
Learn how to freeze 2 rows in Excel to keep headers visible while scrolling. This practical guide covers Windows, Mac, and Excel Online with a clear, step-by-step approach.

In this guide you will learn how to freeze the top two rows in Excel so headers stay visible as you scroll. The steps work in Windows, Mac, and Excel for the web, and require only a workbook with data and Excel access. You’ll select the row beneath the two you want to freeze, then apply Freeze Panes.
What freezing panes accomplishes in Excel
Freezing panes pins specific rows or columns so they remain visible as you scroll through a worksheet. This is especially useful when you have headers in the top rows that describe your data. According to XLS Library, freezing panes is a foundational technique for improving data readability in large spreadsheets. When you freeze panes, Excel keeps the chosen rows (and/or columns) in view, while the rest of the sheet scrolls normally. This makes it easy to compare data across many rows without losing the header context. The technique works across Windows, macOS, and Excel Online, though the exact menu paths may differ slightly by platform. The overall goal is simple: keep critical context in view so you can interpret results correctly as you analyze trends and spot outliers more quickly.
Why two header rows matter in real-world workbooks
Header information often spans more than one row, such as a title row followed by descriptive subheaders. Freezing the first two rows ensures that both levels of context stay visible as you navigate long lists or complex datasets. This is particularly valuable in dashboards, sales reports, and inventory lists where headers define units, currencies, or time periods. By keeping the two header rows in view, you reduce misinterpretation of numbers and improve the speed of data validation and comparison. In practice, teams that rely on large Excel workbooks tend to adopt this approach as a standard operation.
Platform differences: Windows, Mac, and Excel Online
The core concept of freezing panes is consistent across platforms, but the menu paths can differ slightly. On Windows and Mac desktop versions, you typically use View > Freeze Panes > Freeze Panes. In Excel Online, the option appears under the View menu as well, though the exact wording and location may vary with updates. Regardless of platform, the important step is to select the row below the two you want to freeze, then apply Freeze Panes. If you’re working on a touch device, you can use the right-click context menu in some builds to access Freeze Panes.
The precise method to freeze exactly two rows
To freeze two header rows, click the row number 3 (the row beneath the two you want to freeze) to select the entire row. Then go to the View tab, choose Freeze Panes, and pick Freeze Panes. This pins rows 1 and 2 so they stay in place as you scroll. If you don’t see Freeze Panes, ensure you have an active worksheet with data and that you haven’t selected a merged cell that could disable the feature. Always save after applying the change to lock in your setup for the session.
Troubleshooting common issues and quick fixes
If Freeze Panes is greyed out, make sure you’re not editing a cell, and that you have a valid selection just below the rows you want to freeze. If the option doesn’t appear, look for alternatives like Freeze Top Row for a single-row header or Unfreeze Panes to reset the view. On some configurations, Excel may require a minor refresh or a reopening of the workbook to enable the command. Check for merged cells in the header area, as these can interfere with the Freeze Panes feature. Finally, verify you aren’t in protected view or read-only mode, which can disable editing commands.
Best practices for headers and readability in large datasets
Keep header formatting consistent to maximize the benefits of freezing panes. Use bold text, left alignment, and clear, concise labels to ensure headers convey the correct meaning at a glance. When freezing two rows, consider adding a subtle border or shading to the header rows to visually separate them from the data. Regularly test the view by scrolling to verify that headers remain in place during navigation. For extremely large datasets, combine freezing with filtered views or pivot tables to maintain performance and clarity.
Real-world example and validation: a quick checklist
Imagine a monthly sales sheet with a two-row header (title row and category row) and thousands of lines of transactions. Freezing the top two rows means you can scroll through the entire dataset while the column headers stay visible. To validate, manually scroll down a few hundred rows and confirm that the header rows remain locked in place. If they don’t, re-run the Freeze Panes command after selecting the correct row beneath the headers. This simple check saves time during data entry, auditing, and reporting.
Tools & Materials
- Microsoft Excel (Windows, Mac, or Online)(Ensure the version supports Freeze Panes and is up to date.)
- Workbook with data(Header rows you want to keep visible should be at the top (e.g., rows 1-2).)
- Mouse or trackpad (and keyboard)(Use the mouse to select the row beneath the headers; you can also use keyboard shortcuts to navigate and apply the command.)
Steps
Estimated time: 5-8 minutes
- 1
Open the workbook
Launch Excel and open the workbook that contains the data you want to view with headers. Ensure the sheet you’re editing has at least two header rows at the top.
Tip: Verify you’re on the correct worksheet before applying the change to avoid misaligned headers. - 2
Select the row below the headers
Click the row header for row 3 (or the row that immediately follows the two header rows you want frozen). This selects the entire row and establishes the anchor point for freezing.
Tip: If you want to freeze a different number of rows, adapt the selected row accordingly (e.g., select row 4 to freeze three header rows). - 3
Apply Freeze Panes
Navigate to the View tab, click Freeze Panes, and choose Freeze Panes from the dropdown. The top two rows will stay in view as you scroll.
Tip: If you don’t see Freeze Panes, check that you haven’t selected multiple regions or merged cells in the header area. - 4
Test by scrolling
Scroll down the worksheet to confirm the two header rows remain visible while the data moves past them.
Tip: Do another test on a large dataset to confirm stability across different scroll speeds. - 5
Save and validate changes
Save the workbook to retain the frozen rows. Reopen the file later and verify that the header rows remain frozen as expected.
Tip: Use a naming convention or a template to standardize this view across multiple worksheets.
People Also Ask
Can I freeze more than two rows?
Yes. To freeze more rows, select the row beneath the last header row you want to freeze and apply Freeze Panes. You can repeat by adjusting the anchor row for larger header blocks.
Yes. To freeze more rows, choose the row beneath the last header row and apply Freeze Panes. You can repeat for larger headers.
How do I unfreeze panes?
Go to View > Freeze Panes and select Unfreeze Panes. This restores the sheet to its normal scrolling behavior.
Go to View, then Freeze Panes, and choose Unfreeze Panes to restore normal scrolling.
What if Freeze Panes is greyed out?
Ensure you’re not editing a cell, and that you have a valid row selected beneath the headers. Merged cells or protected sheets can also disable the option.
If Freeze Panes is greyed out, select a valid row under the headers and ensure the sheet isn’t protected or using merged headers.
Does this work in Excel Online?
Yes. Freeze Panes works in Excel for the web with similar steps: select the row below the headers and apply Freeze Panes from the View menu.
Yes, Excel Online supports Freeze Panes; use the View menu to apply it just like in desktop versions.
Can I freeze both rows and columns at the same time?
Yes. Select the cell at the intersection of the rows and columns you want to keep visible (for example, B3 for two header rows and one fixed column), then apply Freeze Panes.
Yes. Pick the intersection cell, then Freeze Panes to lock both rows and columns as needed.
Watch Video
The Essentials
- Freeze two header rows to keep context visible.
- Select the row beneath the headers before applying Freeze Panes.
- The method works across Windows, Mac, and Excel Online.
- Unfreeze when you need unrestricted scrolling or to adjust headers.
