How to freeze a row (or column) in Google Sheets

Click View → Freeze → 1 row to keep your header visible while you scroll. Use 2 rows, or click a cell and pick Up to row N, to freeze more. Columns work the same way from the same menu, and you can do both to freeze panes. To undo, choose View → Freeze → No rows.

Freeze rows

  1. Click View → Freeze.
  2. Pick 1 row for a header, or 2 rows.
  3. For more, click a cell in the last row you want frozen first, then pick Up to row N.

Everything above the thick gray line stays put while you scroll down.

Freeze columns

  1. Click View → Freeze.
  2. Pick 1 column or 2 columns.
  3. For more, click a cell in the last column you want frozen first, then pick Up to column X.

Video: How to freeze columns in Google Sheets.

Freeze rows and columns together (freeze panes)

Google Sheets has no single "Freeze panes" button like Excel. Do it in two picks:

  1. Click the bottom-right cell of the area that should stay visible. To lock rows 1–3 and columns A–B, click B3.
  2. View → Freeze → Up to row 3.
  3. View → Freeze → Up to column B.

Drag the freeze bar

In the top-left corner, above row 1 and left of column A, there are two thick gray bars. Drag the horizontal one down to freeze rows, or the vertical one right to freeze columns. Quick demo: Cool trick: freeze the top row.

Unfreeze

View → Freeze → No rows, and No columns if columns are frozen too. Or drag the gray bar back to the top-left corner. Video: How to unfreeze a row.

When freezing doesn't work

  • Merged cells across the line. You can't freeze through part of a merged cell. Unmerge it (Format → Merge cells → Unmerge) or freeze one row or column further.
  • "The current window is too small." The frozen area is taller or wider than your screen. Freeze fewer rows or columns, or zoom out.

Frozen rows repeat when you print

In File → Print → Headers & footers, tick Repeat frozen rows to print your header on every page. More on repeating frozen rows.

Go further

Related tutorials

These videos might help you go deeper on this topic.

Watch more tutorials
Move Blank Rows

Move Blank Rows

Apps Script function to move all blank rows if a certain column is not f...
Count Merged Rows

Count Merged Rows

Count the number of cells or rows in a merged cell. This is a quick litt...
Countdown Blank Row

Countdown Blank Row

Great for counting writing sessions, or tweets you're writing.
Automate Move Blank Rows

Automate Move Blank Rows

Automate the apps script we just created that moves blank rows from one ...
How to Count Numbers in a Row

How to Count Numbers in a Row

Got this question in the Facebook Group: How to count the number of numb...
Move Cells to New Row with Formula

Move Cells to New Row with Formula

Move a range, or a set of cells, to a new area with a simple formula tha...

Better Sheets on YouTube

Watch matching videos from youtube.com/bettersheets.

Search channel

Terms and formulas behind this

Want the full definition or how a formula works? Start here.

Related questions

Ads keep the free stuff free. Members browse ad-free — log in or see pricing.
Big Year 2027 calendar: the whole year on one Google Sheet

Free 2027 calendar.Plan all of 2027 on one Google Sheet, free.

Copy it to your Google Drive.

Free. No password, no card. The sheet link shows up right here.