
How to Pin a Row in Excel: Step-by-Step Guide
If you’ve ever scrolled through a massive Excel spreadsheet and lost track of your column headers, you know the frustration. One moment you’re reading data in row 50, the next you’ve forgotten what each column actually represents. That’s where pinning rows comes in—a surprisingly simple feature that can transform your spreadsheet experience from chaotic to organized.
Pinning a row in Excel (often called freezing panes) keeps your header row visible no matter how far down you scroll. It’s one of those features that seems hidden until you need it, then suddenly becomes indispensable. Whether you’re managing financial data, inventory lists, or project timelines, this guide will walk you through every method to pin rows like a spreadsheet pro.
The beauty of this feature is that it works across all modern versions of Excel—desktop, web, and even mobile. Once you master it, you’ll wonder how you ever worked without it.
What Does Pinning a Row Mean?
Before diving into the how, let’s clarify the what. Pinning a row (technically called “freezing panes”) locks the top portion of your spreadsheet in place while allowing the rest to scroll freely. Imagine you’re reading a book where the chapter title stays visible even as you turn pages—that’s essentially what pinning does for Excel.
When you pin a row, you’re telling Excel: “Keep this row visible at all times, regardless of where I scroll vertically.” This is particularly useful for spreadsheets with extensive data where headers provide crucial context. You can also combine this with pinning columns for a truly locked-in experience.
The key distinction is that pinning doesn’t lock cells from editing—it’s purely a visual organization tool. If you need to prevent accidental changes, you’ll want to explore how to lock cells in Excel instead, which provides actual protection against modifications.

Pin a Row on Windows Excel (Desktop)
The Windows desktop version of Excel makes pinning remarkably straightforward. Follow these exact steps:
- Open your spreadsheet in Excel and locate the row you want to pin (usually row 1 with headers)
- Click on the row number below the row you want to pin. If you’re pinning row 1, click on the row 2 number on the left side
- Navigate to the View tab in the ribbon menu at the top
- Look for the “Freeze Panes” button in the Window section
- Click the dropdown arrow next to Freeze Panes
- Select “Freeze Panes” from the dropdown menu
That’s it. You’ll notice a slightly thicker line appearing below your pinned row—that’s Excel’s way of showing the freeze boundary. Now scroll down, and your header row stays put while the data moves beneath it.
Pro tip: If you want to pin both rows and columns simultaneously, click the cell that’s one row below and one column to the right of where you want the freeze to occur, then follow the same steps. This creates a locked corner that stays visible from all directions.
For those who prefer keyboard shortcuts, you can use Alt + W + F + F on Windows after selecting your freeze point. It’s faster once you memorize it, though admittedly less intuitive than the menu method.
Pin a Row on Mac Excel
Mac users get essentially the same functionality, though the interface differs slightly:
- Open Excel and your spreadsheet
- Click on the row below the one you want to pin (if pinning row 1, click row 2)
- Go to the View menu at the top of your screen
- Select “Freeze Panes” directly from the dropdown
- Confirm your selection
Mac Excel’s ribbon is organized similarly to Windows, but some users find it slightly more compact. The freeze line appears identically—that bold horizontal line marking your boundary.
Mac keyboard shortcut users can press Command + Option + W followed by F, though many Mac users find the menu approach more intuitive. Either way works perfectly.
Pin Rows in Excel Online
Working in Excel Online (through Microsoft 365)? The process is nearly identical:
- Open your spreadsheet in your web browser
- Click on the row number below your target row
- Find the View tab in the ribbon
- Click “Freeze Panes”
- Select your freeze option from the submenu
Excel Online’s interface mirrors the desktop version, so if you’re comfortable there, you’ll navigate this seamlessly. One advantage of the online version is that your freeze settings sync across all devices when you access the same file.

