How to freeze rows and columns in Google Sheets

Working with large datasets involves a fair amount of scrolling, and it’s easy to lose track of the cells you’re watching. When you scroll down, you lose the headers; when you scroll right, you lose the row. Freezing keeps the rows or columns you choose in view while the rest of the sheet scrolls, on the web and in the mobile app.

On the web there are three ways to do it: drag the gray bar, use the View menu, or right-click a row number or column letter. If you know Excel, freeze panes is the same feature. Excel puts it under View > Freeze Panes, and Google Sheets under View > Freeze.

For the Excel steps, including how to keep the top row and first column in view at the same time, see how to freeze rows and columns in Excel.

What freezing rows and columns does in Google Sheets

The freeze feature in Google Sheets allows you to pin certain rows or columns within your spreadsheet so that you can continue to view them as you scroll through your data. This is particularly helpful when you have a huge amount of data that you need to evaluate or manage.

Here are just a few situations where you’d want to freeze rows or columns within your data:

  • To keep headers locked in place in order to identify key rows or columns of your data
  • To compare specific data with other data throughout your spreadsheet
  • To remind yourself of key data as you scroll through your spreadsheet

In most cases, you will probably only want to freeze the first row or column of your spreadsheet. However, the freeze feature does allow you to freeze multiple rows or columns; as long as they are next to the first.

Please note:

  • You cannot freeze a standalone row or column in the middle of your spreadsheet. It must be immediately next to the first row or column.

How to freeze a row or column: drag-and-drop shortcut

The quickest way to freeze rows and columns in Google Sheets is the drag-and-drop method.

1. Hover over the empty square where the row headers and column headers intersect. To freeze a row, hover over the bottom line of the square until it is highlighted. Click and drag down to beyond the row you want to freeze.

How to freeze rows in Google Sheets — red arrow on the gray bar in the top-left corner of the sheet

2. Grab the outline and drag it just beyond the row or column you want.

How to freeze rows in Google Sheets — gray bar dragged down to just below row 1

3. No matter how far down you scroll, the first row will stay in view.

How to freeze rows in Google Sheets — header row still on top after scrolling down to row 13

4. To freeze the first column, repeat step one, but grab the left-hand line of the corner cell rather than the bottom one. Drag it right to just beyond the column you want to freeze.

How to freeze columns in Google Sheets — red arrow pointing right from the top-left corner

5. Now, no matter how far down or right you scroll, the first row and the first column are always visible.

Freeze rows and columns in Google Sheets — id column and header row in view after scrolling right and down

How to freeze the top row or first column from the View menu

Follow the steps below to freeze rows or columns from the ‘View’ menu.

1. Go to View > Freeze and choose the option you prefer.

How to freeze the top row in Google Sheets — Freeze submenu open under the View menu

2. Choose ‘1 row’ to freeze the top row or ‘2 rows’ to freeze the top two. The same options are available for freezing the first or first two columns.

How to freeze the top row in Google Sheets — 1 row, 2 rows, 1 column and 2 columns options highlighted

How to freeze a row or column in Google Sheets: right-click menu

Follow the steps below to freeze a row or column using the right-click menu.

1. Select the row you want to freeze.

Freeze a row in Google Sheets — row 1 selected by clicking its row number

2. Right-click on the row number to see the menu options. On the menu, go to View more row actions > Freeze up to row 1.

Freeze a row in Google Sheets — Freeze up to row 1 under View more row actions in the right-click menu

3. To freeze a column, select it and right-click on the column letter to see the menu. Go to View more column actions > Freeze up to column A.

Freeze a column in Google Sheets — Freeze up to column A under View more column actions

How to freeze multiple rows or columns

To freeze the first 2 rows or columns of your data, go to View > Freeze and choose 2 rows or 2 columns. To freeze more than two, use any of the three methods shown above: the drag-and-drop shortcut, the View menu, or the right-click menu. Frozen rows always start at row 1, and frozen columns at column A.

Drag-and-drop shortcut

Follow the steps below to freeze multiple rows or columns using the drag-and-drop method.

1. Hover over the empty square where the row headers and column headers intersect. To freeze a row, hover over the bottom line of the square until it is highlighted.

How to freeze multiple rows in Google Sheets — red arrow on the gray bar in the top-left corner

2. Click and drag down to beyond the row you want to freeze. In this case, I want to freeze the first four rows.

How to freeze multiple rows in Google Sheets — gray bar dragged down to just below row 4

3. To freeze the first three columns, repeat step one but grab the left-hand line of the corner cell rather than the bottom one. Drag it right to just beyond the column you want to freeze.

How to freeze multiple columns in Google Sheets — gray bar dragged right to just past column C

View menu

Follow the steps below to freeze multiple rows or columns via the ‘View’ menu.

1. Select a cell in the row up to which you want to freeze.

How to freeze multiple rows in Google Sheets — cell C3 selected in row 3

2. Go to View > Freeze and choose Up to row X, where X is the number of the row you selected. The option shows that number, so you can check it before you click.

