What freezing rows and columns does

Freezing locks certain rows or columns in place so they remain visible when you scroll through the rest of your spreadsheet. This is useful when you have headers at the top or labels on the left that you want to see no matter where you navigate. Excel calls this feature "Freeze Panes," and it works by splitting your view into locked and scrollable sections.

When you freeze rows, the rows above your cursor stay put while everything below scrolls normally. When you freeze columns, the columns to the left of your cursor stay put while everything to the right scrolls. You can freeze both rows and columns at the same time by selecting the right starting point.

The frozen area does not move or change — it is simply locked in your view. The rest of the spreadsheet scrolls behind it. You can unfreeze at any time by going back to the same menu.

Key Takeaways

  • Freezing rows and columns keeps headers visible while you scroll through data, and you control exactly which rows and columns freeze by where you click before selecting Freeze Panes.
  • To freeze only horizontal rows, click on the row number below the rows you want to lock, then go to View and select Freeze Panes.
  • To freeze both rows and columns at the same time, click on the cell where the locked area should end, then select Freeze Panes from the View menu.
  • You can unfreeze at any time by returning to View and selecting Unfreeze Panes, which removes all locks at once.
  • Frozen panes stay frozen when you save the file, so other people opening your spreadsheet will see the same locked view.

How to freeze only horizontal rows

To lock rows at the top of your spreadsheet in place, start by clicking on the row number of the first row you want to scroll. For example, if you want to keep rows 1 and 2 frozen and scroll everything below them, click on the number 3 on the left side of the spreadsheet.

Once you have selected that row, go to the View tab at the top of the ribbon. Look for the button labeled Freeze Panes and click it. A small menu will appear with options. Select Freeze Panes from that menu. You will see a thin line appear below row 2, showing that rows 1 and 2 are now locked.

Now when you scroll down, rows 1 and 2 will stay at the top of your screen while the rest of the data moves. The frozen rows will not scroll with the rest of the spreadsheet.

How to freeze both rows and columns together

If you need to lock both the top rows and the left columns — for example, to keep row headers visible and column labels visible at the same time — you need to select the cell where the frozen area should end. Click on the cell that is one row below and one column to the right of the area you want to freeze.

For example, if you want rows 1 through 3 and columns A through C to stay locked, click on cell D4. Then go to the View tab, click Freeze Panes, and select Freeze Panes from the menu. You will see two thin lines — one below row 3 and one to the right of column C — showing that both areas are now locked.

When you scroll, rows 1 through 3 will stay at the top and columns A through C will stay on the left. The rest of the spreadsheet scrolls freely in both directions.

Common mistakes when freezing panes

The most common mistake is clicking on the wrong row or column. Remember: you click on the row or column below or to the right of what you want to freeze, not on the row or column you want to lock. If you freeze the wrong area, just go back to View, click Freeze Panes, and select Unfreeze Panes to start over.

Another mistake is trying to freeze a row in the middle of your data without freezing the rows above it. Excel freezes everything from the top down to your selection, so you cannot freeze row 5 alone — you will freeze rows 1 through 5. If you only want certain rows locked, make sure they are at the top or left edge of your spreadsheet.

Some people also freeze panes and then forget they did it, becoming confused when the top rows do not scroll with the rest. If your spreadsheet is not scrolling the way you expect, check the View menu to see if Freeze Panes is active. The option will show Unfreeze Panes instead of Freeze Panes if something is currently frozen.

How to unfreeze rows and columns

To remove all frozen panes at once, go to the View tab and click Freeze Panes. The menu will show Unfreeze Panes instead of Freeze Panes. Click that option and all locks will be removed. Your spreadsheet will scroll normally again.

There is no way to unfreeze only rows or only columns — unfreezing removes all frozen areas. If you want a different set of rows or columns frozen, unfreeze first, then select your new starting point and freeze again.

What happens when you save and share a frozen spreadsheet

When you save a file with frozen panes, Excel remembers the frozen areas. The next time you or anyone else opens that file, the same rows and columns will be frozen. This is helpful if you are sharing a spreadsheet with others and want them to see the headers locked in place.

If someone else opens your file and does not want the panes frozen, they can unfreeze them the same way you would — by going to View and selecting Unfreeze Panes. Their change will only affect their copy of the file unless they save it and send it back to you.

Freezing panes in different versions of Excel

The Freeze Panes feature works the same way in Excel for Windows and Excel for Mac. Both use the View tab and the same menu options. If you are using Excel Online (the web version), the feature is also available in the same location, though the ribbon layout may look slightly different.

If you are using an older version of Excel, the View tab and Freeze Panes button are still there, but the ribbon may be organized differently. Look for the View menu at the top and search for Freeze Panes. The steps are the same regardless of which version you have.

Frequently Asked Questions

Can I freeze only the first row?

Yes. Click on row 2 (the row number on the left side), then go to View and select Freeze Panes. Only row 1 will be locked. This is the most common use for the feature when you have column headers in the first row.

What if I freeze the wrong rows by mistake?

Go to View, click Freeze Panes, and select Unfreeze Panes to remove all locks. Then click on the correct row or cell and freeze again. There is no penalty for unfreezing and refreezing.

Can I freeze rows in the middle of my spreadsheet?

No. Excel always freezes from the top down or from the left across. If you need rows in the middle to stay visible, move them to the top first, freeze them, then move them back. Or use filtering instead to hide rows you do not need to see.

Does freezing panes affect printing?

Freezing panes only affects what you see on screen — it does not change how the spreadsheet prints. When you print, frozen rows and columns will print normally with the rest of the data. If you want headers to repeat on every printed page, use the Print Titles feature instead, which is also in the Page Layout tab.

Can I freeze panes in a shared Excel file?

Yes. Freeze panes works in shared files the same way it works in regular files. When you freeze and save, other people will see the frozen panes when they open the file. Each person can unfreeze on their own copy if they prefer.