How to Freeze Rows and Columns in Excel to Lock in Place (2024)

Home > Skills > Freeze Panes

Easy steps to freeze Excel rows and columns, and which option to use. How to fix and avoid problems with hidden rows and columns when freezing spreadsheets.

How to Freeze Rows and Columns in Excel to Lock in Place (2)

Lock Rows and Columns in Place

-- Freeze Top Row

-- Freeze First Column

-- Freeze Panes

Unlock Rows and Columns

Cannot Unhide Rows

Navigation with Freeze Panes

Freeze Pane Settings Disappear

Get the Workbook

More Tutorials

Lock Rows and Columns in Place

If you want to scroll down the worksheet, and lock the heading rows in place, so they're always visible, you can use one of the Excel Freeze Panes commands.

With a few rows and columns locked in place, you can scroll the rest of the spreadsheet, while keeping your row labels at the left, and column headings in place, at the top of the screen. This makes it easier to work with a large Excel worksheet, or Excel tables.

Here are the quick steps for setting up freeze panes on your spreadsheets:

  • On the Microsoft Excel Ribbon, click the View tab
  • To see the Freeze Pane options, click the arrow on the Freeze Panes button

The 3 Freeze Pane options work differently, and each option is explained below.

-- Freeze Top Row

-- Freeze First Column

-- Freeze Panes

How to Freeze Rows and Columns in Excel to Lock in Place (3)

Freeze Top Row

If you select the Freeze Top Row command, it does not automatically freeze Row 1 on the worksheet.

  • Any cell on the worksheet can be selected
  • A single row is frozen at the top of the worksheet
  • First row that is VISIBLE in the Excel window is frozen
    • For example, row 7 is frozen in the screen shot below, because rows 1-6 were not visible, when the Freeze panes option Freeze Top Row was applied
    • How to Freeze Rows and Columns in Excel to Lock in Place (4)

After freezing the top row:

  • The frozen row stays in place if you scroll up or down on the worksheet
  • If the frozen row has other rows above it, you can't scroll up to see those rows.
  • To see any rows that are above the frozen row, use the Unfreeze command.
  • A thin line appears at the bottom of the last frozen row on the Excel spreadsheet

Freeze First Column

If you select the Freeze First Column command, it does not automatically freeze Column A on the worksheet.

  • Any cell on the worksheet can be selected
  • A single column is frozen at the left side of the worksheet
  • The first VISIBLE column in the Excel window is frozen
    • For example, column C is frozen in the screen shot below, because it was the leftmost visible column when Freeze First Column option was applied
    • How to Freeze Rows and Columns in Excel to Lock in Place (5)

After freezing the first column:

  • The frozen column stays in place if you scroll left or right on the worksheet
  • If the frozen column has other columns to the left of it, you can't scroll left to see those columns.
  • To see any column to the left of the frozen column, use the Unfreeze command.

Freeze Panes

The Freeze Panes command gives you more options on what should be frozen on the worksheet. Instead of a single row or a single column, you can freeze one or more specific rows at the top, as well as one or more columns at the left.

With Freeze Panes command, the freeze point is set based on what is selected on the worksheet

  • Tip: Freeze Panes is the command that I use most often, so I've added it to my Quick Access Toolbar. That way, I apply freeze panes to the selected cell location, with a single click.

The following table shows which VISIBLE rows and VISIBLE columns will be frozen, based on what you've selected on the worksheet, and which cell is active.

SelectionActive CellFrozen VISIBLE RowsFrozen VISIBLE Columns
Cell(s)A1All visible rows above the centre of the Excel windowAll visible columns to the left of centre in the Excel window
Cell(s)Any cell except A1All visible rows above the active cellAll visible columns to the left of the active cell
Entire row(s)A1All visible rows above the centre of the Excel windowAll visible columns to the left of centre in the Excel window
Entire row(s)Any cell except A1All visible rows above the active cellNone
Entire column(s)A1All visible rows above the centre of the Excel windowAll visible columns to the left of centre in the Excel window
Entire column(s)Any cell except A1NoneAll visible columns to the left of the active cell
Entire worksheetA1All visible rows above the centre of the Excel windowAll visible columns to the left of centre in the Excel window
Entire worksheetAny cell except A1All visible rows above the active cellAll visible columns to the left of the active cell