How to freeze multiple rows in Google Sheets — Up to row 3 in the Freeze submenu of the View menu

3. To freeze a column, select the column up to which you want to freeze and repeat step 2.

How to freeze multiple columns in Google Sheets — Up to column C in the Freeze submenu of the View menu

Right-click menu

Follow the steps below to freeze multiple rows or columns using the right-click menu.

1. Select the row or column up to which you want to freeze.

How to freeze multiple rows in Google Sheets — row 3 selected by clicking its row number

2. Right-click on the row number or column letter to get the menu. Go to View more row actions > Freeze up to row X. In this case, I will freeze up to row 3.

How to freeze multiple rows in Google Sheets — Freeze up to row 3 in the right-click menu

3. You can follow the same steps to freeze multiple columns by right-clicking on the column up to which you want to freeze.

How to freeze multiple columns in Google Sheets — Freeze up to column C in the right-click menu

How to freeze rows and columns at the same time

Rows and columns freeze separately, so you can keep a header row and one or more label columns on screen together.

Let’s say I am comparing the number of visitors my company website has had from the beginning to the end of the year.

Freeze rows and columns in Google Sheets — web page visitors by month, with a Page column and one column per month

I want to freeze the first row of my spreadsheet so that I can easily identify what each column of data refers to. I also want to freeze the ‘January visitors’ column of my spreadsheet so that I can compare the data to the ‘December visitors’ column.

To do that, freeze the first row and the first two columns. Drag the horizontal gray bar to just below row 1 and the vertical one to just past column B, as in the drag-and-drop steps above. Or go to View > Freeze and choose 1 row, then open the same menu again and choose 2 columns.

Freeze rows and columns in Google Sheets — gray freeze bars below row 1 and to the right of column B

Now when we scroll across or down the spreadsheet, these rows and columns are locked in place. I can now easily compare the January data to the December data.

Freeze rows and columns in Google Sheets — Page and January visitors columns next to December visitors after scrolling right

As you can see, the drag-and-drop option allows you to freeze as many rows or columns as you like, as long as they are immediately next to each other.

How to freeze a row in the Google Sheets mobile app

Below, you have instructions on how to freeze rows or columns in the Google Sheets mobile app using two different methods.

From the row or column header

1. In the Google Sheets mobile app, click on the row or column you want to freeze.

Freeze a row in the Google Sheets mobile app — row 1 selected

2. Tap on the row or column header to see the menu and select ‘Freeze row’ or ‘Freeze column’.

Freeze a row in the Google Sheets mobile app — Freeze row in the menu above the selected row

3. The row, in this case, will remain visible no matter how far down you scroll.

Freeze a row in the Google Sheets mobile app — header row on top after scrolling down to row 14

4. You can freeze columns using the same method.

Freeze a column in the Google Sheets mobile app — Freeze column in the menu for column A

From the tab or sheet name

You can use the tab menu to specify the number of rows and columns you want to freeze.

1. In the mobile app, tap on the tab or sheet name to see the menu.

Freeze rows in the Google Sheets mobile app — Sheet1 tab menu with Freeze rows and Freeze columns at 0

2. Use the arrows to indicate the number of rows and columns you want to freeze.

Freeze rows in the Google Sheets mobile app — up arrows setting Freeze rows and Freeze columns to 1

How to unfreeze rows and columns

Unfreezing rows or columns is easy – simply reverse the process of your chosen method.

Option 1: Unfreeze rows and columns with the drag-and-drop method

Hover your mouse over the gray-colored freeze panes. Once the hand icon appears, simply click and drag the gray pane back to the top left-hand corner of the spreadsheet.

Option 2: Unfreeze rows and columns via the View menu

To unfreeze your rows and columns using the Freeze feature, simply head to View > Freeze > No rows, or, No columns.

Unfreeze rows and columns in Google Sheets — Freeze submenu with No rows and No columns at the top of each group

How to lock a row or column in place

In Google Sheets, keeping a row or column on screen while you scroll is called freezing, so the steps above are all you need. To stop other people from changing it, protect it instead. Here’s how to lock cells so other people can’t edit them.

Conclusion

With the header row and label columns frozen, you can scroll through a sheet of any size and still see what each number means. For more ways to save time in Google Sheets, see our tips and tricks for working in spreadsheets.

Editor’s note: This is a revised version of a previous post that has been updated for accuracy and comprehensiveness.

You may also like…

google sheets features and formulas

Top 5 dynamic array formulas in Google Sheets 

Google Sheets has evolved beyond basic spreadsheets. With the introduction of dynamic array formulas, users can now manipulate and analyze...
google sheets features and formulas

Mastering the FILTER Formula: 4 Use Cases with Examples

The FILTER formula in Google Sheets is a versatile tool for extracting data that meets specific conditions. Unlike the QUERY formula,...
google sheets features and formulas

Unlocking the Power of SUMIF and SUMIFS in Google Sheets: 4 real-life use cases

The SUMIF and SUMIFS formulas in Google Sheets are indispensable tools for performing conditional summations. They simplify complex...