Freezing Both Rows and Columns

by Allen Wyatt
(last updated February 2, 2019)

8

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

MORE FROM ALLEN

Macro Fails after AutoFilter

When developing a macro that others may use, you might want to test it out to make sure it works properly if an ...

Discover More

Working with E-mailed Documents

Ding! You've got mail. That mail has a Word document attached to it. Before you rush off and open that document, take a ...

Discover More

Searching for Adjectives and Adverbs

Searching for different types of words in your documents is a nice thing to contemplate, but it is much harder to do in ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (ribbon)

Displaying a Count of Zeros on the Status Bar

Excel allows you to display the results of several common worksheet functions on the status bar. The available functions ...

Discover More

Controlling Automatic Backups

Excel can make backups whenever you save your workbook. If you want to turn the feature on or off, this tip explains how ...

Discover More

Shortcut to Move between Two Worksheets

Moving between to adjacent worksheets is easy; Excel provides a shortcut key to do the trick. If you want to move between ...

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}] 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 two less than 5?

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

Karen

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

Mechie

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

Allen

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.

-Allen


2019-02-03 08:23:06

Mike

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