Skip to content

Docs · guide

How to freeze a row in Excel on Windows, a Mac, iPad and iPhone

By Alberto Gulotta · Updated

How to freeze a row in Excel: select the row below the last row you want to keep, as Microsoft’s Mac and iOS pages put it, then Freeze Panes on the View tab; on Windows the path is View › Freeze Panes › Freeze Panes. By Microsoft’s rule, the rows above and the columns to the left of the selected cell stay in place. On a Mac, View › Freeze Top Row keeps row 1 alone.

Freezing rows on the pages that document it
WhatWhat the page printsPage read
The rule Freeze Panes freezes the rows above and the columns left of the selected cell Freeze panes to lock rows and columns
Windows path View › Freeze Panes › Freeze Panes; Excel for Microsoft 365, 2024, 2021, 2019 and 2016 Freeze panes to lock rows and columns
Mac, to keep row 1 View › Freeze Top Row; Excel for Microsoft 365 for Mac, Excel 2024, 2024 for Mac and 2021 for Mac Freeze panes … in Excel for Mac
iPad and iPhone View › Freeze Panes, then the option you need Freeze panes … in Excel for iOS
No View tab Likely Excel Starter Freeze panes to lock rows and columns
Google Sheets View › Freeze, then how many rows or columns Google Docs Editors Help, Freeze, group, hide, or merge rows & columns
  1. Select cell A2. By Microsoft’s rule, the rows above the selected cell and the columns to its left stay in place. Above A2 there is row 1 and nothing to the left of column A: the cell is our reading of the rule, not a step Microsoft prints for a single row. Selecting more than one cell is in the guide to select cells in Excel.
  2. Open the View tab. Microsoft’s note for a missing View tab: “it's likely that you are using Excel Starter. Not all features are supported in Excel Starter.”
  3. Choose Freeze Panes, then Freeze Panes again in its list. The page prints the path as View › Freeze Panes › Freeze Panes, the same for both of its examples, and the command to undo it sits in the same list.
Drawn flow for keeping row 1 in view in Excel for Windows: cell A2, the View tab, Freeze Panes twice
Cell A2 is our reading of Microsoft’s rule; the path is the one Microsoft prints. Based on the Microsoft Support page Freeze panes to lock rows and columns, read in full on October 7, 2026.

One rule for rows, columns and both

The sentence. Microsoft’s page Freeze panes to lock rows and columns, which this guide calls the Windows page because its Applies To line names no edition for Mac: “Freeze Panes freezes the rows above and the columns left of the selected cell.” The page opens by placing the command on the View tab, next to Split, which makes separate windows of the same worksheet.

Microsoft’s two examples. To freeze the first two columns, select the third column. To freeze rows and columns together, select the cell below the rows and to the right of the columns that should stay visible. Both end with View › Freeze Panes › Freeze Panes.

More than one row. The pages for the Mac and for iOS say it outright: select the row below the last row you want frozen. The Windows page does not give a rows-only example; by our reading of its rule, the same selection works there, since the rows above it are the ones that stay. To keep rows 1 to 3, the selection is row 4.

Where the line starts. On the Mac page, as many rows or columns can be frozen as you want, “as long as you always start with the top row and the first column.” Its block example selects D5, which keeps the top four rows and the three columns on the left.

Drawn table of five selections Microsoft prints before Freeze Panes, with the page that says each one
Every row is an example Microsoft prints, on the page named in the last column. Based on the Microsoft Support pages on freezing panes for Windows, Mac and iOS, read in full on October 7, 2026.

On a Mac: Freeze Top Row

Row 1 alone. On the View tab, select Freeze Top Row. Microsoft says the border under row 1 then looks a little darker than the others. Column A alone is Freeze First Column, with a darker line to the right of the column.

Row 1 and column A together. Select cell B2, then Freeze Panes on the View tab. More rows or columns: select the row below the last one, or the column to the right of the last one, then Freeze Panes; the border below the last frozen row appears a little thicker.

When the buttons are greyed out. The Mac page’s answer is to select Normal on the View tab.

