To freeze rows in Excel, select the cell immediately below the rows you want to keep visible, then go to View → Freeze Panes → Freeze Panes. To freeze only row 1, choose Freeze Top Row instead. For example, select A3 before freezing panes to keep rows 1 and 2 visible as you scroll down.
You can also freeze rows and columns together by selecting the cell below the desired rows and to the right of the desired columns. This is useful for long inventory lists, invoices, project trackers and financial reports. The feature changes your worksheet view without changing the data. The featured image is a conceptual illustration, not a screenshot of Excel.
In this guide
- Quick answer and cell selection guide
- 1. Freeze the top row
- 2. Freeze multiple rows
- 3. Freeze rows and columns together
- Practice with an inventory worksheet
- Excel for Mac and the web
- Unfreeze or change frozen panes
- Fix Freeze Panes problems
- Freeze Panes vs Split and Print Titles
- Frequently asked questions
- Related Excel guides
How to freeze rows in Excel: quick reference
| What to keep visible | Select this cell | Choose on the View tab |
|---|---|---|
| Row 1 only | Any cell | Freeze Top Row |
| Rows 1–2 | A3 | Freeze Panes |
| Rows 1–3 | A4 | Freeze Panes |
| Rows 1–5 | A6 | Freeze Panes |
| Column A only | Any cell | Freeze First Column |
| Row 1 and column A | B2 | Freeze Panes |
| Rows 1–2 and columns A–B | C3 | Freeze Panes |
| Remove all frozen panes | Any cell | Unfreeze Panes |
Start with an unfrozen worksheet scrolled to its upper-left corner for these examples. The general rule is that Freeze Panes locks rows above and columns to the left of the active cell. Selecting a cell in column A avoids freezing any columns. Selecting a cell in row 1 avoids freezing any rows. The exact command name may differ slightly between desktop and web versions.
1. How to freeze the top row in Excel
If your field names are in row 1, the dedicated Freeze Top Row command is the fastest way to keep them visible.
- Open your worksheet and scroll to the top.
- Select the View tab on the ribbon.
- Open Freeze Panes in the Window group on supported desktop versions.
- Choose Freeze Top Row.
- Scroll down the worksheet to confirm that row 1 stays visible.
A thin horizontal line normally marks the frozen boundary. If the top row contains a report title but the actual column headings are in row 2, use the multiple-row method below instead. Freezing a row does not prevent editing, deleting or sorting its contents; it only keeps it visible while scrolling.
2. How to freeze multiple rows in Excel
Use the main Freeze Panes command when you need two or more rows to stay visible. The most common mistake is selecting the last row you want frozen instead of the row immediately after it.
Freeze the first two rows
- If the sheet already has frozen panes, choose Unfreeze Panes first.
- Scroll to the upper-left corner of the worksheet.
- Click cell A3, which is immediately below row 2.
- Choose View → Freeze Panes → Freeze Panes.
- Scroll down and check that rows 1 and 2 remain visible.
Freeze the first three rows or more
Select A4 to freeze rows 1 through 3. To freeze the first five rows, select A6. The same pattern works for larger groups: choose column A in the row immediately following the last row you want fixed.
Avoid freezing more rows than necessary. On a small laptop display, a large frozen area can leave little space for scrolling through data. Zooming out may help, but freezing only essential headings is usually clearer.
3. How to freeze rows and columns in Excel at the same time
When a worksheet is wide as well as long, keep the headings visible vertically and the key identifiers visible horizontally. A single Freeze Panes command can lock both areas.
- Unfreeze any existing panes and return to cell A1.
- Decide how many rows and columns should remain visible.
- Select the cell immediately below those rows and immediately to the right of those columns.
- Choose View → Freeze Panes → Freeze Panes.
- Scroll both down and across to verify the result.
For example, B2 freezes row 1 and column A. C3 freezes the first two rows and first two columns. D4 freezes rows 1–3 and columns A–C. Do not apply Freeze Top Row followed by Freeze First Column expecting them to combine; use the main Freeze Panes command with the appropriate cell.
For the official instructions, see Microsoft’s guide to locking rows and columns with Freeze Panes.
Practice: freeze headings in an inventory worksheet
Create a blank worksheet called Inventory. Enter Inventory Report in A1, then add the following headings and fictional records starting in A2. The prices use a consistent unspecified currency.
| A: Item ID | B: Product | C: Stock | D: Unit Price | E: Location |
|---|---|---|---|---|
| P001 | Keyboard | 25 | 20 | Main |
| P002 | Mouse | 40 | 12 | Main |
| P003 | Monitor | 10 | 180 | Branch |
| P004 | Printer | 6 | 220 | Branch |
| P005 | Scanner | 8 | 150 | Main |
The headings are on row 2 and the data starts in row 3. Copy additional sample rows until the worksheet is long enough to scroll. To see the effect of horizontal freezing, add more columns such as Supplier, Reorder Level and Last Updated, and scroll across the sheet.
| Scenario | Select | Expected view |
|---|---|---|
| Keep report title and headings | A3 | Rows 1 and 2 stay visible; all columns can scroll. |
| Keep title, headings and item ID | B3 | Rows 1 and 2 and column A stay visible. |
| Keep title, headings, ID and product | C3 | Rows 1 and 2 and columns A and B stay visible. |
Unfreeze panes between each scenario, return to the upper-left corner and apply the next selection. In each case, verify the behavior by scrolling in both directions. The visible frozen headings should match the scenario, while the contents of the original cells remain unchanged.
If you want to make your inventory sheet easier to maintain, see our guide to creating Excel drop-down lists for consistent location or status values.
How to freeze rows in Excel for Mac and Excel for the web
Excel for Mac
Open the View tab in Excel for Mac and locate Freeze Panes. Select Freeze Top Row for one header row, or select A3 and use Freeze Panes to keep two rows visible. Ribbon placement and wording may differ from Windows. If the command is unavailable, return to Normal view and exit cell editing before trying again.
Excel for the web
Open your workbook in the browser, select the appropriate cell and use the Freeze Panes options on the View tab. Some versions label the general command Freeze at Selection. Use the dedicated top-row command when appropriate. If you cannot find the option, make sure you have editing permission and open the workbook in desktop Excel if necessary.
Freeze Panes is a view setting for the worksheet. Saving the workbook normally retains the setting, but behavior across viewers and exports can differ. Check the file after reopening if the frozen view is important to another user.
How to unfreeze rows or change existing frozen panes
- Open the View tab and select Freeze Panes.
- Choose Unfreeze Panes to remove the current frozen boundaries.
- Scroll back to the top-left corner and select the new target cell.
- Apply the new Freeze Panes setting and test the result.
Unfreezing does not delete data, formulas or formatting. To replace a two-row frozen area with three rows, unfreeze first and then select A4. Save the workbook if you want the updated view retained.
Freeze Panes not working in Excel? Try these fixes
| Problem | What to try |
|---|---|
| Freeze Panes is grayed out | Finish editing the current cell with Enter or Esc; switch to Normal view. |
| Wrong rows remain visible | Unfreeze, scroll to A1 and choose the cell directly below the intended rows. |
| Unwanted columns are frozen | Unfreeze and use a cell in column A when freezing rows only. |
| Rows and columns do not freeze together | Select the single intersection cell and use the main Freeze Panes command. |
| Too much of the worksheet is fixed | Unfreeze and select a smaller area. |
| Options are missing in a browser | Check editing access or use desktop Excel. |
| Headers are missing on printed pages | Set Print Titles separately; Freeze Panes is for screen viewing. |
If you use merged cells around the intended boundary, try an unmerged selection or adjust the layout in a copy of the workbook. Also check whether a Split view is active and whether the worksheet is protected or the workbook is open in a restricted editing mode. Avoid changing protection settings unless you are authorized to do so.
Freeze Panes vs Split, Excel tables and Print Titles
| Feature | Purpose |
|---|---|
| Freeze Panes | Keep a contiguous group of top rows or left columns visible while scrolling. |
| Split | Create separate scrolling areas for viewing different parts of the same worksheet. |
| Excel table headers | Help identify table columns while navigating a long formatted table in supported views. |
| Print Titles | Repeat selected rows or columns on printed pages. |
If you need row 5 to appear on every printed page, Freeze Panes will not solve the printing requirement. In desktop Excel, go to Page Layout → Print Titles and set Rows to repeat at top, for example $5:$5. Check Print Preview before printing. Availability in web versions differs. See Microsoft’s guide to repeating column headers on printed pages.
If you need to look at a row in the middle of the worksheet while scrolling through unrelated rows, Split or a second workbook window may be more appropriate. Freeze Panes is designed around contiguous rows and columns starting at the visible upper and left boundaries.
Frequently asked questions
How do I freeze rows 1 and 2 in Excel?
Scroll to the upper-left corner, select A3 and choose View → Freeze Panes → Freeze Panes. Both rows should stay visible when you scroll down.
Can I freeze row 5 without freezing rows 1 through 4?
Freeze Panes does not provide a normal option to pin an arbitrary middle row while the rows above it scroll independently in the same view. Consider Split or rearranging your headers. For printed pages, use Print Titles instead.
How do I freeze the first row and first column together?
Select B2 and use the main Freeze Panes command. This keeps row 1 and column A fixed in a single operation.
Does freezing rows protect them from editing?
No. Freeze Panes changes scrolling behavior. If you need to restrict editing, use appropriate worksheet protection and cell locking settings separately.
Can I freeze different rows on different worksheets?
Yes. Apply the appropriate Freeze Panes setting to each worksheet and save the workbook.
Will Freeze Panes change formulas or sorting?
No. Freezing is a display feature. Formulas remain intact, and normal sorting operations can still move records according to your selected range and sort settings.
Related Excel guides
- Compare two Excel sheets for differences
- Remove duplicates in Excel
- Combine multiple Excel files into one
- Create a drop-down list in Excel
- Add ChatGPT to Excel
Remember the selection rule: click below the last row and to the right of the last column you want to keep visible. A3 freezes two rows; C3 freezes two rows and two columns. Use Unfreeze Panes whenever you need to start again.
