How to Freeze Rows and Columns in Excel: The Complete Step-by-Step Guide
Learn how to freeze rows and columns in Excel step by step. Keep headers visible while scrolling through large datasets with easy freeze pane techniques.

Knowing how to freeze rows and columns in Excel is one of the most practical skills any spreadsheet user can develop. Whether you are managing a financial model, analyzing a large dataset, or building a reporting dashboard, freezing panes keeps your header row or label column locked in place while you scroll through thousands of entries. This guide walks you through every method available in modern Excel, from a single frozen header row to freezing multiple rows and columns simultaneously, so you never lose track of where your data belongs.
Excel's Freeze Panes feature sits inside the View tab and offers three distinct options: Freeze Top Row, Freeze First Column, and the fully customizable Freeze Panes command. The first two options are single-click solutions that work perfectly for simple spreadsheets with a standard layout. The third option gives you precise control, letting you lock any combination of rows and columns by selecting the cell positioned immediately below and to the right of everything you want frozen. Understanding the logic behind that cell-selection step is the key that unlocks the entire feature.
Many Excel users discover this feature only after the frustration of scrolling down to row 500 and completely losing sight of which column holds sales figures versus return rates versus margin percentages. That problem is universal, and freeze panes solves it elegantly. Unlike splitting a window into separate panes, freezing does not create an independent scroll region — it simply anchors the top or left portion of the sheet so it remains visible at all times, regardless of how far you scroll in any direction.
Beyond the basic freeze, this article also covers how to unfreeze panes, how to freeze multiple rows or multiple columns at once, and how those techniques interact with other Excel features like how to freeze rows and columns in excel for financial modeling workflows. You will also find answers to the most common freeze-pane questions, including why the option sometimes appears grayed out and how to work around protected sheets that restrict view changes.
This guide is designed for users working with Excel 2016, 2019, 2021, Microsoft 365, and the web version of Excel. The core steps are identical across all recent desktop versions; minor interface differences in Excel for Mac and Excel Online are called out explicitly where they exist. By the end of this walkthrough you will be comfortable freezing any combination of headers, confident in unfreezing when a layout needs to change, and aware of the handful of edge cases where freeze panes behaves unexpectedly.
It is worth noting that freezing panes is entirely a display setting — it has no effect on your data, formulas, or print layout by default. You are not locking cells for editing protection; you are simply telling Excel's viewport which rows and columns should stay pinned to the top-left corner of the screen. That distinction matters because users sometimes confuse freeze panes with cell locking for protection, which is a completely separate feature found under the Review tab. Freeze panes affects only what you see while navigating; it does not prevent anyone from editing the frozen cells.
Throughout this article you will also find context for related Excel skills that complement freeze panes, including how to create a drop down list in Excel for data validation, how to merge cells in Excel for cleaner header labels, and how VLOOKUP in Excel can be dramatically easier to use when your column headers are always visible on screen. Each of these features works best when your spreadsheet is organized with a clear, permanently visible header structure — exactly what freeze panes provides.
Excel Freeze Panes by the Numbers