Pin Multiple Rows at Once
What if you need to pin more than just your header row? Maybe you have a secondary header row or category labels in rows 1 and 2. Excel handles this elegantly:
- Click on the row number of the first row you want to remain visible
- Hold Shift and click the last row you want to pin
- Navigate to View → Freeze Panes
- Click “Freeze Panes” to lock all selected rows
This approach pins all rows up to your selection point. It’s particularly useful for complex spreadsheets with multi-level headers or important summary information that needs constant visibility.
Another scenario: you might want to pin rows and columns simultaneously. In this case, click the cell that sits one row below and one column to the right of your desired freeze boundary, then follow the standard Freeze Panes process. This creates a locked rectangle that stays visible when scrolling in any direction.
Unpin Rows When You’re Done
Sometimes you need to remove the freeze—maybe you’re sharing the file with someone who prefers a different layout, or you’ve finished working with that particular data set. Unfreezing is just as simple:
- Go to the View tab
- Click the “Freeze Panes” dropdown
- Select “Unfreeze Panes”
That’s all it takes. Your spreadsheet returns to normal scrolling behavior, and that visual freeze line disappears. You can reapply freezing anytime without any penalty.
One thing to note: if you’ve frozen a row in Excel and then save and close the file, Excel remembers your freeze settings. When you reopen the file, those same rows remain pinned. This is actually convenient—you don’t need to re-freeze each session.
Advanced Freezing Techniques
Once you’ve mastered basic row pinning, consider these advanced applications:
The Split Panes Alternative
Excel also offers “Split Panes,” which is slightly different from Freeze Panes. With Split Panes, you can divide your spreadsheet into independent scrolling sections. While less commonly used than freezing, it’s valuable when you want to compare data from different parts of the same sheet simultaneously. You’ll find this option next to Freeze Panes in the View menu.
Combining with Drop-Down Lists
If you’re working with filtered data or creating interactive spreadsheets, consider combining frozen rows with drop-down lists. This creates a professional, user-friendly interface where headers stay visible while users select from predefined options. You can also create a drop-down list in Excel within your frozen header row for enhanced functionality.
Protecting Your Setup
If you want to ensure that your carefully arranged frozen panes don’t get accidentally unfrozen by collaborators, combine freezing with sheet protection. While this doesn’t directly prevent unfreezing, it can be part of a comprehensive locking strategy alongside locking cells in Excel.
Mobile Considerations
Excel’s mobile apps (iOS and Android) also support frozen rows. Your freeze settings transfer to mobile, making spreadsheet work seamless whether you’re at a desktop or checking data on your phone. The mobile interface simplifies this to a single tap on your frozen row and a “Freeze” option.
For more detailed information about advanced freezing techniques, check out Microsoft’s official Excel freezing guide, which covers edge cases and troubleshooting.
Frequently Asked Questions
Can I pin a row in the middle of my spreadsheet?
Not exactly—Excel’s freeze feature works from the top down. You can only freeze rows starting from row 1. However, you can achieve a similar effect by using formatting and layout techniques to move important information to the top, or by using Excel’s AutoFilter feature to keep relevant data visible.
What’s the difference between pinning and hiding rows?
Pinning (freezing) keeps rows visible while scrolling. Hiding rows removes them from view entirely until you unhide them. Pinning is reversible and doesn’t affect data; hiding actually conceals data from immediate view. They serve different purposes—use pinning for context, hiding for decluttering.
Does freezing rows affect printing?
By default, frozen panes don’t print as frozen. If you want your header rows to repeat on every printed page, you’ll need to use the “Print Titles” feature under Page Layout instead of (or in addition to) freezing panes. This ensures professional-looking printed documents with headers on every page.
Can I freeze both rows and columns simultaneously?
Absolutely. Click the cell that’s positioned one row below and one column to the right of where you want your freeze boundary. Then apply Freeze Panes. This creates a locked rectangle that stays visible when scrolling both vertically and horizontally.
Why can’t I find the Freeze Panes option?
Make sure you’re on the View tab in the ribbon. If you still don’t see it, your Excel version might be outdated—update to the latest version. Also, ensure you’ve selected a cell or row first; the option may be grayed out if nothing is selected.
Will my freeze settings save if I share the file?
Yes. When you save an Excel file with frozen panes, those settings are preserved. Anyone opening the file will see the same frozen rows you configured. This makes it excellent for creating templates or shared workbooks where you want consistent formatting.
