Select the cell just to the right of the columns you want to keep visible, then go to View › Freeze Panes › Freeze Panes. To lock only column A, use View › Freeze Panes › Freeze First Column.

When you have a wide table, scrolling to the right makes the first columns (like names or IDs) disappear. Freezing columns keeps them on screen so you always know which row you are looking at.
Step by step
- Open your worksheet and decide which columns should stay visible. For example, to keep columns A and B visible, you will freeze at column C.
- Click the cell just to the right of the last column you want to freeze. In this example, click cell C1 (or any cell in column C).
- Go to the View tab on the ribbon.
- In the Window group, click Freeze Panes, then choose Freeze Panes from the drop-down.
- A thin black line appears between columns B and C, showing the frozen area. Scroll right to check that columns A and B stay put.
- To unfreeze, go back to View › Freeze Panes › Unfreeze Panes.
On a Mac: On a Mac, the same commands are under the View tab on the ribbon; there is no default keyboard shortcut.
Before and after
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | ID | Name | Jan | Feb | Mar | Apr |
| 2 | 101 | Ana | 10 | 20 | 30 | 40 |
| 3 | 102 | Ben | 15 | 25 | 35 | 45 |
| 4 | 103 | Cara | 12 | 22 | 32 | 42 |
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | ID | Name | Jan | Feb | Mar | Apr |
| 2 | 101 | Ana | 10 | 20 | 30 | 40 |
| 3 | 102 | Ben | 15 | 25 | 35 | 45 |
| 4 | 103 | Cara | 12 | 22 | 32 | 42 |
Practise it
Free exercises with instant feedback. No sign-up needed.
Common mistakes
- You select the columns themselves (by clicking the column headers) and then click Freeze Panes, but nothing freezes. Freeze Panes works on cells, not whole columns. Click a single cell to the right of the columns you want to freeze, then choose Freeze Panes.
- You freeze the wrong columns because you picked a cell inside the columns you wanted to keep visible. Remember: the freeze happens to the left of the selected cell. To keep columns A and B visible, select a cell in column C.
- You cannot see the frozen line or the columns still scroll away. Check that you are in Normal view (View › Normal) and that the workbook is not protected. Also, frozen panes are per worksheet, so make sure you are on the right sheet.
Questions people also ask
How do I freeze both rows and columns at the same time?
Click the cell below the rows and to the right of the columns you want to freeze, then choose View › Freeze Panes › Freeze Panes. For example, to freeze row 1 and column A, click cell B2.
Can I freeze more than one column?
Yes. Select the cell just to the right of the last column you want to freeze. For example, to freeze columns A, B and C, click cell D1 and then Freeze Panes.
Why is Freeze Panes greyed out?
Freeze Panes is unavailable when the worksheet is protected or when you are in Page Layout view. Switch to Normal view and unprotect the sheet if needed.
Steps written for Excel for Microsoft 365 on Windows. All how-to guides