How to Freeze Line in Excel

If you just need to freeze line 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. Before you run it on a workbook other people depend on, try it on a copy or a few rows first. Undo only reaches back through the current session, so a quick trial run is the cheapest way to see exactly what will change before the file is saved and shared. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “freeze line in excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. 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. The point is a workspace setting that makes a big sheet comfortable to navigate, but the practical win is that someone else can open the file and understand what happened without asking you.

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. If this is something you do often, add the command to the Quick Access Toolbar (right-click it on the ribbon and choose Add to Quick Access Toolbar) or learn its shortcut, so next time it is one click instead of a hunt through the menus.

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. Treat “freeze line in excel” as a routine rather than a one-off. Once you know which setting or command controls it, the same few steps handle every workbook where it comes up in Excel, and you can explain them to a colleague in a sentence.

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 “excel freeze line”, “how to freeze lines in excel”, “how to freeze a line in excel” and “freezing lines 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. “excel freeze line”, “how to freeze lines in excel”, “how to freeze a line in excel” all point at the one operation explained on this page, which is why they all lead here.