Instant digital downloadExcel and Google SheetsSecure card checkout

Excel and Google Sheets how-to

Freeze rows and columns so the headers stay on screen

Months across the top, names down the side, and once you scroll a little both slide away and you lose track of whose row you are reading. Freezing keeps them on screen while the rest of the sheet moves.

ABCDE
1RepJanFebMarApr
2Ana Silva124098011051320
3Ben Okafor86010109451190
4Cara Liu1530147516101580
5Dev Patel720805690910
6Eli Novak1180122013401295
7Fay Moreau990106511201040

Sample data: monthly sales by rep. In Excel, click B2 and choose View > Freeze Panes > Freeze Panes: row 1 and column A stay on screen as you scroll. In Google Sheets, View > Freeze > 1 row, then View > Freeze > 1 column.

Excel: click the first cell that should scroll

Excel freezes around the cell you click. Microsoft's Freeze Panes page puts the rule in one line: Freeze Panes "freezes the rows above and the columns left of the selected cell."

So to keep row 1 and column A on screen, click B2, the first cell that should move when you scroll. Then choose View > Freeze Panes > Freeze Panes. Scroll down and the months stay at the top; scroll right and the names stay on the left. The same rule covers every other case:

  • Row 1 only: click A2.
  • Rows 1 to 3: click A4.
  • Column A only: click B1.
  • Columns A and B: click C1 (Microsoft's own example says select the third column).
  • Rows 1 and 2 and columns A and B: click C3.

To undo it, choose View > Freeze Panes > Unfreeze Panes. To freeze a different spot, unfreeze first, click the new cell and freeze again.

Google Sheets: rows and columns are two picks

Google Sheets has no single Freeze Panes. Click any cell, choose View > Freeze and pick the rows: No rows, 1 row, 2 rows or Up to row N. Then open View > Freeze again and pick the columns: No columns, 1 column, 2 columns or Up to column X. Both stay frozen. For the sample above, that is 1 row, then 1 column.

Watch the Up to choices if you know Excel: they count the row and column of the cell you clicked, the opposite of Excel's rule. With B3 selected, Excel would freeze rows 1 and 2 and column A, but the Sheets menu offers Up to row 3 and Up to column B, one more of each. So in Sheets, for headers in rows 1 and 2 and names in column A, click A2 and choose Up to row 2, then Up to column A.

To change it, drag the thick gray line under the frozen rows up or down. To undo it, choose View > Freeze > No rows, then No columns (Google's freeze help page).

From the keyboard: press Alt + / (Option + / on a Mac) to open the Tool finder, type freeze, and pick Freeze 1 row, Freeze up to current row or one of the column choices with the arrow keys, then press Enter.

The freeze option is missing or does not work

No View menu in Google Sheets. The menus are hidden. Press Ctrl + Shift + F, or click the small arrow at the top right of the sheet (its label reads Show the menus) and they come back.

Google Sheets will not freeze. A merged cell crosses the freeze line. With A2:A3 merged, freezing 2 rows gave us a box that says "Sorry, you can't freeze rows which contain only part of a merged cell." Choose Format > Merge cells > Unmerge, or freeze enough rows to take in the whole merged block.

No View tab in Excel. Microsoft's Freeze Panes page says that usually means Excel Starter, which does not have every feature.

A row that is not at the top, like a totals row

Neither app freezes a row from the middle or the bottom of a sheet: Excel freezes the rows above the cell you click, and the Sheets menu counts from row 1 down. Three ways around it.

Show a copy at the top. Say the totals sit in row 50 under a header in row 1. Insert a new row above row 1: the header moves to row 2 and the totals to row 51. In A1, type:

=A51

and fill it right to the last column. Row 1 now shows the totals and changes when they change. Then freeze rows 1 and 2: in Excel click A3 and choose View > Freeze Panes > Freeze Panes (click B3 to keep column A too); in Google Sheets choose View > Freeze > 2 rows.

Keep the totals above the header for good. With the header in row 2 and the list from row 3, type this in B1 and fill it right:

=SUM(B3:B500)

The empty rows under the list add nothing, and new rows you type there are counted with no change to the formula. Freeze rows 1 and 2 as above.

Split the window in Excel. Split shows two parts of the same sheet at once. Select the row below where the split should go (row 13 splits below row 12), then choose View > Window > Split. Microsoft's Split panes page uses a race list: the top 10 finishers stay in the upper pane while you scroll down to row 180 in the lower one. Choose Split again to take it away.

Sorting with a frozen header (Google Sheets)

In Google Sheets, frozen rows stay out of a whole-sheet sort. Right-click a column letter and choose Sort sheet A to Z: with row 1 frozen, the header stays on top and only the list moves. Unfreeze it first and the header sorts into the list like any other name. Unfreezing itself never changes or moves your data; it only changes what stays on screen.

To sort a list whose header is not frozen, select the cells and use Data > Sort range > Advanced range sorting options, then tick Data has header row.

Headers on every printed page

Freezing only changes the screen. For printing, Google Sheets builds on the freeze: freeze the rows first, then choose File > Print > Headers & footers > Repeat frozen rows (or Repeat frozen columns), as Google's print help page shows.

In Excel it is a separate setting. Choose Page Layout > Print Titles, and on the Sheet tab type $1:$1 in Rows to repeat at top for row 1 ($1:$2 for two rows). Microsoft's print titles page says the command appears dimmed while you are editing a cell, when a chart is selected on the sheet, or when no printer is installed.

On a phone or tablet (Google Sheets app)

On Android, touch and hold a row number or column letter, then tap Freeze (or Unfreeze). On an iPhone or iPad, tap a row number or column letter, tap the right arrow in the menu that appears, then tap Freeze. Both come from the Android and iPhone tabs of Google's freeze help page.

Free practice sheet

Practice on a sales list of 120 reps and 12 months: freeze the header row and the two name columns yourself, then answer questions about reps far down the list without losing track of the columns. A second tab keeps the team totals above the header, frozen with it. Yellow answer cells, a Check column that says Correct or Try again, and an Answers tab. One Excel file that opens in Google Sheets too. Free, no sign up. Sample data.

Download the practice sheet (.xlsx)

Templates with the math already done

Rather skip the formulas? These templates come with every formula built and checked, plus a filled-in sample.

Teaching this to a class or team?

Get one tip like this a month

A free email from VARS Digital with one Excel or Google Sheets fix, tested in both apps. No spam, unsubscribe any time.

By signing up you agree that VARS Digital, 10151 240 Street, Maple Ridge, BC V2W 0G9, Canada (inquiries@varsdigital.app) may email you its newsletter: Excel and Google Sheets tips, updates and news about our templates and lessons. We send a confirmation email first, and nothing else goes out until you click it. Every email has an unsubscribe link, and you can leave any time. Details in our store policies.

More how-tos