Locking a row so it stays visible while you scroll means using Excel's Freeze Panes command, not the Protect Sheet feature. Select the row just below the one you want pinned, then go to View > Freeze Panes > Freeze Panes. That single action keeps headers on screen while everything below scrolls freely, and it takes about five seconds on any desktop version from Excel 2010 through Microsoft 365.

The confusion is understandable. Excel has two "lock" concepts that sound identical and do completely different jobs. One pins rows visually during scrolling. The other blocks editing. Picking the wrong one wastes time and leaves you staring at a spreadsheet that behaves nothing like you expected. What follows sorts them apart, then walks through the actual freeze methods step by step.

Freeze Panes Is the Only Feature That Pins Rows During Scrolling

Freeze Panes splits your worksheet into scrolling and non-scrolling regions at a boundary you choose. Everything above and to the left of the active cell gets pinned; everything below and to the right keeps moving. Microsoft introduced the feature in Excel 97, and the View tab location hasn't changed since the Ribbon arrived in Excel 2007.

The command lives in the View tab, inside the Window group, roughly two-thirds of the way across the ribbon. The button shows a small grid icon with a dashed line through it. Clicking it opens a dropdown with three options: Freeze Panes, Freeze Top Row, and Freeze First Column. Each behaves differently, and the default-looking middle option isn't always the right pick.

Freeze Panes alone does nothing to protect your data. Anyone with edit access can still type into a frozen header, delete it, or overwrite formulas inside the pinned region. If someone told you freezing "locks" a row, they meant visually. Treat freeze and protect as separate tools that occasionally work together, never as substitutes for each other.

The feature also survives saving and reopening. A workbook closed with frozen panes reopens with them intact, which is why shared templates usually ship with row 1 already pinned. That persistence is visual only; it doesn't travel as a security setting.

Select the Correct Cell Before You Freeze Anything

Excel decides what to pin based on where your cursor sits at the moment you click Freeze Panes. Everything above the selected cell pins, and everything to its left pins too. That rule explains the most common failure: people select the header row itself, freeze it, and see nothing change because there was nothing above it to pin.

To freeze row 1 only, click cell A2. To freeze rows 1 through 3, click cell A4. To freeze both row 1 and column A, click cell B2 β€” the intersection of the first unpinned row and first unpinned column. The selection is a boundary, not a target. Nothing you select gets frozen; everything before it does.

A quick sanity check before committing: look at which row number sits directly under your cursor. If you're on A2, the number 2 appears highlighted, and only row 1 sits above it. If you meant to pin three header rows and your cursor says A2, you're about to pin one.

Undoing a wrong freeze takes two clicks: View > Freeze Panes > Unfreeze Panes. The menu item changes label to reflect current state, so if you see "Unfreeze Panes" in the dropdown, panes are currently frozen somewhere. Excel doesn't warn you first, and it doesn't offer a preview.

Step-by-Step: Freezing a Single Header Row

The single-row freeze is the workhorse operation. It's what most people mean when they ask how to lock a row for scrolling, and it handles the classic wide-table problem: hundreds of data rows below a header that disappears the moment you scroll.

1: Open the worksheet and scroll to the top so row 1 is visible. 2: Click cell A2 β€” the first cell of the first data row, directly beneath your header. 3: On the View tab, in the Window group, click Freeze Panes. 4: Choose Freeze Panes from the dropdown (the first option, not Freeze Top Row β€” that shortcut works only for row 1, and it breaks if your header spans rows 1–2). 5: Scroll down. Row 1 should hold position while rows below slide underneath.

If nothing freezes, check whether your worksheet is in Page Layout view. Freeze Panes is greyed out or behaves oddly in that view, and switching back to Normal view restores it β€” a genuinely common support-forum complaint. If the freeze appears but lands on the wrong row, unfreeze and re-select with more care; Excel gives no undo prompt.

