What a header row does and why you need one
A header row is the first row of your spreadsheet, and it labels what each column contains. When you freeze a header row in Excel, that row stays visible at the top of your screen even when you scroll down through hundreds of rows of data. Without a header, you lose track of what each column means the moment you scroll past the first few entries.
Excel does not automatically treat any row as a header — you have to tell it which row to freeze. Once you do, that row locks in place while the rest of your data moves underneath it. This works whether your header is in row 1 (the most common place) or in a row further down.
Key Takeaways
- Click on the row number directly below the row you want to freeze, then go to the View tab and select Freeze Panes to lock your header in place.
- If your header is in row 1, click on row 2 first — Excel freezes everything above the row you select.
- You can unfreeze at any time by going back to View and choosing Unfreeze Panes.
- Freezing a header row does not change your data or move anything around — it only changes what you see on screen when you scroll.
Freezing a header in row 1 (the standard setup)
Most spreadsheets put the header in row 1. To freeze it, click on the row number 2 on the left side of your screen — the entire row will highlight in blue. Then go to the View tab at the top of Excel and look for the Freeze Panes button. Click it, and a thin line will appear below row 1.
Now when you scroll down, row 1 stays at the top. Scroll back up and row 1 is still there. The header never leaves your sight, no matter how far down your data goes.
Freezing a header in a different row
If your header is not in row 1 — for example, if you have a title in row 1 and the actual column labels in row 2 — click on the row number of the row directly below your header. If your header is in row 2, click on row 3. Excel freezes everything above the row you select.
The same rule applies if you want to freeze both rows and columns at once. Click on the cell at the intersection of the row below your header and the column to the right of the columns you want to freeze. Then click Freeze Panes. Everything above and to the left of that cell will stay locked in place.
Unfreezing when you no longer need it
Go back to the View tab and click Freeze Panes again. The option will now say Unfreeze Panes. Click it, and the thin line disappears. Your header row is no longer locked, and scrolling works normally again.
Unfreezing does not delete your header or change any data — it just removes the lock. You can freeze and unfreeze as many times as you want without affecting what is in your cells.
What happens when you freeze a header
Freezing only changes what you see on your screen. Your actual data does not move, and the row numbers do not change. If you save the file, the freeze setting saves with it — the next time you open that file, the header will still be frozen.
If you copy and paste data from a frozen spreadsheet into a new one, the freeze does not copy over. Only the data itself moves. The new spreadsheet will have no frozen rows unless you freeze them separately.
Common mistakes and how to avoid them
The most common mistake is clicking on the header row itself instead of the row below it. If you click on row 1 and then freeze, nothing happens — Excel needs you to select the row below the one you want to lock. Remember: select the row below, then freeze.
Another mistake is thinking that freezing a header will sort your data or organize it in some way. It does not. Freezing only locks the view. If your data is messy or out of order, freezing will not fix that — you would need to sort or filter separately.
Freezing both a header row and a header column
Some spreadsheets have labels running down the left side (like a list of names in column A) and labels across the top (like months in row 1). You can freeze both at once by clicking on the cell where they meet — if your row header is in row 1 and your column header is in column A, click on cell B2.
Then go to View and click Freeze Panes. Now row 1 stays at the top and column A stays on the left, while the rest of your data scrolls freely underneath and to the right. This is useful for large tables where you need to see both the row and column labels no matter where you are in the data.
Frequently Asked Questions
Does freezing a header row change my data?
No. Freezing only changes what you see on screen. Your data stays exactly where it is, and the row numbers do not change. If you unfreeze later, everything looks the same as before.
Can I freeze more than one row?
Yes. If you want to freeze rows 1 and 2, click on row 3 and then freeze. Everything above row 3 will lock in place. You can freeze as many rows as you need — just click on the row below the last one you want to lock.
What if I freeze the wrong row by mistake?
Unfreeze by going to View and clicking Unfreeze Panes. Then click on the correct row and freeze again. There is no penalty for unfreezing and refreezing — you can do it as many times as you need.
Will the freeze setting stay if I save and close the file?
Yes. When you save an Excel file with a frozen header, that freeze setting saves with it. The next time you open the file, the header will still be frozen in the same place.
Can I freeze a header in Excel Online?
Yes. In Excel Online, go to the Home tab, look for Freeze Panes in the dropdown menu, and select it the same way. The process is nearly identical to desktop Excel.