After Using Freeze Panes

After using the Freeze Panes command:

  • Any frozen columns stay in place if you scroll left or right on the worksheet
  • Any frozen rows stay in place if you scroll up or down on the worksheet
  • If frozen columns have other columns to the left of them, you can't scroll left to see them.
  • If the frozen rows have other rows above them, you can't scroll up to see them.
  • To see those off-screen rows or columns, use the Unfreeze command.

Unlock Rows and Columns

After any type of Freeze Panes command has been used, you can use the Unfreeze Panes command to remove the freezing.

  • Select any cell on the the worksheet
  • On the Excel Ribbon, click the View tab
  • Click the Unfreeze Pane command (it replaces the Freeze Pane command)
  • NOTE: You can also change the freezing to Top Row or First Column, instead of removing the freezing completely

How to Freeze Rows and Columns in Excel to Lock in Place (6)

Navigation with Freeze Panes

On an Excel worksheet, you can use navigation shortcuts, to move to the start or end of the used range.

If the worksheet does NOT have the Freeze Panes feature turned on:

  • Ctrl + Home - Takes you to cell A1 on the worksheet, at the top left
  • Ctrl + End - Takes you to the bottom right cell in the worksheet's used range.

If the worksheet DOES have the Freeze Panes feature turned on, those shortcut keys always take you to a cell within the unfrozen area.

Shortcuts with Freeze Panes

The following 3 screen shots show where the shortcuts take you for 3 types of frozen panes.

Frozen Rows at Top

If there are frozen rows at the top of the sheet, here's what the navigation shortcuts do:

  • Ctrl + Home - Takes you to top left in unfrozen rows
  • Ctrl + End - Takes you to the bottom right cell in unfrozen rows

How to Freeze Rows and Columns in Excel to Lock in Place (7)

Frozen Columns at Left

If there are frozen columns at the left of the sheet, here's what the navigation shortcuts do:

  • Ctrl + Home - Takes you to top left in unfrozen columns
  • Ctrl + End - Takes you to the bottom right cell in unfrozen columns

How to Freeze Rows and Columns in Excel to Lock in Place (8)

Frozen Rows and Columns

If there are frozen rows at the top of the sheet, and frozen columns at the left of the sheet, here's what the navigation shortcuts do:

  • Ctrl + Home - Takes you to top left in unfrozen rows and columns
  • Ctrl + End - Takes you to the bottom right cell in unfrozen rows and columns

How to Freeze Rows and Columns in Excel to Lock in Place (9)

Usually it's easy to unhide rows or columns in an Excel worksheet, but occasionally you can run into problems. In these cases, try one of the following techniques:

-- Unfreeze Panes

-- Extend Selection

Unfreeze Panes

In some cases, the rows or columns aren't really hidden. There are frozen rows or columns, and the "hidden" sections are out of view.

This short video shows the problem, and how to fix it. There are written steps below the video.

Show Rows Hidden by Freezing

To see if freezing is the problem of hidden rows, follow these steps:

  • Select any cell on the the worksheet
  • On the Excel Ribbon, click the View tab
  • If there is an Unfreeze Pane command in the drop down list, click that, to unfreeze the locked sections

The "hidden" rows or columns might reappear after that, when you scroll to the top or left of the worksheet.

Extend Selection

If unfreezing didn't fix the problem of hidden rows, this extend selection trick might help. This short video shows the "Extend Selection" technique, and the written steps are below the video.

Extend Selection Steps

When the hidden rows are at the very top of the sheet, it's hard to select the hidden rows, in order to unhide them.

Try the following steps, to extend the selection, and show the hidden rows:

  • Press on the row button for the first visible row
  • Drag up, onto the Select All button
  • Right-click on the first visible row button, and click Unhide

NOTE: For hidden columns, press the first visible column button, and drag to the left.

Freeze Pane Settings Disappear

Sometimes, your freeze panes, gridlines, and other Excel window settings might disappear automatically.

This usually happens if you open a new window for and Excel file, so you can see two views of it at the same time, in separate windows. For example, you might open a second window to see the cell formulas in one window, and the formula results in another window.

