How to Freeze Rows and Columns in Excel (Step-by-Step Guide)

When an Excel worksheet has hundreds of records, scrolling down can make the column headings disappear. Freeze Panes keeps selected headings visible so that you can check figures without repeatedly scrolling back to the top. This guide shows how to freeze the first row, several rows, or rows and columns together.
Quick reference: which cell should you select?
| What to keep visible | Cell or command |
|---|---|
| Row 1 only | Freeze Top Row |
| Rows 1 and 2 | A3, then Freeze Panes |
| Rows 1 to 4 | A5, then Freeze Panes |
| Column A only | Freeze First Column |
| Row 1 and column A | B2, then Freeze Panes |
| Rows 1 and 2, columns A and B | C3, then Freeze Panes |
1. How to freeze the top row in Excel
Open the worksheet in desktop Excel. If the headings are in row 1, open the View tab, expand Freeze Panes, and choose Freeze Top Row. Scroll down to confirm that the headings remain visible. This is useful for inventory lists, attendance registers, and expense trackers.
2. How to freeze multiple rows in Excel
Suppose row 1 contains a report title and row 2 contains the actual table headings. Freezing only the top row would leave the headings free to disappear. Instead, select cell A3 and choose the main Freeze Panes command on the View tab. Now both rows above A3 should stay on screen when you scroll.
The key principle is that the selected cell marks the beginning of the scrollable area. To keep the first five rows visible without freezing any columns, select A6. To keep only the first ten rows, use A11.
3. Freeze rows and columns at the same time
Consider a monthly sales report where column A contains product names and row 1 contains month names. Select B2 and apply Freeze Panes. When you scroll downward, the month headings remain visible; when you scroll sideways, the product names remain visible.
If the first two columns contain product codes and names, and the first two rows contain report headings, use C3 instead. You do not need to select an entire rectangle of cells.
4. Try this practice example
Enter the following sample records starting at A1. Add more records below the example so you have enough rows to scroll.
| Product | January | February | March |
|---|---|---|---|
| Notebook | 25 | 30 | 18 |
| Pen | 80 | 75 | 92 |
| Folder | 12 | 16 | 20 |
Apply Freeze Panes from B2. Add additional months to the right of March and scroll in both directions. The expected result is that the product column and month-header row stay visible while the sales figures move.
5. How to unfreeze rows in Excel
Return to the View tab, open the Freeze Panes menu and choose Unfreeze Panes. You can then choose a different starting cell and apply a new freeze setting. Unfreezing does not delete data, formulas, or formatting.
Troubleshooting: Freeze Panes is not working
- The wrong rows are frozen: unfreeze first, then select the cell immediately below the final row you want to retain.
- Extra columns are frozen: when you only want rows, start with a cell in column A.
- The command is unavailable: finish editing the active cell and return to Normal view if necessary. Menu names and availability may vary by Excel version and device.
- The headings still disappear: confirm you applied the setting to the intended worksheet rather than another sheet in the workbook.
Frequently asked questions
Can I freeze just row 5 without rows 1 to 4?
Not with ordinary Freeze Panes. The frozen region starts at the top or left edge of the worksheet. For a heading further down, consider moving it to the top or using a suitably structured Excel table.
Does freezing rows prevent other people from editing them?
No. Freeze Panes changes the worksheet view, not cell permissions. Worksheet protection is a separate feature.
Does freezing rows change the printed report?
No. For headings that repeat on printed pages, use Excel's separate Print Titles feature.
Conclusion
Use Freeze Top Row for simple lists, A3 for two header rows, and B2 for a single header row plus the first column. Choosing the correct starting cell makes large worksheets easier to navigate.
Related tutorial: How to find and highlight duplicates in Excel.
Reference: Microsoft Support – Freeze panes to lock rows and columns. The example data above is illustrative.
Comments
Post a Comment