Freezing Both Rows and Columns

by Allen Wyatt
(last updated February 2, 2019)


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 above which you want the rows frozen and to the left 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 and Excel in Office 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. ...


Changing Strikethrough Lines

Want to change the way a strikethrough line appears? It's not as easy as you think, as you find out in this tip.

Discover More

Suppressing a Zero in a Calculated Sum

You can use fields to calculate a sum of values in a table column. Here are two ways you can modify what the fields ...

Discover More

Using the MROUND Worksheet Function

If you want to round a value to some multiple of a whole number, you'll want to become familiar with the MROUND function. ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Using More CPU Power when Calculating

Today's PCs are more powerful than ever, but you can still have slowdowns when it comes to calculating large workbooks. ...

Discover More

Disabling the F1 Key

Tired of hitting the F1 key by mistake and pulling up the Help system? Here are a couple of ways (one drastic and one not ...

Discover More

Differences between Tables and Named Ranges

Excel allows you to define the data in a worksheet as a table. Doing so can provide some clear benefits over simply ...

Discover More

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

View most recent newsletter.


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 - 7?

2019-03-14 15:23:34

John Mann

Resonding to Karen: It is possible to both Freeze Panes and add/edit Headers and Footers, but it takes a slightly devious procedure to add/edit the header and/or footer, either before or after freezing the panes.

Instead of using Page Layout view, stay in Normal view and go to the Page Layout tab on the ribbon, find the Page Setup group and click the down arrow at the bottom right of the group. This opens the Page Setup dialogue box. Click the Header/Footer tab. Use this dialoge box to create or edit the header and footer for the sheet. Clicking the Custom Header or Custom Footer buttons will allow you to create or edit the Header of Footer.

Note that you can go directly to the Print Preview from this dialogue box, but I haven't found a direct way to return from the dialogue box to the Header/Footer dialogue box.

All this can be done without entering Page Layout View and without interfering with any Frozen Panes if they already exist, nor will it prevent you from freezing panes after adding header or footer.

If you try to go into Page Layout View, after freezing panes, then you do get a message advising that Page Layout View is incompatible with Freeze Panes and asking if you would like to unfreeze the panes. I also find that you can use the Page Break Preview without unfreezing panes.

I tested this in Excel 2010.

2019-02-11 13:07:45


I have noticed that if you have a header or footer, Freeze Panes will not work and the option will be grayed out. If you have frozen rows, columns or both and then add a header or footer, your rows and columns are no longer frozen.

2019-02-04 09:57:55


Ah... Gotta love the English language. We don't all process spatial aspects the same way, so one may have to find their own way of remembering how the Freeze Panes feature works relative to the selected cell. I like how John Mann expresses it: "In other words the frozen area is above and left of the selected cell". If it helps, another way to put it is that the selected cell is the top left corner of the scroll (scrollable) area. And don't read too much into the Ribbon icons. I don't think the asterisk was meant to represent the selected cell. (Eg - If one clicks on Freeze Top Row or Freeze First Column, it doesn't matter what cell is selected.)

2019-02-04 09:14:04

MIchael Armstrong

So, if the little icon in the Freeze Panes icon is to be believed, then rows beneath and columns to the right of the selected cell will scroll. Or, put another way, rows equal and above and columns equal and to the left will be frozen.

2019-02-03 19:09:13

John Mann

Allen & Mile,
I wonder if your arguing at cross puropses. If I select cell C3 and then choose "Freeze Panes", the result is rows 1 & 2 are frozen, as are columns A & B In other words the frozen area is above and left of the selected cell

2019-02-03 17:27:42

John Mann

Allen & Mile,
I wonder if your arguing at cross puropses. If I select cell C3 and then choose "Freeze Panes", the result is rows 1 & 2 are frozen, as are columns A & B In other words the frozen area is above and left of the selected cell

2019-02-03 08:59:38


Mike: No, it is above and to the left. It is those areas that are frozen. The areas below and to the right are free to scroll.


2019-02-03 08:23:06


I presume you mean "select a cell BELOW which you want the rows frozen and to the RIGHT of which you want the columns frozen."

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

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.