In Excel for Microsoft 365 on Windows, select the cell below the rows and to the right of the columns you want to keep visible, then press Alt, W, F, F one key at a time to open Freeze Panes. This keeps selected heading rows or columns on screen while you scroll. Before using the shortcut, decide exactly which rows and columns should stay visible: Excel freezes everything above and to the left of the selected cell.
What You’ll Need
- An Excel workbook open in the desktop version of Microsoft Excel for Microsoft 365 on Windows.
- A worksheet with the rows or columns you want to keep visible, such as a header row or an ID column.
- The cell position that marks the boundary of the area to freeze. For example, choose B2 to keep row 1 and column A visible.
You do not need to select or highlight the entire heading area. One cell is enough. Freezing panes changes how the worksheet displays while you scroll; it does not protect cells from editing or change the contents of the workbook.
Step-by-Step
- Open the worksheet and check its layout. Identify the row or rows containing headings and any left-hand columns, such as names or product codes, that you want to remain visible. If the sheet is filtered or scrolled away from the top-left corner, return to the relevant position first so the layout is easier to assess. You can use the vertical and horizontal scroll bars to get back to the top and left.
- Choose the cell immediately below and to the right of the area to freeze. Excel freezes all rows above the selected cell and all columns to its left. To freeze only the first row, select A2. To freeze only column A, select B1. To freeze both the first row and column A, select B2. To keep the first two rows and the first three columns visible, select D3. The cell you choose is not itself frozen as a special cell; it marks the dividing line.
- Use the Windows keyboard sequence. Click the chosen cell, then press and release Alt, press W, press F, and press F again. In other words, the common sequence is Alt+W, F, F, with the keys tapped in order rather than held down together. This opens View tab key tips, the Freeze Panes menu, and the Freeze Panes command. Excel should draw a line at the boundary of the frozen area.
- Check that the right rows and columns stay put. Scroll down to see whether the intended heading rows remain at the top. If you froze a left-hand column too, scroll horizontally to check that it remains on screen. If the wrong boundary is visible, use the correction steps in Troubleshooting rather than repeatedly pressing the shortcut without checking the selection.
- Use the menu if the key sequence does not match your Excel setup. Go to View > Freeze Panes > Freeze Panes. This is the same command as the keyboard sequence. Ribbon key tips can differ with language, version, or customized settings. Press Alt to display the key tips on your own ribbon and follow the letters shown if they do not match the sequence above.
- Use a one-click option for a simple layout. If you want only the top row, go to View > Freeze Panes > Freeze Top Row. If you want only the first column, choose View > Freeze Panes > Freeze First Column. These options do not require you to select a boundary cell, but they are intended for the first row or first column, not a different row or column.
- Unfreeze panes when you want to change the layout. In the desktop Windows ribbon, choose View > Freeze Panes > Unfreeze Panes. Once the existing freeze is removed, select the new boundary cell and apply Freeze Panes again. Excel permits one frozen-pane arrangement at a time; you cannot add a separate freeze later without first clearing the current one.
- Save the workbook. Freeze settings are part of the worksheet view and are normally retained when you save the workbook. Save after setting the panes, especially if other people will open the file and need the same headings visible. If you are working in a shared or cloud workbook, confirm the saved state before closing it.
Example: Suppose row 1 contains field names, column A contains employee names, and the records begin in B2. Selecting B2 and applying Freeze Panes keeps both the field names and employee names visible while you scroll through the records. If you instead select A2, only the top row is frozen. If you select B1, only the first column is frozen.
Common Mistakes
- Selecting the row or column you want frozen. Freeze Panes uses the selected cell as a boundary. Selecting A1 freezes no rows above or columns to the left, so it will not keep the first row visible. Select A2 for the first row, B1 for the first column, or B2 for both.
- Assuming the shortcut is a simultaneous key combination. This is a ribbon key-tip sequence. Press Alt, release it, and then tap the letters in order. Holding all four keys down together will not invoke the command.
- Choosing Freeze Top Row when the header is lower down. Freeze Top Row always targets worksheet row 1. If your headings are in row 4, selecting A5 and using Freeze Panes is the way to keep rows 1 through 4 visible. Be aware that this also freezes any title or blank rows above the headings.
- Expecting freeze panes to lock data. Frozen rows and columns remain visible during scrolling; they are not protected from typing, deletion, or editing. Use Excel’s sheet protection features if your goal is to restrict changes, and treat that as a separate setting.
- Trying to freeze separate sections independently. Excel does not let you create multiple unrelated frozen regions on the same sheet. One boundary cell defines the rows above and columns to the left that stay visible together.
Tips
- Plan the freeze boundary before applying it. A quick sketch can help on wide reports: note how many top rows and left columns must remain visible, then select the cell one row below and one column to the right of that area.
- Keep the frozen area compact. Freezing many rows or columns leaves less room to view the scrolling data, especially on a laptop display. Freeze only the headings and identifiers needed to understand each record.
- Use the correct command for the task. Freeze Top Row is convenient for a single header at row 1. Freeze First Column suits a sheet where column A has labels. Use the selected-cell Freeze Panes command when you need several rows or columns, or when the relevant boundary is not at the top or left.
- Use the same boundary logic in both directions. To freeze two top rows and columns A through C, select D3. To freeze rows 1 through 5 and no columns, select A6. The chosen cell should always sit immediately outside the bottom-right corner of the area that must stay visible.
- Remember that each worksheet has its own view. If a workbook has several tabs, set and check the freeze arrangement on each sheet where it is useful. Applying it on one worksheet does not automatically freeze panes on every worksheet.
Troubleshooting
The shortcut opens a different command or does nothing: Make sure you are using the desktop Windows version and tap the keys one at a time. Key tips can change with the Excel language, ribbon layout, or version. Press Alt and read the letters displayed on screen, or use View > Freeze Panes directly. If a cell is being edited, press Esc or Enter to leave edit mode, select the boundary cell again, and retry.
The wrong rows or columns are frozen: Choose View > Freeze Panes > Unfreeze Panes first. Then select the correct boundary cell and use Freeze Panes. For instance, if row 1 and columns A and B should remain visible, select C2; if rows 1 through 3 and column A should remain visible, select B4. Check both directions by scrolling.
Freeze Panes appears unavailable: Check that you are on a worksheet rather than another workbook view, and finish any active cell edit. If the workbook is in a restricted or unusual state, try saving a working copy and reopening it in the desktop Excel app. In Excel for the web, open the View tab and use its Freeze Panes control; if the command or shortcut behaves differently in the browser, use the visible menu rather than relying on Windows desktop key tips.
The frozen line is hard to spot: Look for a thin boundary line across the worksheet, then scroll a small amount. A freeze does not create a separate window or duplicate the heading; it simply keeps the specified rows or columns in place while the rest moves. If necessary, unfreeze and reapply it with a smaller area to make the effect easier to verify.
You are using Excel for Mac: The Windows Alt key-tip sequence does not apply to Mac. Use View > Freeze Panes from the Mac ribbon or menu, then choose the appropriate freeze option. Menu wording and access keys may vary by Mac version, so follow the commands shown in your copy of Excel rather than substituting the Windows sequence.
Frequently Asked Questions
What is the shortcut to freeze panes in Excel for Windows?
In Microsoft 365 desktop Excel, the common key-tip sequence is Alt, W, F, F, pressed one after another. Because key tips can vary, use View > Freeze Panes > Freeze Panes if the sequence does not match your ribbon.
What cell do I select to freeze the top row and first column?
Select B2, then apply Freeze Panes. This places the boundary below row 1 and to the right of column A, so both stay visible as you scroll.
Can I freeze more than one row or column?
Yes. Select the cell immediately below and to the right of the rows and columns you want to retain. For example, D3 freezes the first two rows and first three columns. You can combine frozen rows and columns in the same arrangement.
How do I freeze a row other than row 1?
Select the cell directly beneath the last row you want to keep visible, then use Freeze Panes. For example, to keep rows 1 through 4 on screen, select a cell in row 5. The Freeze Top Row option alone only freezes row 1.
Can I use a keyboard shortcut to unfreeze panes?
The ribbon key-tip route can vary depending on the current menu and Excel setup. The dependable method is View > Freeze Panes > Unfreeze Panes. After unfreezing, select a new boundary cell and apply the desired arrangement.
Does freezing panes work in Excel for the web and on Mac?
Both versions have Freeze Panes commands, but their menus and keyboard access differ from Windows desktop Excel. In the web app or on Mac, use the View tab or menu and choose the freeze option shown there; do not assume the Windows Alt sequence applies.
Related
- How to Find the Center of a Page in Excel for Printing
- How to Find the Average Percentage in Excel Correctly
- Find and Unmerge Merged Cells in Excel: Step-by-Step
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Google Sheets Print Area: Set and Print a Cell RangeGoogle Sheets does not have a permanent, Excel-style “Set Print Area” command. To print just part of a…
- How to Split Merged Cells in Google Sheets SafelyTo split merged cells in Google Sheets, select a merged cell, then choose Format > Merge cells >…
- Count Months Between Dates in Excel: Full and Partial MonthsTo count completed months between two dates in Excel, enter the start date in A2 and the end…
- Excel Dependent Drop-Down Lists with Dynamic RangesYes. In Excel for Microsoft 365, make the source data an Excel Table, use a FILTER formula to…
- Excel Slicer Font Size: What You Can and Can’t ChangeIn Excel for Microsoft 365 on Windows, a slicer has no ordinary Font Size box on the ribbon.…
- How to Calculate a Percentage of a Number in ExcelTo get a percentage of a number in Excel, multiply the number by the percentage: enter the number…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.