How to Freeze First Two Rows in Excel

If you just need to freeze first two rows in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: go to View ▸ Freeze Panes and choose Freeze Top Row, Freeze First Column, or Freeze Panes to lock rows and columns above and left of the active cell in place while you scroll.

On this page7
Annotated stepsExcel
1

To lock just the header, open the View tab and click Freeze Panes ▸ Freeze Top Row.

2

To lock the leftmost column, click Freeze Panes ▸ Freeze First Column.

3

To lock several rows and columns at once, select the cell just below and to the right of them (e.g. B2 for row 1 + column A), then Freeze Panes ▸ Freeze Panes.

4

To undo it, return to View ▸ Freeze Panes ▸ Unfreeze Panes.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Freezing keeps chosen rows or columns pinned on screen so they stay visible no matter how far you scroll — purely a viewing aid that never alters a value or who can edit it. View ▸ Freeze Panes offers three options: Freeze Top Row locks row 1, Freeze First Column locks column A, and Freeze Panes locks everything above and to the left of whatever cell is selected. Only the top and left edges can be frozen; you cannot freeze a band in the middle of the sheet. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. Treat “freeze first two rows in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected rows shows up while it is still harmless. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That turns a workspace setting that makes a big sheet comfortable to navigate into a method you can reuse, explain, and defend when the workbook leaves your screen.

A worked example

A sheet has headers in row 1 and 500 data rows below. Click View ▸ Freeze Panes ▸ Freeze Top Row: a thin line appears under row 1, and as you scroll down to row 480 the headers Name, Region, Total stay fixed at the top. To pin both the header row and the first column at once, select cell B2 first, then View ▸ Freeze Panes ▸ Freeze Panes — now row 1 and column A both stay put while the rest of the grid scrolls under them. Reach for Freeze Panes whenever a long or wide table scrolls its headers out of sight — a 500-row register, a budget that runs across dozens of columns, any sheet where you keep losing track of which column is which. It costs nothing, changes no data, and makes navigation far less error-prone. When the result is not what you expected, undo straight away rather than repairing it by hand — undo restores the sheet exactly, while manual fixes tend to leave small inconsistencies behind that surface later.

In Google Sheets

This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. If you take one thing from this page on “freeze first two rows in excel”, make it the order of checks rather than the individual clicks: confirm what is selected, apply the step, and look at the result before moving on. That small routine is what keeps Excel work predictable when the same task comes back in a slightly different workbook.

Common mistakes

  • Expecting to freeze a row in the middle of the sheet — only rows above and columns left of the selected cell can be frozen.
  • Selecting row 1 instead of cell B2 before Freeze Panes, so the column you wanted held does not stay put.
  • Confusing freezing with locking for protection — freezing only affects scrolling, never whether a cell can be edited.
  • Using Split (which creates resizable, scrollable panes) when you actually wanted a fixed frozen header.

Frequently asked questions

How do I freeze the top row and first column together?

Click cell B2 so the active cell sits just below row 1 and just right of column A, then View ▸ Freeze Panes ▸ Freeze Panes pins both at once.

Why is Freeze Panes greyed out?

It is disabled while you are editing a cell or when the sheet is in Page Layout view. Press Enter to finish editing and switch to Normal view first.

Does freezing print or change the data?

No — it only affects what stays on screen while scrolling. Printed pages and stored values are unaffected; for repeating headers on every printed page use Page Layout ▸ Print Titles instead.

Other ways people ask this

On the way here you may have searched this as “how to freeze the first two rows in excel”, “how do i freeze the first two rows in excel” and “freeze first two rows in excel” — it is all the same task, and this page is the single, complete answer to it.

Why do people search for this in so many different ways?

Because the same task has many names. “how to freeze the first two rows in excel”, “how do i freeze the first two rows in excel”, “freeze first two rows in excel” all point at the one operation explained on this page, which is why they all lead here.