If Freeze Panes is greyed out entirely in Normal view, the workbook may be in a protected state under Review > Protect Workbook, or the sheet may be inside a grouped selection of multiple sheets. Ungroup the sheets (right-click any tab > Ungroup Sheets) and try again. That's the failure case most guides skip, and it accounts for a chunk of "the button won't click" reports.

Freezing Multiple Header Rows for Multi-Tier Tables

Two-tier headers are everywhere in financial models, project trackers, and inventory sheets. The title sits in row 1, column labels in row 2, and data starts in row 3. Freezing only row 1 leaves your column labels scrolling away, which is worse than no freeze at all for comprehension.

The fix is identical in mechanics: select the first cell below the last row you want pinned. For a two-row header, that's A3. For three rows, A4. The Freeze Top Row shortcut handles only row 1, so with any multi-row header you need the full Freeze Panes command β€” this trips up people who learned the shortcut first.

Watch for merged cells in your header rows. Merged cells don't break freezing outright, but they can make selection ambiguous if the merge spans columns, and they complicate sorting and filtering later. If your header uses merges, freeze from a cell clear of the merge region rather than clicking inside it.

The same logic extends to columns. Freezing row 1 and column A together means clicking B2. Once frozen, a vertical line marks the column boundary and a horizontal line marks the row boundary. Those lines show on screen but don't print, so your printouts stay clean.

What you want pinned Click this cell Result
Row 1 only A2 Header row stays, all columns scroll
Rows 1–3 A4 Three header rows stay, all columns scroll
Row 1 and column A B2 Header row and first column both stay
Rows 1–2 and columns A–B C3 Two header rows and two columns stay
Column A only B1 First column stays, all rows scroll

Freeze Panes, Split, and Protect Sheet Do Different Jobs

Three commands get tangled together in user questions, and the differences matter more than the similarities. Freeze Panes pins a region. Split divides the window into independently scrollable panes without pinning anything β€” both halves move. Protect Sheet blocks editing across a range or the whole sheet, and it does nothing to scrolling.

Split isn't a downgrade from freezing; it solves a different problem. Comparing row 2 against row 400 means splitting the window so both are visible while either can scroll. Freezing would pin row 2 permanently, which isn't what a comparison needs. Each pane in a split scrolls on its own, and you can drag the splitter bar to resize the division.

Protect Sheet, found under the Review tab, is where the "lock" language comes from. Cells are technically locked by default in Excel β€” the formatting flag exists for every cell β€” but that flag only takes effect once you protect the sheet. So "locking a cell" and "protecting a sheet" are two halves of one mechanism, and neither touches scrolling.

Command Location Affects scrolling Affects editing Best for
Freeze Panes View > Freeze Panes Yes β€” pins rows/columns No Keeping headers visible
Split View > Split Splits into panes No Comparing distant rows
Protect Sheet Review > Protect Sheet No Yes β€” blocks edits Preventing accidental changes

What Actually Happens to Frozen Rows When You Print or Filter

Freezing changes nothing about output. Frozen rows and columns print exactly as they'd print without the freeze, and no setting exports the pinned region as a repeating header. If you want row 1 to appear at the top of every printed page, that's a different feature entirely: Page Layout > Print Titles > Rows to repeat at top.

That distinction matters because users routinely freeze a header, print, and discover page 2 has no header. Print Titles must be set separately, and the two features don't interact. A frozen header and a repeating print header can coexist without conflict.

AutoFilter behaves normally with frozen headers. Because the header stays visible, the filter dropdowns stay clickable no matter how far down you've scrolled β€” arguably the biggest practical benefit of freezing in long datasets. Clicking a dropdown arrow re-sorts the visible range without disturbing the pinned region above it.

Row height changes can push a frozen row out of view. If you freeze row 1 and later drag its height to 200 pixels, the frozen band eats a fifth of a laptop screen. Nothing breaks, but the usable scroll area shrinks. Set your header heights before distributing a template, and keep frozen regions under roughly 15% of typical screen height.