How to Freeze Rows and Columns in Excel: Step-by-Step Methods
Open the View Tab
Freeze the Top Row Only
Freeze the First Column Only
Select a Cell to Freeze Custom Rows and Columns
Apply the Custom Freeze Panes Command
Unfreeze Panes When Needed
Freezing multiple rows at once is a frequent need in workbooks where the header section spans more than one line. A common example is a financial report where row 1 holds a company name or report title, row 2 holds a subtitle or date range, and row 3 holds the actual column labels.
To freeze all three of those rows, you click cell A4 — the first cell in the first row you do not want frozen — then go to View → Freeze Panes → Freeze Panes. Excel anchors everything above row 4, so rows 1, 2, and 3 all stay visible as you scroll down through hundreds of data rows.
The same logic applies to freezing multiple columns. If your spreadsheet has an ID column in column A and a Name column in column B that both serve as row identifiers, click cell C1 before applying the freeze. Excel will lock columns A and B in place while allowing columns C onward to scroll horizontally. The gray freeze line will appear to the right of column B, making it immediately clear which portion of the sheet is anchored and which is free-scrolling.
Where things get interesting — and where most users make their first mistake — is when you want to freeze both multiple rows and multiple columns simultaneously. The rule is the same: select the single cell that sits at the intersection of the row below your last frozen row and the column to the right of your last frozen column.
To freeze rows 1 through 3 and columns A through B at the same time, click cell C4. Then apply Freeze Panes. Excel will anchor the top-left rectangle defined by that cell, locking rows 1–3 and columns A–B as a unified frozen region that remains visible no matter which direction you scroll.
It is important to understand that Excel does not allow you to freeze non-contiguous rows or columns. The frozen region is always a rectangle anchored to the top-left corner of the sheet. You cannot, for example, freeze row 1 and row 5 while leaving rows 2, 3, and 4 scrollable. If your layout requires something like that, the workaround is to reorganize your spreadsheet so all the rows you want pinned are consecutive at the top of the sheet, or to use Excel's Split Panes feature instead, which creates independently scrollable regions rather than a single anchored header area.
For users building complex Excel dashboards, combining freeze panes with named ranges and structured table formatting creates an exceptionally navigable workbook. When you convert a data range to an official Excel Table using Ctrl+T, Excel automatically displays the column headers in the column letter row at the top of the screen when you scroll down — even without using Freeze Panes.
However, this behavior only works inside the table's own rows; if your sheet has summary sections above or below the table, those areas will still scroll away. Explicit freeze panes remain the most reliable way to pin any specific row or column in a complex, multi-section workbook.
Another practical scenario where freezing multiple rows proves invaluable is when working with pivot tables that have been formatted with multiple header rows for readability, or when managing large datasets for data analysis with the Excel Data Analysis Toolpak.
When you scroll through thousands of rows of raw data to identify trends, verify outliers, or review grouped summaries, having two or three rows of identifying headers locked in place prevents the cognitive load of constantly scrolling back up to remember what each column represents. This small workflow optimization adds up to significant time savings over a full working day of data review.
Users who work frequently with financial models will recognize that frozen rows and columns are nearly non-negotiable for large models. A typical corporate financial model might have 50 or more columns representing monthly periods and 200 or more rows representing line items across multiple statements. Without freeze panes, navigating such a model means constantly losing your orientation.
Best practice in financial modeling is to freeze the first two to three rows (usually a section label row and a date/period row) and the first one to two columns (usually a row number or line item description column), creating a permanent navigation anchor across the entire model.
How to Freeze a Row in Excel: By Version and Platform
On Windows versions of Excel — including Excel 2016, 2019, 2021, and Microsoft 365 — the Freeze Panes command lives in the View tab under the Window group. The keyboard shortcut path is Alt → W → F, which opens the freeze submenu, followed by F again for Freeze Panes, R for Freeze Top Row, or C for Freeze First Column. Power users who freeze and unfreeze frequently often add the Freeze Panes button to the Quick Access Toolbar for single-click access from any tab in the ribbon.
A common issue on Windows is that the Freeze Panes menu option appears grayed out when the workbook is in Page Layout view or Page Break Preview mode. Switching back to Normal view (View → Normal) immediately restores the option. The option is also unavailable when a cell is in edit mode — press Escape or Enter to exit the cell before attempting to freeze. Protected sheets may also restrict freeze pane changes depending on the protection settings applied by the sheet owner.

