Reading Time: 4 minutes

 

In this tutorial we will show you how to freeze cells in Excel to keep them visible while you navigate to another area of the worksheet. Below you will find the detailed steps by step guide on how to lock a row or multiple rows, freeze one or more columns, or freeze column and row at once.

If you’re working on a large table of data in Excel, it can be useful to freeze rows or columns. This way you can keep rows or columns visible while scrolling through the rest of the worksheet.

How to Freeze Row in Excel

To freeze a row follow these simple steps
Click View tab > Freeze Panes and choose one of the following options, depending on how many rows you wish to lock:

Freeze Top Row – to lock the first row.

Freeze Panes – to lock several rows.

The detailed guidelines follow below.

To lock top row in Excel, go to the View tab, Window group, and click Freeze Panes > Freeze Top Row.

This will lock the very first row in your worksheet so that it remains visible when you navigate through the rest of your worksheet.
Freeze top row in Excel.

Freeze top row in Excel

You can determine that the top row is frozen by a horizontal grey line below it:
Top row is frozen.

How to freeze multiple rows in Excel

In case you want to lock several rows (starting with row 1), carry out these steps:

  1. Select the row (or the first cell in the row) right below the last row you want to freeze.
  2. On the View tab, click Freeze Panes > Freeze Panes.

For example, to freeze top two rows in Excel, we select cell A3 or the entire row 3, and click Freeze Panes:
Freezing multiple rows in Excel

As the result, you’ll be able to scroll through the sheet content while continuing to view the frozen cells in the first two rows:

The first two rows are frozen.

Notes:

  • Microsoft Excel allows freezing only rows at the top of the spreadsheet. It is not possible to lock rows in the middle of the sheet.
  • Make sure that all the rows to be locked are visible at the moment of freezing. If some of the rows are out of view, such rows will be hidden after freezing. For more information, please see How to avoid frozen hidden rows in Excel.

How to freeze columns in Excel

Freezing columns in Excel is done similarly by using the Freeze Panes commands.

How to lock the first column

To freeze the first column in a sheet, click View tab > Freeze Panes > Freeze First Column.

This will make the leftmost column visible at all times while you scroll to the right.
Freeze the first column in Excel.

How to freeze multiple columns in Excel

In case you want to freeze more than one column, this is what you need to do:

  1. Select the column (or the first cell in the column) to the right of the last column you want to lock.
  2. Go to the View tab, and click Freeze Panes > Freeze Panes.

For example, to freeze the first two columns, select the whole column C or cell C1, and click Freeze Panes:
Freezing multiple columns in Excel

This will lock the first two columns in place, as indicated by the thicker and darker border, enabling you to view the cells in frozen columns as you move across the worksheet:
The first two columns are frozen.

Notes:

  • You can only freeze columns on the left side of the sheet. Columns in the middle of the worksheet cannot be frozen.
  • All the columns to be locked should be visible, any columns that are out of view will be hidden after freezing.

How to freeze rows and columns in Excel

Besides locking columns and rows separately, Microsoft Excel lets you freeze both rows and columns at the same time. Here’s how:

  1. Select a cell below the last row and to the right of the last column you’d like to freeze.
  2. On the View tab, click Freeze Panes > Freeze Panes.

Yep, it’s that easy 🙂

For example, to freeze top row and first column in a single step, select cell B2 and click Freeze Panes:
Freezing top row and first column in Excel.

This way, the header row and leftmost column of your table will always be viewable as you scroll down and to the right:
Top row and first column are locked.

In the same fashion, you can freeze as many rows and columns as you want as long as you start with the top row and leftmost column. For instance, to lock top row and the first 2 columns, you select cell C2; to freeze the first two rows and the first two columns, you select C3, and so on.

How to unlock rows and columns in Excel

To unlock frozen rows and/or columns, go to the View tab, Window group, and click Freeze Panes > Unfreeze Panes.
Unlock frozen rows and columns in Excel.