Freezing Both Rows and Columns

Written by Allen Wyatt (last updated June 29, 2025)
This tip applies to Excel 2019, 2021, 2024, and Excel in Microsoft 365


2

Arvid notes that in older versions of Excel he was able to freeze both a row and a column by selecting a cell at the required intersection. Once done, the left and top portions of the worksheet would remain visible when scrolling. Now Arvid can only find the option to freeze either a row or a column, but not both. He wonders if he is missing something.

Somewhere over the past few versions of Excel, Microsoft changed how you freeze both columns and rows. Actually, they didn't change how you freeze them; they changed how the freezing is displayed in the various options available from the ribbon. Here's how you go about it.

First, select a cell below which you want the rows frozen and to the right of which you want the columns frozen. For instance, if you want to freeze the first 2 rows and leftmost column, choose cell B3.

Now display the View tab of the ribbon and click the Freeze Panes tool. Excel displays some options that you can choose from. (See Figure 1.)

Figure 1. The Freeze Pane Options

It is the very first option—Freeze Panes—that you want to select. If you select either of the other two, then you'll only freeze either the rows above or columns to the left of the select cell.

There is a caveat here, and it could be the cause of the confusion for Arvid. When you click the Freeze Panes tool, what you then see may not match what is shown in the previous figure. It is very possible that the first option will not be Freeze Panes but will instead be Unfreeze Panes. This is the case if there are already frozen panes in the worksheet. (In other words, someone previously chose any of the three options available through the Freeze Panes tool.) Microsoft refers to this ability to modify tool options based on the actual conditions in the workbook as "dynamic menus," and it can throw users for a loop at times.

If you see the Unfreeze Panes option, simply select it (this removes any panes already defined) and then click the Freeze Panes tool one more time and you should see the Freeze Panes option available in that first position.

If you are a keyboard type of person, you can instead use the keystrokes Alt+W, F, F to both freeze and unfreeze panes—it acts as a toggle.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13616) applies to Microsoft Excel 2019, 2021, 2024, and Excel in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Picking a Starting Label

If you use the Labels feature in Word, you may want to specify which label to use as the starting point when printing. ...

Discover More

Losing Formatting

When you save a workbook, you expect Excel to remember the formatting you applied in the worksheets in that workbook. If ...

Discover More

Determining the Week of the Year

If you are working with dates in a macro, you may need to determine which week of the year a date falls within. This can ...

Discover More

Program Successfully in Excel! This guide will provide you with all the information you need to automate any task in Excel and save time and effort. Learn how to extend Excel's functionality with VBA to create solutions not possible with the standard features. Includes latest information for Excel 2024 and Microsoft 365. Check out Mastering Excel VBA Programming today!

More ExcelTips (ribbon)

Disappearing Status Bar

Ever had your Excel status bar disappear unexpectedly? Here's some ideas on why this may be happening.

Discover More

Selecting Multiple Cells by Mistake

Click on a cell and you expect the single cell to be selected. If you instead get a group of cells, it can be frustrating ...

Discover More

Problems Pasting Information into a Worksheet

What do you do if pasting information into a worksheet brings Excel to its knees? This tip looks at just a few ideas you ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 7 + 8?

2025-06-28 23:22:41

Tomek

Further to my just-posted comment:
If you want to freeze several columns only, or several rows only, you have to use the Freeze Panes option, just select the cell in the first row to freeze just columns, or in the first column to freeze just rows. For example to freeze rows 1-4, select cell A5, then click Freeze Panes.


2025-06-28 23:14:44

Tomek

RE: It is the very first option—Freeze Panes—that you want to select. If you select either of the other two, then you'll only freeze **either the rows above** or **columns to the left**of the select cell.
(see Figure 1 below)

Actually, the other two options freeze only **one** row or column and it is either the first visible row or the first visible column. It will not be row 1 or column A, if they were not visible on the screen. If there are rows above that frozen row or to the left of the frozen column, they remain invisible and hard to access. You can still edit the content of the cells beyond the left or top edge of the sheet by using Go-To command (F5) or the name box, but you won't see the result of a formula you put there.

Figure 1. 


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.