How do I freeze both rows and columns at the same time in Excel?

Freeze panes to lock rows and columns

Excel for Microsoft 365 Excel for the web Excel 2021 Excel 2019 Excel 2016 Excel 2013 Excel 2010 Excel 2007 More...Less

To keep an area of a worksheet visible while you scroll to another area of the worksheet, go to the View tab, where you can Freeze Panes to lock specific rows and columns in place, or you can Split panes to create separate windows of the same worksheet.

Freeze rows or columns

Freeze the first column

  • Select View Freeze Panes > Freeze First Column.

            The faint line that appears between Column A and B shows that the first column is frozen.

Freeze the first two columns

  1. Select the third column.

  2. Select View > Freeze Panes > Freeze Panes.

Freeze columns and rows

  1. Select the cell below the rows and to the right of the columns you want to keep visible when you scroll.

  2. Select View Freeze Panes > Freeze Panes.

Unfreeze rows or columns

  • On the View tab > Window > Unfreeze Panes.

    Note: If you don’t see the View tab, it’s likely that you are using Excel Starter. Not all features are supported in Excel Starter.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

See Also

Freeze panes to lock the first row or column in Excel 2016 for Mac

Split panes to lock rows or columns in separate worksheet areas

Overview of formulas in Excel

How to avoid broken formulas

Find and correct errors in formulas

Keyboard shortcuts in Excel

Excel functions (alphabetical)

Excel functions (by category)

Need more help?

I have Excel 365 for Mac. I need to freeze my Column A and Rows 1-3 at the same time. Excel Help says I can do this via View > Freeze Panes but in View I see no such option, only Unfreeze Panes, Freeze Top Row and Freeze First Column.

(It used to be easy in Excel fro Mac 2016!)

THANKS EVERYBODY - and Happy New Year despite everything.

CN

View best response

Topics Map > Office 365 > Excel

To keep an area of a worksheet visible while you scroll to another area of the worksheet, go to the View tab, where you can Freeze Panes to lock specific rows and columns in place, or you can Split panes to create separate windows of the same worksheet.

Freezing panes versus splitting panes

When you freeze panes, Microsoft Excel keeps specific rows or columns visible when you scroll in the worksheet. For example, if the first row in your spreadsheet contains headers, you might freeze that row to make sure that the column headers remain visible as you scroll down in your spreadsheet.

A solid line under row 1 indicates that the row is frozen to keep column headers in place when you scroll.

Splitting panes is a variation on freezing panes, in that when you split panes, Excel creates either two or four separate worksheet areas that you can scroll within, while rows or columns in the non-scrolled area remain visible.

Note: You cannot freeze panes and split panes at the same time. You can enable only one of the two.

Freeze rows or columns

Before you choose to freeze rows or columns in a worksheet, it’s important to consider the following:

  • You can freeze only rows at the top and columns on the left side of the worksheet. You cannot freeze rows and columns in the middle of the worksheet.

  • The Freeze Panes command is not available when you're in cell editing mode (that is, you're entering a formula or data in a cell) or when a worksheet is protected. To cancel cell editing mode, press Enter or Esc.

You can choose to freeze just the top row of your worksheet, just the left column of your worksheet, or multiple rows and columns simultaneously. For example, if you freeze row 1 and then decide to freeze column A, row 1 will no longer be frozen. If you want to freeze both rows and columns, you need to freeze them at the same time.

  1. Do one of the following:

    • To lock one row only, choose the View tab, and then click Freeze Top Row.

    • To lock one column only, choose the View tab, and then click Freeze First Column.

    • To lock more than one row or column, or to lock both rows and columns at the same time, choose the View tab, and then click Freeze Panes. You will want your cursor to be below the row(s) you want to freeze and to the right of any column(s) you want to freeze.

    • To lock multiple rows (starting with row 1), select the row below the last row you want frozen, choose the View tab, and then click Freeze Panes.

    • To lock multiple columns, select the column to the right of the last column you want frozen, choose the View tab, and then click Freeze Panes.

Note: If you don’t see the View tab, it’s likely that you are using Excel Starter. 

Freeze the top row and the first column at the same time

To freeze the top row and the first column at the same time, click the View tab > Freeze Panes > Freeze Panes.

Freeze the top row

Notice that the border under row 1 is a little darker than other borders, meaning that the row above it is frozen.

Freeze the first column

If you'd rather freeze the leftmost column instead, click the View tab > Freeze Panes > Freeze First Column.

Now, the line to the right of column A is a little darker than the other lines, meaning that the column to its left is frozen.

Unfreeze rows or columns

  • On the View tab > Window > Unfreeze Panes.

Chủ đề