When you do this, the new window uses the default window settings, instead of your custom settings.

Then, if you close the original window first, and leave the new window open, the custom settings are forgotten.

Avoid the Problem

Here's how to freeze rows in Excel, and avoid the problem of losing those settings.

If you have opened one or more new windows in a workbook, be careful when you’re closing them. You’ll see a window number, along with the file name, in each window’s title bar.

  • Leave the original window (FreezePanes.xlsx:1) open
  • Close any other windows (such as FreezePanes.xlsx:2) first

This short video shows the steps for setting and preserving your Excel window settings

Get the Sample File

To try the freeze pane tips on this page, get the Excel Freeze Rows and Columns sample file. The file is in xlsx format, and zipped. There are no macros in the workbook.

Related Links

Column Headers Show Numbers

Change Column Header Font

Column Headers Show Numbers

Change Column Header Font

How to Freeze Rows and Columns in Excel to Lock in Place (2024)

FAQs

How to Freeze Rows and Columns in Excel to Lock in Place? ›

Select the cell below the rows and to the right of the columns you want to keep visible when you scroll. Select View > Freeze Panes > Freeze Panes.

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

Besides locking columns and rows separately, Microsoft Excel lets you freeze both rows and columns at the same time. Here's how: Select a cell below the last row and to the right of the last column you'd like to freeze. On the View tab, click Freeze Panes > Freeze Panes.

How do I freeze multiple rows in Excel at the same time? ›

To freeze several rows:
  1. Select the row that is immediately beneath the last row you want frozen.
  2. From the View tab, Windows Group, click the Freeze Panes drop down and select Freeze Panes.
  3. Excel inserts a thin line to show you where the frozen pane begins.

How do I keep cells from moving in Excel? ›

On the View tab, in the Window group, click the arrow below Freeze Panes. time, click Freeze Panes. Unfreeze Panes so that you can unlock any frozen rows or columns. freeze rows and columns in the middle of the worksheet.

Can you freeze both rows and columns at the same time? ›

Freeze columns and rows

Select the cell below the rows and to the right of the columns you want to keep visible when you scroll. Select View > Freeze Panes > Freeze Panes.

How do you freeze columns A and B and rows 1 and 2? ›

For example, if you want to freeze rows 1 and 2 and columns A and B, you will need to select cell C3. Then, click the View tab on the ribbon and click Freeze Panes in the Window group. A drop-down menu will appear. Click Freeze Panes.

How do I freeze rows and columns at the same time in open office? ›

To freeze both horizontally and vertically, select the cell that is below the row and to the right of the column that you want to freeze. 2. Choose Window - Freeze. To deactivate, choose Window - Freeze again.

Why are my panes not freezing in Excel? ›

If the workbook or worksheet has been protected, it is possible that you will not be able to use the freeze panes feature. Check if the freeze panes feature is grayed out, your sheet or workbook might be protected and you need to disable it.

How do I freeze multiple rows and columns in Excel Online? ›

Freeze columns and rows to keep them in view while you scroll through your data.
  1. Select the cell below the rows, and to the right of the columns you want to freeze.
  2. Click View > Freeze Panes > Freeze Panes.

How do I keep cells constant in Excel? ›

If you want to maintain the original cell reference when you copy it, you "lock" it by putting a dollar sign ($) before the cell and column references. For example, when you copy the formula =$A$2+$B$2 from C2 to D2, the formula stays exactly the same. This is an absolute reference.

Top Articles
Latest Posts
Article information

Author: Terrell Hackett

Last Updated:

Views: 6060

Rating: 4.1 / 5 (72 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Terrell Hackett

Birthday: 1992-03-17

Address: Suite 453 459 Gibson Squares, East Adriane, AK 71925-5692

Phone: +21811810803470

Job: Chief Representative

Hobby: Board games, Rock climbing, Ghost hunting, Origami, Kabaddi, Mushroom hunting, Gaming

Introduction: My name is Terrell Hackett, I am a gleaming, brainy, courageous, helpful, healthy, cooperative, graceful person who loves writing and wants to share my knowledge and understanding with you.