One more edge case: sorting a range that includes the frozen header row can produce odd visuals because the header appears pinned while the data beneath it reorders. Excel's sort dialog usually detects headers correctly, but if a header label ends up sorted into the data, unfreeze, fix the range, and re-apply.

Tables Deliver Sticky Headers Without Any Freezing

Converting a range to an Excel Table (Insert > Table, or Ctrl+T) gives you a header row that stays visible while scrolling inside the table, no Freeze Panes required. It's automatic, and it travels with the table wherever you paste it. Microsoft added this behavior in Excel 2007 alongside the Table feature itself.

Table headers also bring column filter buttons by default and structured references in formulas, so most data-entry workflows benefit from converting anyway. The catch: the sticky behavior applies only inside the table's own scroll context, and if your worksheet has content above the table, that content scrolls away. For dashboards with a title block above the table, Freeze Panes remains the only way to pin the title.

You can combine both. Convert the data to a Table, then freeze any rows above it β€” say, a title and subtitle in rows 1–2. The Table's own header stays visible inside the table, and the frozen rows stay visible above it. That layered approach suits reporting sheets where context matters as much as column labels.

Tables don't play nice with every legacy feature. Shared workbooks, Power Query staging sheets, and some add-ins refuse Table formatting. If the Table route fails, freeze panes instead; it's universally supported and doesn't change the file's structure.

Keyboard Route, Mobile Behavior, and One Version Difference

Mouse-free users can freeze panes in a few keystrokes. There's no direct default shortcut, but the Alt ribbon sequence works on every recent Windows version: Alt, W, F, F. Each letter opens the next menu level β€” View, Freeze Panes menu, Freeze Panes command. On a Mac with Excel 2016 or later, the sequence is similar but the ribbon letter order differs slightly; confirm on your installed build.

Excel for the web supports freeze panes and keeps them synced with the desktop file. Excel for iPad and iPhone supports viewing frozen panes but only recently gained the ability to create them β€” Apple's App Store release notes for the Excel iOS app confirm the addition, and older builds won't show the option. If you're editing on Android, freeze works, but the menu sits behind the View icon rather than labeled tabs.

A version difference worth knowing: Excel 2007 and 2010 cap frozen panes at the visible window boundary in some view modes, and freezing deep rows (say, row 100) can produce a scrollbar that appears broken. The behavior corrected in Excel 2013 when the window management was rebuilt. On modern Microsoft 365 builds, freezing any row works consistently, and the deep-freeze quirk is effectively gone.

Google Sheets uses the same concept under a different name β€” View > Freeze > Up to row N β€” and preserves it when the file lands in Excel. Cross-platform templates built on freezes generally survive the round trip, though merged cells near the freeze boundary occasionally shift on import.

Fixing Freezes That Refuse to Work or Land Wrong

When Freeze Panes is greyed out, three causes cover most cases: the workbook is protected, multiple sheets are grouped, or the view is set to Page Layout rather than Normal. Unprotect via Review > Unprotect Workbook, ungroup sheets by right-clicking a tab, and switch to View > Normal. Any of the three alone can disable the command.

When the freeze applies to the wrong row, the fix is purely mechanical. View > Freeze Panes > Unfreeze Panes, then re-select the boundary cell. This happens most often when users click a cell inside a merged header or accidentally select a row in the middle of the data. The dropdown label itself tells you the current state, so reading it before clicking saves a round trip.

When frozen rows appear duplicated or shredded on screen, suspect zoom level or display scaling. At 50% zoom on a high-DPI monitor, the frozen boundary can render with a visible tear. Resetting zoom to 100% via View > Zoom usually clears it, and the underlying freeze remains intact throughout.

Persistent problems after all that point to file corruption. Excel's Open and Repair option (File > Open > Browse, then click the arrow beside Open) can salvage a workbook whose freeze state has become unstable. As a last resort, copy the data into a fresh workbook; freezes rarely survive a corrupted file structure, and rebuilding them takes seconds.