Freeze Panes vs. Split Panes: Which Should You Use?
- +Keeps header rows permanently visible while scrolling through thousands of data rows
- +Works instantly with a single click for the most common use cases (top row or first column)
- +Freeze settings are saved with the workbook and persist across all devices and Excel versions
- +Does not affect data, formulas, print settings, or cell protection in any way
- +Compatible with Excel Tables, PivotTables, and structured ranges without conflicts
- +Supports freezing both rows and columns simultaneously for complex navigation needs
- −Cannot freeze non-contiguous rows or columns — the frozen region must always be a top-left rectangle
- −Freeze Panes option is grayed out in Page Layout view, Page Break Preview, and cell edit mode
- −Only one freeze configuration is allowed per sheet — you cannot have two separate frozen regions
- −Protected sheets may prevent users from changing freeze settings depending on protection scope
- −Freezing does not affect print headers — you must separately configure rows to repeat in Page Setup
- −Split Panes offers more flexibility for side-by-side comparison of distant data regions in the same sheet
Freeze Panes Checklist: Before and After Applying the Freeze
- ✓Confirm you are in Normal view (View → Normal) before attempting to apply any freeze pane.
- ✓Press Escape or Enter to exit cell edit mode if the Freeze Panes option appears grayed out.
- ✓Identify the exact rows and columns you want frozen before selecting your reference cell.
- ✓Select the cell one row below and one column to the right of your intended frozen region.
- ✓Use Freeze Top Row for simple single-header-row spreadsheets — no cell selection required.
- ✓Use Freeze First Column for spreadsheets where column A contains row identifier labels.
- ✓Apply View → Freeze Panes → Freeze Panes for any multi-row or multi-column custom freeze.
- ✓Verify the gray freeze line appears in the correct position after applying the freeze.
- ✓Scroll down and right to confirm the frozen rows and columns remain anchored as expected.
- ✓Set print row/column titles separately via Page Layout → Print Titles if headers must also appear on printed pages.
The Cell You Click Defines the Freeze Boundary
The single most important concept in custom freeze panes is this: the cell you select before clicking Freeze Panes becomes the top-left corner of the scrollable region. Everything above that cell's row is frozen horizontally; everything to the left of that cell's column is frozen vertically. Select cell B2 and you freeze row 1 and column A simultaneously. Select cell C4 and you freeze rows 1–3 and columns A–B. Master this rule and every freeze pane scenario becomes straightforward to execute on the first try.
One of the most overlooked aspects of the Freeze Panes feature is its interaction with the print settings in Excel. Many users assume that if a row is frozen on screen, it will also repeat on every printed page — but that is not the case. Freeze panes is purely a screen navigation feature. To make a header row repeat on each printed page, you must go to Page Layout → Print Titles and specify which rows or columns should print on every page. This setting is completely independent of freeze panes and must be configured separately.
The confusion between freeze panes and print titles is especially common when users are preparing large reports for distribution. It is entirely normal — and often correct — to have both settings active at the same time: freeze panes for comfortable on-screen navigation during editing and data review, and Print Titles set to the same rows for consistent printed output. The two features coexist perfectly without any conflict, and configuring both takes only a few extra seconds in the Page Layout tab.
Another important edge case involves Excel Tables (formatted with Ctrl+T). When your cursor is positioned anywhere inside an Excel Table and you scroll down past the header row, Excel automatically substitutes the table's column headers into the column letter row at the top of the screen.
This built-in behavior can look like freeze panes but is actually a separate Table feature. If you then apply explicit freeze panes on top of a Table, both behaviors activate: the Table auto-header display works within the table rows, and the freeze keeps any content above the table (like a report title row) visible as well.
For users who work extensively with VLOOKUP in Excel and similar lookup functions, frozen column headers provide a practical benefit beyond navigation. When you are writing a VLOOKUP formula and need to identify the correct column index number, having the header row always visible lets you count columns accurately without scrolling back to the top. The same benefit applies to INDEX/MATCH formulas, SUMIF ranges, and any other formula that references specific columns by position or by named headers.
Users who share workbooks with colleagues sometimes ask whether freeze pane settings can be locked so that other users cannot remove them. The answer is yes, with a caveat: you can protect the sheet using Review → Protect Sheet, which by default prevents changes to freeze panes along with all other sheet formatting changes.
However, standard sheet protection also prevents data entry unless you specifically allow it. A more practical approach for shared workbooks is to document the freeze pane setup in a separate instructions tab and rely on team agreement rather than technical enforcement, since overly aggressive protection often creates workflow friction.
When working with how to merge cells in Excel for header formatting purposes, it is worth knowing that merged cells and freeze panes can interact in unexpected ways. If you merge cells across the top row — for example, merging A1 through F1 to create a wide title cell — and then freeze that row, the freeze works correctly.
However, if the merged cell region extends into the area you intend to be scrollable, it can sometimes cause the freeze line to shift slightly. Best practice is to apply your freeze pane first and verify its position, then apply any merged cell formatting in the header rows afterward.
The how to create a drop down list in Excel feature is another commonly combined technique. Drop-down lists created with Data Validation are typically placed in data-entry rows or columns below a frozen header. When the header row is frozen, users can scroll through hundreds of data-entry rows while always seeing the column label that identifies what each drop-down should contain. This combination — frozen headers plus data validation drop-downs — is a cornerstone of well-designed Excel data-entry forms that minimize user errors and maintain data consistency across large datasets.