The Windows page and Freeze Top Row. Of the pages read for this guide, only the Mac page names Freeze Top Row and Freeze First Column. The text of the Windows page names Freeze Panes and Unfreeze Panes.

On an iPad or an iPhone

The short version. Microsoft’s page for Excel for iPad and Excel for iPhone: tap View › Freeze Panes, then the option you need, to lock the top row, the first column or both.

Several rows. Select the row below the last row you want to freeze. On an iPad, tap View › Freeze Panes › Freeze Panes; several columns, starting with column A, work the same way from the column to the right of the last one. On an iPhone, tap the ellipsis button to bring up the ribbon, then Home › View, scroll down and tap Freeze Panes.

Unfreezing

Windows. View tab › Freeze Panes › Unfreeze Panes. Mac. On the View tab, choose Unfreeze Panes. iPad and iPhone. Tap View › Freeze Panes and clear all the selected options. Google Sheets. Select a row or column, then View › Freeze › No rows, or No columns.

Drawn table of the freeze and unfreeze commands on Windows, Mac, iPad, iPhone and Google Sheets
Five places, and the names each page gives the commands. Based on the Microsoft Support pages on freezing panes and the Google Docs Editors Help page, read in full on October 7, 2026.

Split, the other command on the View tab

What it is for. Microsoft’s split page has a runner named Tomas in row 180 and the top ten finishers at the top of the sheet: with the worksheet split, the lower pane scrolls down while the upper pane still shows the top rows. Its Applies To line names Excel for Microsoft 365, Excel 2024 and Excel 2021.

How. Select below the row where the split should go: selecting row 13 splits the worksheet below row 12. Then View › Window › Split. The same command splits on a column, or on both from a cell, and selecting Split again removes it. Microsoft’s page on viewing multiple panes, for the Mac, puts Split in the Window group of the View tab and says the two panes scroll independently.

The header on every printed page

A different command. The freeze pages for Windows, the Mac and iOS listed under Sources give no steps for printing. Microsoft’s printing pages use Print Titles: Page Layout tab › Print Titles, in the Page Setup group; on the Sheet tab, type $1:$1 in the Rows to repeat at top box. Microsoft gives $1:$2 for two header rows and $1:$3 for three.

When Print Titles is dimmed. Microsoft lists three causes: editing a cell, a chart selected on the same worksheet, or no printer installed. With more than one worksheet selected, the two boxes for rows and columns to repeat are not available.

On a Mac. Page Layout tab › Page Setup, then the Sheets tab, as the Mac page names it; under Print Titles, click in Rows to repeat at top and select the row that holds the titles.

Drawn table setting Freeze Panes, Split and Print Titles side by side, with where each one sits
Two commands for the screen and one for paper. Based on the Microsoft Support pages on freezing panes, splitting panes and printing titles, read in full on October 7, 2026.

Freezing a row in Google Sheets

The steps, from the Computer tab of Google’s page. Select a row or column you want to freeze or unfreeze, then at the top click View › Freeze and choose how many rows or columns. To unfreeze: View › Freeze › No rows, or No columns. Google’s page has tabs for Android and for iPhone and iPad as well; this guide has read the Computer tab only.

The same page, other jobs. Google puts freezing on one page with grouping, hiding and merging rows and columns. The guides on how to unhide columns in Google Sheets and how to merge cells in Google Sheets cover two of them; in Excel, grouping and hiding have guides of their own, on how to group rows in Excel and how to unhide rows in Excel.

Where to start

Six ways in.

“Just row 1, on Windows.”
Three steps — the steps on windows
“Several rows, or rows and columns.”
One rule — the rule
“I am on a Mac.”
Freeze Top Row — on a mac
“I am on an iPad or an iPhone.”
Tap View — on an ipad or iphone
“How do I undo it?”
Unfreeze Panes — unfreezing
“I want the header on paper.”
Print Titles — on every printed page

Rows and columns in Excel

Selecting, adding, grouping and unhiding rows and columns in Excel.

The same sheet in Google Sheets

