Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Freeze Multiple Rows and Columns in Excel

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To freeze multiple rows and columns in Excel at the same time, place your cursor in the cell just below the last row and just to the right of the last column you want locked, then choose View > Freeze Panes > Freeze Panes. Excel freezes everything above and to the left of the active cell, so a single click can lock several rows and several columns simultaneously. For example, if you want rows 1–3 and columns A–B always visible, select cell C4 and freeze. This works the same in Excel for Microsoft 365, Excel 2021, 2019, 2016, and on Mac, though menu labels can differ slightly by version, device, and region.

What You'll Need

  • A spreadsheet open in Excel (desktop app recommended; the web version has the same View > Freeze Panes command but fewer layout options).
  • Your header rows and label columns already in place, because freezing locks whatever is above and left of your selected cell.
  • No merged cells in the header area you plan to freeze — merged cells can cause the freeze to behave unexpectedly or throw an error.

Step-by-Step

  1. Open your workbook and click the sheet tab you want to work on. Freezing applies per sheet, not to the whole workbook.
  2. Decide exactly what should stay visible. Rows above your selection freeze; columns to the left of your selection freeze. Write this down if it helps: target rows 1–3 and columns A–B means you will select C4.
  3. Click the single cell that sits one row below your last frozen row and one column to the right of your last frozen column. Do not drag to select a range — Excel uses the active cell's position, not a highlighted block, to decide what to freeze.
  4. Go to the View tab on the ribbon.
  5. Click Freeze Panes. In the dropdown, choose Freeze Panes (the first option). The other two options, Freeze Top Row and Freeze First Column, only lock a single row or column and are not what you want here.
  6. Scroll down and to the right to confirm. A thin grey line should appear below your frozen rows and to the right of your frozen columns, and the locked headers should stay put while the rest of the sheet moves.
  7. To change the freeze later, click View > Freeze Panes > Unfreeze Panes, move your cursor to the new cell, and freeze again. You cannot adjust the boundary by dragging the grey line — you must unfreeze and re-freeze.
  8. Save the workbook with Ctrl+S (Cmd+S on Mac). The freeze setting is saved with the file and will be there when you reopen it.

Common Mistakes

  • Selecting a range instead of a single cell. If you highlight C4:E10 and then freeze, Excel still freezes based on the top-left cell of the selection, which may not be what you intended. Always click one cell.
  • Choosing Freeze Top Row when you need multiple rows. That option locks only row 1. For three header rows, use the main Freeze Panes command with the cursor below row 3.
  • Freezing in the wrong sheet. Each worksheet has its own freeze setting. If your headers are on Sheet1 but you froze Sheet2, nothing appears to happen on the sheet you are viewing.
  • Merged header cells. Merged cells spanning the freeze boundary can produce an error or an odd split. Unmerge them, freeze, then remerge if necessary — though keeping headers unmerged is safer for sorting and filtering.
  • Expecting frozen panes to print. Freezing affects on-screen scrolling only. To repeat headers on every printed page, use Page Layout > Print Titles and set the rows to repeat.
  • Confusing freeze with split. View > Split divides the window into independently scrolling panes; it is not the same as freezing and does not lock rows in place.

Tips

  • Freeze before you start entering lots of data. It is easier to position the cursor correctly on a small, clean sheet.
  • If your header row is row 1 and you only need columns frozen, select the cell in row 2 just right of your last label column — for example B2 to freeze column A only.
  • Use Freeze Panes together with an Excel Table (Insert > Table) if you want filter buttons and structured references; the table's own header row stays visible when you scroll inside it, but freezing still helps when the table sits below other content.
  • On a laptop with a small screen, freeze fewer columns. Locking too many leaves little room to scroll, and the frozen area can dominate the window.
  • If you share the workbook, note that freeze settings are view settings saved in the file; a collaborator opening it will see the same frozen panes unless they change them.

Troubleshooting

If Freeze Panes is greyed out, you are likely in cell edit mode or the sheet is protected. Press Enter or Esc to leave edit mode; if the sheet is protected, go to Review > Unprotect Sheet (you will need the password). Freezing is also unavailable in some protected views.

If the wrong rows freeze, you selected the wrong cell. Unfreeze, click the correct cell one row below and one column right of your intended boundary, and freeze again. Remember the rule: everything above and left of the active cell locks.

If a grey line appears but the headers still scroll, check whether you are in Page Layout view. Switch to Normal view via View > Normal; frozen panes behave as expected there.

If the freeze seems to vanish after reopening, confirm you saved the file in a format that keeps view settings, such as .xlsx. Very old or unusual formats may not preserve pane settings.

Frequently Asked Questions

Can I freeze rows and columns at the same time?

Yes. Select the cell below your last frozen row and to the right of your last frozen column, then use View > Freeze Panes > Freeze Panes. Both directions lock at once.

How do I freeze more than one row but no columns?

Click a cell in column A, one row below the last row you want frozen. For rows 1–4, click A5 and freeze. Only rows above the selection lock.

Why is Freeze Panes greyed out?

Usually because you are editing a cell or the worksheet is protected. Press Esc to exit edit mode, or unprotect the sheet from the Review tab.

Does freezing affect printing?

No. Frozen panes only change what stays visible while scrolling on screen. For printed headers, use Page Layout > Print Titles.

Can I freeze different rows on different sheets?

Yes. Freeze settings are stored per worksheet, so each sheet can have its own frozen rows and columns.

How do I remove a freeze?

Go to View > Freeze Panes > Unfreeze Panes. The grey boundary lines disappear and the sheet scrolls normally again.