How to Freeze Cells in Excel: Lock Rows, Columns, or Both

Learn how to freeze cells in Excel to keep rows and columns visible while scrolling. Covers freezing rows, columns, panes, and how to unfreeze.

How to Freeze Cells in Excel: Lock Rows, Columns, or Both

How to Freeze Cells in Excel

Freezing cells in Excel locks specific rows or columns so they remain visible while you scroll through a large spreadsheet. The 'freeze cells' terminology covers several related features: Freeze Top Row (locks row 1), Freeze First Column (locks column A), and Freeze Panes (locks any rows and columns you specify). All three are accessed from the View tab → Freeze Panes dropdown menu on the ribbon.

The most common use case is freezing the header row so column labels remain visible as you scroll down through hundreds of rows of data. Without freezing, a header row disappears as soon as you scroll past it, forcing you to either scroll back up constantly or try to remember what each column contains. Freezing solves this instantly and costs nothing in terms of data structure — it's a display setting that doesn't change your data or formulas.

Freeze Panes, the most flexible option, locks everything above and to the left of the cell you select before applying the freeze. This allows you to freeze multiple rows, multiple columns, or both simultaneously. The frozen area is separated from the scrollable area by a thin gray line — you'll see it immediately after applying a freeze.

One point that frequently confuses new users: freezing cells is not the same as locking or protecting cells. Freeze Panes is a view feature — it only controls what stays visible while scrolling. Cell protection (via Review → Protect Sheet) is a separate feature that prevents editing of designated cells regardless of scroll position. You can freeze a row that contains protected cells, and the two settings work independently of each other without conflict. Freeze Panes doesn't restrict editing, and cell protection doesn't affect scrolling behavior.

Understanding how to freeze rows effectively (and when to use which freeze option) is covered in depth in the freeze row guide. This article covers the full range of Excel's freeze options — including how to lock columns and freeze multiple rows or columns at once — and explains common mistakes that cause freeze panes to behave unexpectedly.

  • Freeze top row: View tab → Freeze Panes → Freeze Top Row
  • Freeze first column: View tab → Freeze Panes → Freeze First Column
  • Freeze both rows and columns: Click the cell BELOW the rows and to the RIGHT of the columns you want frozen → View → Freeze Panes → Freeze Panes
  • Unfreeze: View tab → Freeze Panes → Unfreeze Panes (option appears when freeze is active)
  • Visual indicator: Thick gray line separates frozen area from scrollable area
  • Freeze panes are saved with the workbook — your freeze settings reopen with the file

Freeze Options in Excel: Step by Step

rows

Freeze Top Row

Go to View tab → Freeze Panes dropdown → click Freeze Top Row. Excel freezes row 1 immediately regardless of your current selection. As you scroll down, row 1 stays visible. This is the fastest option for spreadsheets where your column headers are in row 1.
columns

Freeze First Column

Go to View tab → Freeze Panes dropdown → click Freeze First Column. Excel freezes column A regardless of your current cell selection. As you scroll right, column A stays visible. Useful when column A contains row identifiers (names, IDs, codes) you need to see while viewing data in distant columns.
settings

Freeze Panes (Multiple Rows or Columns)

Click the cell that is BELOW the rows you want frozen AND to the RIGHT of the columns you want frozen. Then go to View → Freeze Panes → Freeze Panes. Everything above and to the left of your selected cell is frozen. Example: to freeze rows 1-2 and columns A-B, click cell C3, then apply Freeze Panes.
check

Verify the Freeze

After applying, look for the thick gray line separating the frozen area. Scroll down (if you froze rows) or right (if you froze columns) to confirm the frozen area stays in place. If the freeze didn't work as expected, Unfreeze Panes and re-apply with a different cell selection.
cancel

Unfreeze Panes

Go to View tab → Freeze Panes dropdown → click Unfreeze Panes. This option only appears when a freeze is active. After unfreezing, the gray separator line disappears and all rows and columns scroll normally. There is no keyboard shortcut to toggle freeze/unfreeze directly.
Microsoft Excel - Microsoft Excel certification study resource

Freeze Panes vs. Freeze Top Row vs. Freeze First Column

