Freeze rows and columns

To keep an area of a worksheet visible while you scroll to another area of the worksheet, you can either freeze specific rows or columns in one area to lock them in place, or create multiple worksheet areas that can scroll separately from each other by freezing panes.

If you want to lock specific cells to prevent other people from changing their contents, see Lock or unlock specific areas of a protected worksheet.

For information on Scroll Lock, see Turn off Scroll Lock. For information on how to include row and column headings on every printed page of a worksheet, see Print row and column headings on every printed page.

In this article


Freeze specific 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 cells) 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. On the worksheet, do one of the following:
  • To lock rows, select the row below the row or rows that you want to keep visible when you scroll.
  • To lock columns, select the column to the right of the column or columns that you want to keep visible when you scroll.
  • To lock both rows and columns, click the cell below and to the right of the rows and columns that you want to keep visible when you scroll.

For example, if you want to freeze the top two rows and the leftmost three columns (A through C), click cell D3. Then, on the View tab, in the Window group, click Freeze Panes and then click Freeze Panes again. You'll see somewhat thicker lines to the left of column D and below row 2 on the worksheet.

Selecting a cell and choosing Freeze Panes freezes rows and columns

ShowHow to select cells, ranges, rows, or columns

To select Do this
A single cell Click the cell, or press the arrow keys to move to the cell.
A range of cells

Click the first cell in the range, and then drag to the last cell, or hold down Shift while you press the arrow keys to extend the selection.

You can also select the first cell in the range, press F8 (instead of holding down Shift), and then extend the selection by using the arrow keys. To stop extending the selection, press F8 again.

A large range of cells Click the first cell in the range, and then hold down Shift while you click the last cell in the range. You can scroll to make the last cell visible.
All cells on a worksheet

Click the Select All button.

Select All button

To select the entire worksheet, you can also press Ctrl+A.

 Note   If the worksheet contains data, Ctrl+A selects the current region. Pressing Ctrl+A a second time selects the entire worksheet.

Nonadjacent cells or cell ranges

Select the first cell or range of cells, and then hold down Ctrl while you select the other cells or ranges.

You can also select the first cell or range of cells, and then press Shift+F8 to add another nonadjacent cell or range to the selection. To stop adding cells or ranges to the selection, press Shift+F8 again.

 Note   You cannot cancel the selection of a cell or range of cells in a nonadjacent selection without canceling the entire selection.

An entire row or column

Click the row or column heading.

Worksheet showing row heading and column heading

Callout 1 Row heading
Callout 2 Column heading

You can also select cells in a row or column by selecting the first cell and then pressing Ctrl+Shift+Arrow key (Right Arrow or Left Arrow for rows, Up Arrow or Down Arrow for columns).

 Note   If the row or column contains data, Ctrl+Shift+Arrow key selects the row or column to the last used cell. Pressing Ctrl+Shift+Arrow key a second time selects the entire row or column.

Adjacent rows or columns Drag across the row or column headings. Or select the first row or column; then hold down Shift while you select the last row or column.
Nonadjacent rows or columns Click the column or row heading of the first row or column in your selection; then hold down Ctrl while you click the column or row headings of other rows or columns that you want to add to the selection.
The first or last cell in a row or column Select a cell in the row or column, and then press Ctrl+Arrow key (Right Arrow or Left Arrow for rows, Up Arrow or Down Arrow for columns).
The first or last cell on a worksheet or in an Excel table

Press Ctrl+Home to select the first cell on the worksheet or in an Excel table.

Press Ctrl+End to select the last cell on the worksheet or in an Excel table that contains data or formatting.

Cells to the last cell that contains data on the worksheet (lower-right corner) Select the first cell, and then press Ctrl+Shift+End to extend the selection of cells to the last used cell on the worksheet (lower-right corner).
Cells to the beginning of the worksheet Select the first cell, and then press Ctrl+Shift+Home to extend the selection of cells to the beginning of the worksheet.
More or fewer cells than the active selection Hold down Shift while you click the last cell that you want to include in the new selection. The rectangular range between the active cell and the cell that you click becomes the new selection.

 Tip   To cancel a selection of cells, click any cell on the worksheet.

  1. On the View tab, in the Window group, click the arrow below Freeze Panes.

Freeze Panes arrow

 Note    If you don’t see the View tab, it’s likely that you are using Excel Starter. To learn more about features that aren’t supported in that version, see Excel features that are not fully supported in Excel Starter.

  1. Do one of the following:
  • To lock one row only, click Freeze Top Row.
  • To lock one column only, click Freeze First Column.
  • To lock more than one row or column, or to lock both rows and columns at the same time, click Freeze Panes.

Top of Page Top of Page

Unfreeze rows or columns

  1. On the View tab, in the Window group, click the arrow below Freeze Panes.

Freeze Panes arrow

 Note    If you don’t see the View tab, it’s likely that you are using Excel Starter. To learn more about features that aren’t supported in that version, see Excel features that are not fully supported in Excel Starter.

  1. Click Unfreeze Panes. This unfreezes all frozen rows and columns on the worksheet.

More about freezing rows, columns, and panes

Freeze panes to lock the first row or column

Unfreeze locked panes

Top of Page Top of Page

 
 
Applies to:
Excel 2013