When Freezing Is the Wrong Tool

Datasets that exceed roughly 100,000 rows in a single sheet will test anyone's patience, frozen header or not. Excel's grid limit is 1,048,576 rows by 16,384 columns per Microsoft's published specifications, and scrolling through six figures of rows is a workflow problem freezing can't solve. PivotTables, filters, or Power Query views serve better.

Shared workbooks with multiple simultaneous editors can produce conflicting freeze states. The last save wins, so one user's carefully positioned freeze may vanish when a colleague saves without it. Modern co-authoring through Microsoft 365 reduces the risk but doesn't eliminate it; agree on the template's freeze layout before sharing.

Finally, freezing doesn't belong in exported deliverables. A PDF or CSV export carries no freeze state at all, so a frozen header creates no advantage downstream. Build the freeze for your own working copy, and set Print Titles separately for anything that leaves Excel.

The genuine limitation of Freeze Panes is its rigidity. Once set, the boundary is fixed until you unfreeze, and there's no per-user override, no toggle, and no conditional freeze. A user who wants row 1 visible in January and rows 1–3 visible in February must change it manually each time. For a five-second operation, that's tolerable. For a template used by dozens of people with different needs, the rigidity forces a decision about which single layout wins.

FAQ

Does freezing a row also lock it from edits?

No. Freezing is visual only, and anyone with edit access can still change or delete a frozen header. To block editing you need Review > Protect Sheet, which is a separate command and doesn't affect scrolling. Running both together gives you a pinned, non-editable header, and that's the combination most shared templates actually want.

Why is Freeze Panes greyed out in my workbook?

Three causes explain nearly every case: the workbook is protected under Review, several sheets are grouped, or the view is set to Page Layout instead of Normal. Check the Protect Workbook status first, then right-click a sheet tab to confirm no grouping. Switching back to Normal view under the View tab clears the third cause.

Can I freeze two different rows at once?

You can pin a contiguous block of rows β€” rows 1 through 3, for example, by selecting cell A4 β€” but not two separated rows with a gap between them. Non-adjacent freezing isn't supported in any Excel version. If you need a label from row 1 and a second label from row 50 visible together, Split is the workaround, giving each pane its own scroll position.

How many rows can I freeze?

Excel allows up to 1,048,576 rows in a sheet, and technically you could freeze more than a million if you selected the last cell. Practically, frozen rows eat visible screen space, so anything beyond about five header rows leaves little room to scroll. Keep the frozen band under 15% of the window height.

Does freezing survive when I open the file in Google Sheets?

Usually yes. Google Sheets reads the freeze boundary on import and displays it as "Up to row N" under View > Freeze. Merged cells or unusual row heights near the boundary can shift the freeze by a row on import, so open the converted file and confirm before sharing. Round trips back to Excel generally preserve the setting as well.

What's the difference between Freeze Top Row and Freeze Panes?

Freeze Top Row is a shortcut that pins row 1 and nothing else β€” it's one click and no selection required. Freeze Panes pins everything above the active cell and works for multi-row headers, column freezing, or both together. Once any freeze is active, the shortcut menu still shows "Freeze Top Row," but clicking it does nothing new if row 1 is already pinned.

Can I freeze a row in the middle of the worksheet?

Yes. Select the row below your target and freeze; everything above it β€” including rows you didn't intend to pin β€” becomes frozen too. Excel pins all rows above the boundary, not just one. To keep a mid-sheet row visible while scrolling only within a lower region, use Split instead, which gives each pane independent scrolling.

Will frozen rows appear on every printed page?

No. Freezing is a screen-only setting with no effect on print output. To repeat a header row across printed pages, go to Page Layout > Print Titles and enter the row reference in "Rows to repeat at top." The two settings are independent, and using both is common in professional templates.