Excel offers three freeze options in the Freeze Panes dropdown, and the one you choose depends on what you need to keep visible. Freeze Top Row and Freeze First Column are shortcuts that apply a fixed freeze to row 1 or column A regardless of your current cell selection — they're one-click operations for the most common freeze scenarios. Freeze Panes is the flexible option that lets you specify any freeze boundary.

One important limitation: you can only have one freeze active at a time in any given worksheet. If you apply Freeze Top Row and then apply Freeze First Column, the first freeze is replaced — you don't get both simultaneously. To freeze both rows and columns at once, you must use the Freeze Panes option (not the two shortcuts). Select the cell at the intersection point first, then apply Freeze Panes.

If your header row is in row 1 and you need to freeze it along with column A, click cell B2 before applying Freeze Panes. The freeze will lock row 1 (above row 2) and column A (to the left of column B). This is the most common multi-directional freeze for data tables with both row and column labels. For larger freezes — say, locking three header rows and two label columns — click cell C4 (below rows 1, 2, 3 and to the right of columns A, B) before applying Freeze Panes.

Freeze settings are saved with the workbook and persist when you close and reopen the file. They're also preserved when you share the file — anyone who opens your Excel file will see the same freeze settings you applied. This makes freeze panes a useful formatting tool for spreadsheets you share with others who may not be familiar with the data layout — locking headers means they always know what each column contains regardless of where they scroll. Use this alongside the Excel budget template patterns for building share-ready financial models where data clarity across rows is critical.

When to Use Each Freeze Option

Freeze Top Row

When: column headers are in row 1 and you just need to keep that one row visible while scrolling down. Works with one click — no cell selection required. Most commonly used freeze option in Excel.

Freeze First Column

When: row identifiers (names, IDs, product codes) are in column A and you need them visible while scrolling right through many columns of data. Works with one click — no cell selection required.

Freeze Panes

When: you need to freeze more than one row, more than one column, or both rows and columns simultaneously. Requires selecting the correct 'intersection cell' before applying. Most flexible freeze option.

No Freeze Needed

Small datasets that fit within the visible screen area don't benefit from freeze panes — the headers are always visible. Freeze adds value only when the data extends beyond what's visible on a single screen, requiring scrolling.

Common Freeze Pane Scenarios

