To freeze columns and rows at the same time in a spreadsheet, you freeze a single cell that sits below the rows you want locked and to the right of the columns you want locked. Everything above and to the left of that cell stays visible as you scroll. In Excel, select that cell and choose View > Freeze Panes > Freeze Panes. In Google Sheets, select the cell and choose View > Freeze > Up to current cell. The same principle applies in most spreadsheet apps: the freeze point is a cell, not a separate row and column command.
What You'll Need
- A spreadsheet open in Excel, Google Sheets, LibreOffice Calc, or a similar app.
- At least one row above and one column to the left of the cell you plan to freeze (otherwise there is nothing to lock).
- Permission to edit the file if it is shared (freezing changes the view for you; in shared files it may affect how the sheet is saved).
Step-by-Step
- Decide what should stay visible. Identify the header rows (for example, row 1 with column labels) and the identifier columns (for example, column A with names) that you want on screen at all times. Write down the last row and last column of that block. If you want rows 1–2 and columns A–B locked, your freeze point is the cell just past them.
- Click the freeze cell. Select the single cell that is one row below your last header row and one column to the right of your last identifier column. For rows 1–2 and columns A–B, click cell C3. This cell is the anchor; the app freezes everything above and left of it.
- Open the Freeze command. In Excel, go to the View tab and click Freeze Panes, then choose Freeze Panes from the menu. In Google Sheets, go to View > Freeze > Up to current cell. In LibreOffice Calc, go to View > Freeze Rows and Columns. The exact wording varies, but the effect is the same.
- Verify the freeze. Scroll down and to the right. The header rows should remain at the top and the identifier columns should remain at the left. A thin dark line usually marks the frozen boundary. If only rows or only columns are locked, you selected a cell in the wrong position or used a single-axis command.
- Adjust if needed. To change the freeze area, unfreeze first (View > Freeze Panes > Unfreeze Panes in Excel; View > Freeze > No rows or No columns in Google Sheets), then select the new cell and repeat. You cannot drag the freeze line to a new position in most apps; you must unfreeze and reapply.
- Save the file. Freezing is a view setting stored with the sheet. Save so it persists when you reopen the file. In shared online files, the freeze may be saved for everyone or only for your view depending on the app and sharing settings.
Common Mistakes
Selecting the header row itself. If you click row 1 and choose Freeze Panes, you freeze only the rows above row 1, which is nothing. The freeze cell must be below and to the right of the area you want locked.
Using Freeze Top Row or Freeze First Column. These commands lock only one row or one column. They cannot lock both at once. Use the general Freeze Panes command with a cell selected instead.
Freezing in the middle of the data. Placing the freeze point inside the table locks rows and columns that may not be headers, wasting screen space and hiding useful data. Always freeze just past the header block.
Expecting the freeze to follow you across sheets. Freezing applies to the active sheet only. Each sheet needs its own freeze setting if you want the same layout everywhere.
Confusing freeze with split. The Split command divides the window into independent scrollable panes but does not lock rows or columns in place the way Freeze does. Use Freeze for persistent headers.
Tips
Freeze as few rows and columns as possible. Locking too much reduces the visible working area, especially on small laptop screens. Two or three header rows and one or two identifier columns is usually enough.
If your header row is very tall, reduce row height before freezing so more data rows remain visible below it.
In Excel, you can also use the Freeze Panes dropdown to check which mode is active; the active option appears highlighted or checked. In Google Sheets, a darker line appears at the freeze boundary.
For printing, freezing does not control page breaks. Use print titles or repeat header rows in the print settings if you need headers on every printed page.
When sharing a file, mention the freeze setting in your message so collaborators are not confused by locked panes they did not create.
Troubleshooting
The option is greyed out. This often happens when the sheet is protected, when the workbook is in a mode that disables view changes, or when you are editing a cell rather than viewing the sheet. Press Esc to leave cell edit mode, unprotect the sheet if you have permission, and try again.
Only rows froze, not columns. You likely selected a cell in column A, so there were no columns to the left to freeze. Select a cell in column B or later, below the header rows, and reapply.
Only columns froze, not rows. You selected a cell in row 1, so there were no rows above to freeze. Select a cell in row 2 or lower, to the right of the identifier columns, and reapply.
The freeze line is in the wrong place. Unfreeze completely, then select the correct cell and freeze again. There is usually no way to move the line directly.
The freeze disappeared after reopening. The file may not have been saved after freezing, or the app may not store freeze settings in that file format. Save in the native format (for example, .xlsx for Excel) and check again.
Freezing looks wrong on a phone or tablet. Mobile spreadsheet apps often handle frozen panes differently or hide the feature. Check the same file on a desktop app to confirm the setting is stored correctly.
Frequently Asked Questions
Can I freeze more than one row and one column at the same time?
Yes. Select the cell just below the last row and just to the right of the last column you want locked. Everything above and left of that cell freezes, so any number of rows and columns can be locked together.
Does freezing rows and columns affect other people viewing the file?
It depends on the app and how the file is shared. In desktop files, the freeze is saved with the sheet and is visible to anyone who opens it. In some online shared files, the freeze may apply only to your view. Check the app's documentation for shared-file behaviour.
What is the difference between freezing and splitting panes?
Freezing locks rows or columns so they stay visible while you scroll. Splitting divides the window into separate panes that can scroll independently but do not stay locked to the header area. Use freezing for persistent headers.
Can I freeze rows and columns in Google Sheets the same way as Excel?
The principle is the same: select the cell below and to the right of the area you want locked, then use the Freeze menu. The menu location and wording differ, but the result is equivalent.
Why does my freeze disappear when I open the file on another device?
Some apps and file formats do not store freeze settings, or mobile versions may ignore them. Saving in the app's native format and checking on a desktop usually preserves the setting.
Can I freeze rows and columns on a protected sheet?
Usually not without the password. Protection is designed to prevent layout changes. If you have the password, unprotect the sheet, apply the freeze, and protect it again if needed.