The three most common reasons Freeze Panes appears grayed out are: (1) the workbook is in Page Layout or Page Break Preview mode instead of Normal view — fix by clicking View → Normal; (2) a cell is currently in edit mode — fix by pressing Escape; or (3) the sheet is protected and the protection settings disallow view changes — you must unprotect the sheet via Review → Unprotect Sheet before the freeze option becomes available.
Advanced users who build complex, multi-sheet Excel workbooks often apply freeze panes consistently across every sheet in a workbook as part of their standard workbook setup process. A practical technique is to use a macro or VBA script to apply the same freeze configuration — such as always freezing row 1 and column A — to every worksheet in a workbook at once, rather than setting it manually sheet by sheet. This is especially useful when creating template workbooks that will be distributed to dozens of users who need a consistent navigation experience regardless of which sheet they are viewing.
The VBA code to freeze the top row on every sheet in a workbook is straightforward. A simple loop iterates over each worksheet object in the workbook's Worksheets collection, activates each sheet, moves the active cell to B2, and applies the ActiveWindow.FreezePanes = True property. This automates in seconds what would otherwise require manually visiting every sheet. For workbooks with 20 or 30 sheets, this kind of automation is a significant time saver and ensures no sheet is accidentally left without its freeze configuration.
For users preparing for Microsoft Excel certification exams, understanding freeze panes is typically tested as part of the navigation and worksheet management section. The MOS (Microsoft Office Specialist) Excel exam covers freeze panes as a core skill, and exam questions often present scenarios where you must identify the correct cell to select before applying a custom freeze, or recognize what the freeze line position indicates about which rows and columns are locked. Practicing with realistic spreadsheet scenarios — not just reading about the feature — is the most effective way to build exam-ready confidence with this topic.
It is also worth understanding how freeze panes interacts with Excel's Zoom settings. When you zoom in or out on a sheet using the zoom slider in the bottom-right corner, the freeze lines adjust proportionally so that the frozen region continues to display the correct number of rows and columns.
At very low zoom levels (such as 50%), a frozen header row may show only a small band at the top, but it remains fully functional and continues to anchor those rows regardless of zoom level. The freeze behavior is resolution-independent and works correctly across all supported zoom levels from 10% to 400%.
For users who need to review their Excel skills more broadly — including freeze panes, data formatting, formula writing, and chart creation — working through structured practice questions is one of the most efficient preparation methods. The practice materials at PracticeTestGeeks cover the full range of Excel competencies tested in workplace assessments, certifications, and technical interviews. Combining hands-on practice in an actual Excel workbook with quiz-based knowledge checks creates the dual reinforcement that accelerates skill retention most effectively.
Understanding excellence in Excel is not just about knowing individual features — it is about developing the judgment to choose the right tool for each situation. Freeze panes is the right tool when you need permanent header visibility during data navigation. Split panes is the right tool when you need to compare two distant sections of the same sheet side by side.
Print Titles is the right tool when headers need to appear on every printed page. Recognizing these distinctions and applying each feature confidently in the appropriate context is what separates proficient Excel users from truly advanced practitioners who can build and maintain complex, professional-grade workbooks.
As you continue building your Excel skills, remember that freeze panes is one of those features that, once learned, becomes so natural that working without it feels uncomfortable. It is a small but powerful habit that consistently saves time and reduces errors in every spreadsheet session. If you work with any spreadsheet containing more than 20 rows of data, applying a freeze to your header row should be among the first steps in your workbook setup process — right alongside naming your workbook, setting up consistent column widths, and applying appropriate number formatting to your data columns.
When teaching Excel to new users, freeze panes is often one of the first intermediate features covered after basic data entry and simple formulas — and for good reason. Its impact on usability is immediate and obvious. A new user who has been frustrated by losing track of column headers after scrolling down 50 rows will instantly appreciate the feature the first time they see it demonstrated.
The visual click-through — select the cell, apply the freeze, watch the gray line appear, scroll down and see the headers stay put — is one of those satisfying Excel moments that builds enthusiasm for learning more advanced features.
For instructors and team leads who train colleagues on Excel, pairing the freeze panes demonstration with a real business spreadsheet (rather than a generic sample file) makes the lesson far more memorable. Show the freeze on an actual sales report, headcount tracker, or budget model that the learners already use in their daily work. When they see how much easier their own familiar spreadsheet becomes to navigate with freeze panes applied, the feature becomes something they will actively seek out and use rather than a textbook concept they quickly forget.
The excellence resorts and hotel industry is one sector where Excel remains heavily used for room inventory management, rate scheduling, and occupancy tracking — and freeze panes is essential in those contexts.
A rate schedule spreadsheet might have 365 date columns (one per day of the year) and 150 room type rows, making freeze panes on both the date header row and the room type column absolutely critical for accurate data entry. Without freeze panes, entering rates for room type 100 on day 300 of the year would require constant scrolling back and forth to verify you are in the right row and column.
Similarly, educational institutions — including those following standards from organizations like an institute of creative excellence — use Excel extensively for student grade tracking, attendance records, and curriculum planning. A grade book with 35 students in rows and 50 assignments in columns benefits enormously from having the student name column frozen on the left and the assignment header row frozen at the top. Teachers and administrators who adopt this simple formatting habit consistently report fewer data-entry errors and faster review cycles compared to navigating the same data in an unfrozen sheet.
For users exploring other Excel navigation features alongside freeze panes, it is worth knowing about the Name Box (the cell reference display at the top-left of the Excel window) and the Go To feature (Ctrl+G or F5). These navigation tools complement freeze panes by letting you jump directly to specific cells or named ranges without manually scrolling. In very large spreadsheets, the combination of freeze panes for persistent header visibility and Go To for rapid long-range navigation creates an exceptionally efficient browsing experience that makes even million-row datasets manageable.
Freeze panes also interacts cleanly with Excel's conditional formatting feature. If you have applied color-coded conditional formatting to your data rows — for example, highlighting overdue items in red or above-target values in green — those colors remain visible and continue updating dynamically regardless of the freeze configuration. The freeze does not interfere with any cell formatting, including conditional rules, font styles, borders, or fill colors. You can safely apply, modify, or remove freeze panes on a sheet with complex conditional formatting without any risk of disrupting the formatting rules.
Finally, it is useful to understand how freeze panes behaves when you insert or delete rows and columns. If you have frozen row 1 and you insert a new row above row 1, the freeze line moves down with the shift — the new row becomes part of the frozen region. If you delete a frozen row, the freeze adjusts accordingly.
Excel manages these adjustments automatically, though it is always good practice to verify the freeze line position after significant structural changes to a sheet. A quick scroll test after inserting or deleting rows near the frozen area takes only a few seconds and confirms that your navigation setup is still correctly configured.
Excel Questions and Answers
About the Author
Business Consultant & Professional Certification Advisor
Wharton School, University of PennsylvaniaKatherine Lee earned her MBA from the Wharton School at the University of Pennsylvania and holds CPA, PHR, and PMP certifications. With a background spanning corporate finance, human resources, and project management, she has coached professionals preparing for CPA, CMA, PHR/SPHR, PMP, and financial services licensing exams.