Hiding, merging and sorting in Google Sheets.

Questions people also ask

How do I freeze rows in sheets?

In Google Sheets, select a row or column you want to freeze, then at the top click View › Freeze and choose how many rows or columns. To unfreeze, select a row or column and click View › Freeze › No rows, or No columns. These are the steps on the Computer tab of Google’s help page.

Can you freeze a row in Excel that is not the top row?

Not on its own, by Microsoft’s Mac page: it lets you freeze as many rows as you want if you start with the top row; on Windows, the rows above the selected cell freeze. By our reading, keeping row 5 means selecting row 6, so rows 1 to 5 stay. Split, on the View tab, gives panes that scroll independently.

How do you lock a line in Excel so it doesn't move?

Freeze it. Select the row just below the rows you want to keep, then choose View › Freeze Panes › Freeze Panes: Microsoft’s rule is that the rows above the selected cell stay in place. On a Mac, View › Freeze Top Row keeps row 1 alone. To undo it, choose Unfreeze Panes from the same list.

How do you freeze a row and a column in Excel at the same time?

Select the cell below the rows and to the right of the columns you want to keep visible, then choose View › Freeze Panes › Freeze Panes. For row 1 and column A, Microsoft’s Mac page selects cell B2; its block example selects D5, which keeps the top four rows and the three columns on the left.

Not covered here. It does not cover Excel for the web or Excel for Android: the Applies To line of Microsoft’s Windows page does not name them, and this guide has read no Microsoft page on freezing for either.

Nor does it test anything in Excel or in Sheets: the steps are Microsoft’s and Google’s as their pages print them, and the readings marked as ours are ours.

Step 13 of 21 in a spreadsheet from start to finish

Twenty-one guides in one order: data into a sheet, cleaning, lookups and counts, charts, layout, controls, locking, and recovering an unsaved file.

Before this
How to make a pie chart in Excel that people can read
After this
How to wrap text in Excel, and why it sometimes will not

Handing a spreadsheet to someone else

Five guides: unhiding columns and rows, freezing a row, locking cells and wrapping text.

The same job, in the other places it comes up
How to unhide columns in Excel, including column A
How to unhide all rows in Excel, and why it sometimes fails
How to lock cells in Excel, and why it seems not to work

Sources

  1. Microsoft Support — Freeze panes to lock rows and columns: the rule, the two examples, unfreezing, the note on Excel Starter and the Applies To line — support.microsoft.com, read October 7, 2026.
  2. Microsoft Support — Freeze panes to lock the first row or column in Excel for Mac — support.microsoft.com, read October 7, 2026.
  3. Microsoft Support — Freeze panes to lock the first row or column in Excel for iOS — support.microsoft.com, read October 7, 2026.
  4. Microsoft Support — Split panes to lock rows or columns in separate worksheet areas — support.microsoft.com, read October 7, 2026.
  5. Microsoft Support — View multiple panes, sheets, or workbooks: Split in Excel for Mac — support.microsoft.com, read October 7, 2026.
  6. Microsoft Support — Repeat specific rows or columns on every printed page — support.microsoft.com, read October 7, 2026.
  7. Microsoft Support — Print the top row on every page — support.microsoft.com, read October 7, 2026.
  8. Microsoft Support — Print headings or titles on every page in Excel for Mac — support.microsoft.com, read October 7, 2026.
  9. Google Docs Editors Help — Freeze, group, hide, or merge rows & columns, Computer tab — support.google.com, read October 7, 2026.

Written by Alberto Gulotta

Founder and editor of AI Tools Primer, writing from Palermo, Italy. Thirty-five years of taking computers apart, starting with a Commodore 64 — the long version is on the about page.

Something wrong on this page? Write to aitoolsprimer@gmail.com and it gets fixed.

Independence and limits

No affiliate links and no paid placements anywhere on this site. Nobody pays to appear here, and no company has seen this page before you did.

This is general information, not professional advice. Where a page touches money, health, safety or the law, it names its source and the date it was read — and your situation may still differ. See the privacy page and the cookie policy.