To freeze multiple rows at the top of a spreadsheet — for example, a title row in row 1 and a column header row in row 2 — click the first cell in the row immediately below your last frozen row (cell A3 if you're freezing rows 1 and 2), then go to View → Freeze Panes → Freeze Panes.

The rule: click in column A of the first row you want to scroll. Everything above that row will be frozen. For three rows frozen: click A4. For just one row frozen: the Freeze Top Row shortcut is faster. For custom row positioning (your headers are in row 3, not row 1): click A4 and use Freeze Panes — the Freeze Top Row shortcut only works for row 1.

Excel Spreadsheet - Microsoft Excel certification study resource

Common Freeze Pane Problems and Fixes

The most common freeze pane mistake is forgetting to click the correct cell before applying Freeze Panes. If you click cell A1 and apply Freeze Panes, nothing is frozen — because there are no rows above A1 and no columns to the left of A1 to freeze. The Freeze Panes option only freezes what's above and to the left of your selection. If you get an unexpected result, unfreeze and check which cell was selected before you reapply.

Trying to apply Freeze Top Row or Freeze First Column when your scroll position is not at the top or left of the sheet can cause confusion — the freeze is applied to row 1 or column A regardless of where you're currently scrolled. After applying, scroll to the top-left to verify the freeze is working correctly from the beginning of your data. The freeze applies to the structural row and column position, not to the row or column currently visible on screen.

Freeze Panes are incompatible with some Excel features. Excel Table auto-filter headers behave differently when combined with freeze panes — in some cases, the filter dropdowns may overlap or the behavior becomes confusing when you have both an Excel Table and a frozen row. If this causes problems, one approach is to rely on the Excel Table's own header-locking behavior (which pins headers when you scroll within the table) rather than also applying Freeze Panes.

Split views are a different feature that's sometimes confused with freeze panes. Split (View → Split) divides the worksheet into resizable panes that scroll independently — useful for comparing two parts of the same worksheet. Freeze Panes locks specific rows/columns as you scroll through the rest of the data. Both features are in the View tab, but they serve different purposes and can't be used simultaneously.

If you accidentally applied a Split instead of Freeze, go to View → Split to toggle it off, then apply Freeze Panes instead. For print-layout work where you need frozen data, also check the Excel shortcuts guide for Page Layout view shortcuts that affect how frozen rows interact with print settings.

Another subtle issue: if you open an Excel file received from someone else and the freeze panes feel wrong (for example, the freeze boundary is mid-table or frozen in an unexpected location), you can always Unfreeze Panes and reapply your preferred settings without affecting the data. Freeze settings are a per-user, per-session view preference stored in the workbook, not a locked structural property of the spreadsheet.

Reorganizing freeze boundaries is a routine formatting step when adapting someone else's workbook to your own workflow or screen size. This is especially useful when you receive a template from a colleague designed for a wider screen — simply unfreeze, adjust the boundary, and reapply to match your own display preferences without changing any of the underlying data or formulas.

Freeze Cells in Excel: Best Practice Checklist

Freeze Panes vs. Excel Table Auto-Headers

Pros
  • +Freeze Panes works for any row or column — not just structured table headers
  • +Freeze Panes is visible immediately when the file opens — no need to click inside a table first
  • +Freeze Panes is more reliable for shared workbooks where recipients may not know about Excel Tables
  • +Excel Table auto-headers pin automatically when you click inside the table — no setup required
  • +Excel Table auto-headers combine with filter dropdowns and structured references without extra configuration
Cons
  • Freeze Panes can conflict with Excel Table header display in some scenarios — double-pinning of headers
  • Freeze Panes requires manual setup — you must apply it each time you create a new worksheet that needs it
  • Excel Table auto-headers only work when the cursor is inside the table — they don't pin if you scroll from outside the table
  • Excel Table auto-headers don't freeze columns — they only pin the header row, not row labels in the left column
  • Freeze Panes doesn't interact with Excel Table filtering the same way native Table headers do — filter dropdowns may behave differently
Excellence Playa Mujeres - Microsoft Excel certification study resource

Freeze Panes and Printing in Excel

Freeze Panes is a screen display feature — it controls what stays visible as you scroll. It does not control what prints on every page of a multi-page printout. To repeat row or column labels on every printed page, you need a separate setting: Page Layout tab → Print Titles → Rows to repeat at top (or Columns to repeat at left).

The Print Titles feature lets you specify which rows appear at the top of every printed page, similar to freeze panes but for print output. Many users expect freeze panes to handle both screen display and print header repetition — but they're entirely separate settings. If you want both (headers visible while scrolling on screen AND repeated on every printed page), you need to apply both Freeze Panes and Print Titles independently.

For reports you'll both navigate on screen and print, set up both settings as part of your spreadsheet preparation. Go to View → Freeze Panes for the screen freeze, then go to Page Layout → Print Titles for the print repeat. These settings don't interfere with each other and can reference the same rows without conflict. You can verify your print title settings by going to File → Print and checking the preview — if row 1 appears on every page, your Print Titles are configured correctly.

Page breaks interact with frozen panes visually — in Page Layout view, you'll see dotted lines indicating page breaks, and frozen panes are still active. In Normal view with freeze panes, the gray separator line can sometimes look similar to a page break dashed line if your zoom level is low.

Use the Zoom slider or switch to Page Layout view to clearly distinguish between freeze pane separators and page break indicators when setting up complex multi-page worksheets. For large data sets with formulas requiring frozen reference, see how the Excel formulas guide handles absolute cell references — frozen panes affect viewing but not formula behavior.

Excel Freeze Panes Quick Reference

1Freeze active at a time per worksheet — applying a new freeze replaces the previous one
View tabLocation of all Freeze Panes options: View → Freeze Panes dropdown
3Freeze options: Freeze Top Row, Freeze First Column, Freeze Panes (custom)
0Keyboard shortcuts for freeze/unfreeze toggle — no direct shortcut; use View → Freeze Panes
SavedFreeze pane settings are saved with the workbook and reopen with the file
SeparatePrint Titles (repeated headers when printing) is a separate setting from Freeze Panes

Keyboard Navigation with Frozen Panes

Keyboard shortcuts work naturally with frozen panes — Ctrl+Home takes you to cell A1 (the first cell of the scrollable area) regardless of freeze settings. If you've frozen rows 1-2 and columns A-B, pressing Ctrl+Home moves to cell C3 (the first unfrozen cell in the scrollable area), not to cell A1 in the frozen zone. This can be slightly disorienting if you're accustomed to Ctrl+Home always landing on A1.

To navigate to cells within the frozen area, click on them directly. You can't scroll to cells in the frozen zone — the frozen area is always visible and clicking is the way to select cells there. Arrow keys move within the scrollable area; if you navigate to the edge of the scrollable area, the viewport scrolls but the frozen area stays fixed.

Ctrl+Right and Ctrl+Down jump to the last non-empty cell in the current row or column within the scrollable area. These shortcuts still work normally with freeze panes active. For navigating to specific cells by address, use the Name Box (the cell reference box at the upper left, showing the current cell address) — type a cell address and press Enter to jump to it regardless of freeze settings or current scroll position.

Working with frozen panes in large spreadsheets alongside complex layouts like merged cells in Excel requires care — keyboard navigation through frozen header rows that contain merged cells can produce unexpected behavior since merged cells span multiple addresses. If you find navigation within the frozen area confusing, avoid merging cells in the frozen rows and use Center Across Selection instead, which preserves individual cell addresses for cleaner keyboard navigation throughout the worksheet.

When you're working in a shared workbook that tracks data across many columns, frozen panes combined with thoughtful use of the budget template column layout helps collaborators orient themselves quickly. If your team reviews the workbook on different screen sizes — laptop vs desktop monitors — consider which rows and columns are most essential to keep visible across all viewport sizes.

A freeze boundary that works on a large monitor may cut off useful context on a small laptop screen, so testing on multiple screen sizes before distributing a workbook with freeze panes configured is a useful final step. Choosing two or three rows to freeze rather than just one gives smaller screens more context without significantly reducing the visible scrollable area on larger displays.

Using Freeze Panes with Excel Tables and PivotTables

Excel Tables (formatted with Ctrl+T) have a built-in header behavior that's separate from Freeze Panes: when you scroll down within an Excel Table, the column headers automatically replace the column letters (A, B, C...) in the column header area while you're scrolled inside the table. This behavior is automatic and doesn't require Freeze Panes — it's a feature of the Table itself.

When you apply Freeze Panes to a worksheet that also contains an Excel Table, both mechanisms operate simultaneously. The frozen row remains at the top of the viewport from Freeze Panes, and the Table's own header pinning also applies when you scroll within the table. This can create a doubled-header appearance in some Excel versions — your frozen row shows the header from Freeze Panes, and the column header area also shows Table headers when scrolled into the table. This is cosmetic and doesn't affect data or formulas.

For PivotTables, Freeze Panes behaves the same way as with regular data ranges — you can freeze rows above the PivotTable to keep report context visible. However, when you refresh or restructure a PivotTable, the layout can shift, and previously frozen rows may no longer align with your intended freeze boundary. After any significant PivotTable restructuring, verify that your Freeze Panes settings still make sense for the new layout. In some cases, unfreezing and re-applying Freeze Panes is the cleanest fix after a major PivotTable change.

For dropdown controls and data validation (like drop-down lists in Excel) that appear within frozen cells, the dropdown works normally — clicking the dropdown cell in the frozen area opens the selection menu as expected. The only quirk is that the dropdown list itself always drops down within the scrollable area, not the frozen area — this is an Excel display behavior that can't be changed.

Excel Questions and Answers

About the Author

James R. HargroveJD, LLM

Attorney & Bar Exam Preparation Specialist

Yale Law School

James R. Hargrove is a practicing attorney and legal educator with a Juris Doctor from Yale Law School and an LLM in Constitutional Law. With over a decade of experience coaching bar exam candidates across multiple jurisdictions, he specializes in MBE strategy, state-specific essay preparation, and multistate performance test techniques.