Freezing the first column and first row in a spreadsheet keeps your headers visible as you scroll through large tables, so you never lose track of what each row or column represents. This works in Microsoft Excel, Google Sheets, and LibreOffice Calc, and the process takes only a few clicks. You do not need any special software or add-ins, just a spreadsheet with data and a clear idea of which row and column contain your labels.
What You'll Need
- A spreadsheet application: Microsoft Excel (Windows or Mac), Google Sheets, or LibreOffice Calc.
- A worksheet with at least one row and one column of headers or labels.
- Basic familiarity with selecting cells and using the ribbon or menu bar.
Step-by-Step
- Open your spreadsheet and locate the worksheet where you want to freeze panes. Make sure the first row and first column contain the headers you want to keep visible.
- Select the cell just below and to the right of the area you want frozen. To freeze both the first row and first column, click cell B2. This is the cell at the intersection of column B and row 2. Everything above and to the left of B2 (row 1 and column A) will stay fixed.
- In Excel, go to the View tab on the ribbon. In the Window group, click the Freeze Panes button. A drop-down menu appears.
- Choose Freeze Panes from the menu. The first row and first column are now locked in place. You can verify by scrolling down or to the right; the headers remain visible.
- In Google Sheets, click View in the top menu, then hover over Freeze. Select the option that freezes both rows and columns up to the current cell. Google Sheets uses the selected cell as the boundary; selecting B2 and choosing Freeze up to current row and column will freeze row 1 and column A.
- In LibreOffice Calc, click the cell B2, then go to View > Freeze Rows and Columns. The first row and first column will be frozen.
- Test the freeze by scrolling down and to the right. The headers should stay in view. If they do not, repeat the steps and ensure you selected the correct cell before freezing.
- To unfreeze, return to the same menu and choose Unfreeze Panes (Excel), Freeze > No rows/columns (Google Sheets), or View > Freeze Rows and Columns again (LibreOffice).
Common Mistakes
- Selecting the wrong cell. Freezing panes uses the cell you select as the dividing line. If you select A1, nothing freezes. If you select C3, both rows 1–2 and columns A–B freeze. For just the first row and first column, always select B2.
- Freezing after scrolling. The freeze position is based on the selected cell, not the current scroll position. Scroll back to the top-left before selecting B2 to avoid confusion.
- Confusing freeze with split. Excel's Split feature divides the window into independent panes but does not lock rows or columns. Use Freeze Panes for a persistent header.
- Forgetting that frozen panes affect printing. Frozen rows and columns do not automatically repeat on printed pages. To repeat headers when printing, use Print Titles in Excel's Page Layout tab.
- Assuming freeze works across sheets. Freezing is applied per worksheet. You must set it separately for each sheet where you want frozen headers.
Tips
- If you only need to freeze the top row, select cell A2 and choose Freeze Panes. To freeze only the first column, select B1.
- In Excel, the Freeze Panes button offers quick options: Freeze Top Row and Freeze First Column. These are shortcuts that select the appropriate cell for you.
- Frozen panes are saved with the file, so they persist when you reopen the spreadsheet.
- Use a bold font or background color for your header row and column to make them stand out even when frozen.
- If your data extends far to the right, consider freezing more than one column (e.g., select C2 to freeze columns A and B).
Troubleshooting
- Freeze option is greyed out: This can happen if the sheet is protected or if you are in cell edit mode. Press Esc to exit edit mode, and unprotect the sheet via Review > Unprotect Sheet if necessary.
- Headers still scroll away: You may have selected the wrong cell. Unfreeze, then select B2 and freeze again. Also check that you are not in Page Layout view; freeze panes work in Normal view.
- Only one row or column freezes: Ensure you selected B2, not A2 or B1. Selecting A2 freezes only the top row; B1 freezes only the first column.
- Freeze lines appear in the wrong place: The dark lines indicate the frozen boundary. If they are not between row 1 and row 2, and between column A and column B, unfreeze and reselect B2.
- Google Sheets freeze not working: Make sure you are not in a filtered view or using a protected range. Also, the Freeze option freezes up to the selected cell; selecting B2 and choosing Freeze up to current row and column should work.
Frequently Asked Questions
Can I freeze both the first row and first column at the same time?
Yes. Select cell B2, then use the Freeze Panes command. This freezes row 1 and column A simultaneously.
Does freezing panes affect the data itself?
No. Freezing only changes the view; it does not alter, lock, or protect any cell contents.
Will frozen panes be saved when I close the file?
Yes, in Excel, Google Sheets, and LibreOffice, the freeze setting is saved with the spreadsheet and will be active when you reopen it.
How do I unfreeze panes?
In Excel, go to View > Freeze Panes > Unfreeze Panes. In Google Sheets, go to View > Freeze > No rows/columns. In LibreOffice, go to View > Freeze Rows and Columns to toggle off.
Can I freeze more than one row and one column?
Yes. Select the cell below and to the right of the area you want frozen. For example, to freeze the first two rows and first two columns, select C3.
Why is the Freeze Panes option not available?
It may be greyed out if the worksheet is protected or if you are editing a cell. Exit edit mode and unprotect the sheet if needed.