Locking a column in Excel means one of two different things, and the method depends entirely on which you want. To keep a column visible while you scroll sideways, select the column to its right and click View > Freeze Panes > Freeze Panes. To stop people editing a column, select Format Cells > Protection, tick Locked, then click Review > Protect Sheet.
Two Different Meanings of "Lock" and How to Tell Which You Need
The word "lock" covers a freezing action and a protection action inside Excel, and the two live in different tabs. Freeze Panes sits under the View tab and controls visibility only. Sheet protection sits under the Review tab and controls editing only. Neither one does the other's job.
Ask yourself one question before touching anything. If your complaint is "I lose column A when I scroll right," you want freeze panes. If your complaint is "someone overwrote my price column," you want cell locking plus sheet protection. Mixing them up wastes time, because protecting a sheet does nothing for scrolling and freezing panes does nothing for edits.
A third, unrelated use of the word appears in the status bar. If pressing an arrow key moves the whole sheet instead of the cell cursor, Excel is in Scroll Lock mode. That is a keyboard state, not a setting, and it gets fixed with the ScrLk key rather than any ribbon button. More on that trap further down.
Excel has shipped this same split for many versions. The commands exist in Excel 2016, Excel 2019, Excel 2021, Excel for Microsoft 365, and Excel for the web, though the web version runs a reduced protection model. The steps below assume the desktop app on Windows; Mac paths differ slightly and are covered where they diverge.
Freeze a Column So It Stays Visible While You Scroll
Freezing is the fastest of the two jobs, and the column you select is not the column Excel freezes. Excel always freezes everything above and to the left of the active cell. Selecting column B and choosing Freeze Panes locks column A and nothing else, which is exactly what most people want when column A holds names or IDs.
| Goal | Select this first | Columns frozen | Rows frozen |
|---|---|---|---|
| Column A only | Cell B1 or the whole of column B | A | None |
| Columns A and B | Cell C1 | A, B | None |
| Column A plus top row | Cell B2 | A | Row 1 |
| Column A plus rows 1–3 | Cell B4 | A | Rows 1–3 |
| Top row only | Cell A2 | None | Row 1 |
The constant to memorize is that the frozen region is the block found up and to the left of your selection. Anything below or right of the active cell keeps scrolling. That single rule answers almost every freeze question, including why people who select column A itself end up freezing nothing at all.
Here is the sequence in real order. First, scroll to the top of the sheet with Ctrl+Home so hidden rows do not skew your selection. Second, click the cell that sits one column to the right of the last column you want frozen, or one row below the last row you want frozen. Third, go to View > Freeze Panes > Freeze Panes. Fourth, confirm the thin gray line appears at the boundary you intended. Fifth, scroll right and watch the frozen column hold position.
If you get it wrong, the fix is View > Freeze Panes > Unfreeze Panes, then reselect and try again. Unfreeze Panes clears all frozen rows and columns at once, so you cannot release one axis while keeping the other. That trips up users who froze a row earlier and then froze a column later. The Freeze First Column and Freeze Top Row commands in the same menu are shortcuts that save a selection step, but they only ever handle one column or one row.
Why Freeze Panes Looks Grayed Out or Does Nothing
The most common failure is a grayed-out Freeze Panes button, and the cause is almost always view mode. Freeze Panes is unavailable in Page Layout view and in Page Break Preview. Switch back to Normal view via View > Normal, and the button lights up again. This is the number one wasted hour on the topic.
The second cause is worksheet protection. If the sheet is protected, Excel disables Freeze Panes even though freezing is a view setting rather than a data change. Unprotect the sheet through Review > Unprotect Sheet, freeze what you need, then re-protect. The setting survives re-protection, so you only pay the cost once.
A third failure looks like success. You freeze column A, and it works, but the moment you close and reopen the file the freeze is gone. That usually means the workbook was saved as a CSV or another plain-text format. Freeze panes, protection, and formatting all die in CSV because those formats store delimiters and values only. Save as .xlsx or .xlsm to keep the setting.
Excel for the web behaves differently again. It supports freezing rows and columns through View > Freeze Panes, and the setting travels with the file, but some protection features are limited compared with the desktop app. If a freeze or protection option appears missing in the browser, open the file in the desktop application, set it there, and save. The desktop app is the authoritative place to configure both features.
Lock a Column Against Edits With Cell Protection
Cell locking is a two-switch system, and understanding that saves a lot of confusion. Every cell in a new workbook is already marked Locked in its formatting, yet nothing is protected until you turn on sheet protection. Ticking Locked on its own changes nothing. You need both the lock flag and the protected sheet.
The workable order runs like this. First, select the entire sheet with Ctrl+A or the corner box and open Format Cells (Ctrl+1), go to the Protection tab, and clear the Locked checkbox everywhere. Second, select only the column or columns users should not edit and tick Locked back on for those. Third, unlock the input cells that should stay editable. Fourth, click Review > Protect Sheet, set an optional password, and choose what remains permitted. Fifth, test by typing into a locked cell and confirming Excel refuses.
The reason to start by unlocking everything is that the default state makes every cell locked. Lock only the restricted columns, and you avoid the classic complaint that "the whole sheet is frozen and I can't type anywhere." Working from an unlocked baseline gives you an explicit allowlist of editable cells instead of an accidental blocklist.
Format Cells > Protection also offers a Hidden checkbox, which is a separate control. Hidden conceals the formula in the formula bar rather than hiding the column itself. People conflate the two constantly. If your goal is to stop someone reading a calculation, Hidden plus sheet protection does it; if your goal is to stop them changing a value, Locked does it. Column hiding, meanwhile, is a plain right-click > Hide command with no protection involved.
Mac users reach the same switches through Format > Cells > Protection, and the Protect Sheet command lives under Tools > Protection in older Mac builds. The logic is identical; only the menu location moves.
Let People Edit Some Cells While One Column Stays Locked
Real sheets rarely need all-or-nothing protection. The practical pattern is a locked ID or price column sitting beside editable quantity or notes columns. That combination needs the allowlist approach described above, applied column by column. Select the editable columns, clear Locked, then protect the sheet.
Protect Sheet presents a checklist of permissions, and two of them matter here. "Select locked cells" and "Select unlocked cells" control whether the cursor can land on a cell at all. Leave both ticked so users can still copy values out of the locked column and tab through the sheet naturally. If you clear "Select locked cells," users cannot even click the protected data, and they will report the sheet as frozen or broken.
The permission list also includes formatting, inserting rows, sorting, and using AutoFilter. Sorting deserves attention. If users need to sort the table, tick the Sort option, because sorting moves locked cells and is blocked by default. A locked column plus a sort attempt produces a cryptic error dialog that says the cell is protected, and users rarely connect that message to the sort permission.
Password handling is the weak point of this whole system. Sheet protection passwords in Excel are not encryption; Microsoft describes them as a way to prevent accidental changes rather than a security boundary against a determined person. If the requirement is confidentiality rather than edit control, encrypt the workbook with File > Info > Protect Workbook > Encrypt with Password, which uses real encryption. For shared editing control, keep the sheet-protection password recorded somewhere safe, because a lost password means a lost editing session.
One more edge case: merging cells. A merged cell that straddles a locked and an unlocked column inherits the locked flag if any part of it is locked, so users lose access to the editable half. Unmerge before applying protection if the layout spans the boundary.
Fix Arrow Keys Scrolling the Sheet Instead of Moving Cells
If selecting a cell and pressing the right arrow drags the entire sheet sideways, Excel is not broken and no setting is locked. Scroll Lock is engaged. It is a keyboard state inherited from the original IBM PC layout, and Excel honors it by making arrow keys scroll rather than move the cursor. The fix is to press the ScrLk key once.
Many laptops and compact keyboards hide ScrLk behind a function key combination because the key does not fit. On common laptop layouts it sits on the Fn key row, often as Fn+C or Fn+K, though the exact combination varies by manufacturer, so check the key's secondary label rather than guessing. On-screen, Windows offers an On-Screen Keyboard utility with a clickable ScrLk button, which is the reliable fallback when the physical key is buried.
The status bar tells you whether Scroll Lock is active. Right-click the status bar and tick Scroll Lock, and a small indicator appears when the mode is on. That indicator is the fastest diagnosis, because it separates "Excel is misbehaving" from "a keyboard mode is on." Mac keyboards do not have a Scroll Lock key, and Excel for Mac handles the equivalent mode differently, so the arrow-key symptom is far rarer there.
Two related traps share the symptom. Pressing F8 engages Extend Selection mode, where arrow keys expand a selection instead of moving the cursor, and the status bar shows Extend Selection when it happens. Pressing Scroll Lock accidentally while reaching for Shift or Ctrl is also common during fast typing. Both clear with the same discipline: read the status bar first, then correct the mode rather than the file.
Set Up Freeze Panes and Protection Together Without Breaking One Another
The two features interact, and the interaction causes a specific, repeatable failure. Freeze Panes is disabled on a protected sheet, so the order of operations matters. Freeze first, protect second. Freezing after protection forces you to unprotect, freeze, and re-protect every time a layout changes.
A workable sequence for a shared workbook starts with layout. Freeze the header row and the identifier column by selecting the cell below and right of both, usually B2. Apply formatting and column widths next, because column width changes are also blocked on protected sheets unless the Format Columns permission is ticked. Then unlock the input range, protect the sheet, and save as .xlsx.
For teams that rebuild the file monthly, keep an unprotected master copy and protect a distribution copy. That sidesteps the whole unprotect-and-refreeze cycle. The master holds the frozen panes and formatting; the distribution copy gets protection applied last, just before sending.
Test the combination before sharing, using three checks. Scroll right and confirm the frozen column holds. Type into a locked cell and confirm Excel refuses. Type into an unlocked cell and confirm it accepts. If all three pass, the file behaves correctly for the people receiving it.
Typical Time Cost, Common Mistakes, and What Changes in Old Files
A single freeze takes under ten seconds once you know the selection rule, and full column protection with an input range takes a few minutes the first time. Multiply that by every shared workbook in a team and the setup cost is small; the recovery cost from a mis-protected sheet is where time disappears, because users email asking why the file is "broken."
Mistake one is selecting the column you want frozen instead of the column to its right, which freezes the wrong region or nothing. Mistake two is protecting a sheet before freezing and then wondering why the Freeze Panes button is grayed. Mistake three is saving to CSV and losing both settings. Mistake four is clearing "Select locked cells" in the protection dialog and locking users out of navigation. Mistake five is confusing Format Cells > Hidden with the right-click Hide command.
Old files carry their own quirks. Workbooks saved in the legacy .xls format support freeze panes and protection, but the dialog wording and some permission options differ from the modern ribbon. Files converted from Google Sheets often arrive with no frozen panes at all, because the conversion does not always carry them. Open the converted file, reapply the freeze on the destination column, and save in .xlsx.
Shared-workbook scenarios add one more layer. Co-authoring in Microsoft 365 handles protection differently from the older shared-workbook feature, and locked cells behave per the sheet protection rules rather than per user. If multiple people need different edit rights on the same column, sheet protection is the wrong tool, and the better fit is restricting edit ranges through Excel's Allow Edit Ranges feature, which assigns passwords to specific ranges.
Quick Reference: Which Command Fixes Which Symptom
Match the symptom to the command and skip the trial and error. The table below covers the situations that generate most of the confusion around locked columns, including the ones that are not about columns at all.
| Symptom | Real cause | Command or fix |
|---|---|---|
| Column A disappears when scrolling right | No pane frozen | View > Freeze Panes, select B1 first |
| Freeze Panes button grayed out | Page Layout view or protected sheet | View > Normal, or Review > Unprotect Sheet |
| Freeze vanished after saving | File saved as CSV | Save As .xlsx, reapply freeze |
| Cannot type in any cell | Sheet protected, all cells locked | Review > Unprotect Sheet, then unlock input cells |
| Formula visible in formula bar | Cell not marked Hidden | Format Cells > Protection > Hidden, then protect |
| Arrow keys scroll the whole sheet | Scroll Lock engaged | Press ScrLk, or use On-Screen Keyboard |
| Arrow keys extend a selection | Extend Selection mode | Press F8 to clear |
| Sorting blocked on protected sheet | Sort permission not granted | Review > Protect Sheet, tick Sort |
Keep this table beside the steps if the file is shared, because the second person to open it will hit a different symptom than the first. The person who built the sheet froze the panes and knows the password; the person receiving it sees a grayed button or a refused keystroke and assumes corruption.
The general rule for choosing is simple. Visibility problems belong to the View tab. Edit problems belong to the Review tab. Keyboard problems belong to the status bar. Once the symptom is sorted into one of those three buckets, the fix is a couple of clicks rather than a rebuild.
FAQ
Does freezing a column also stop people editing it?
No. Freezing changes visibility only, and a frozen column stays fully editable unless the sheet is protected separately. Excel keeps the two features independent on purpose, so you can freeze a reference column that users still need to update. If you want both behaviors, freeze first and then apply sheet protection with the column's Locked flag ticked.
Why did my frozen column disappear after I reopened the file?
The file was almost certainly saved in CSV or another plain-text format, which stores values and delimiters but not view settings. Freeze panes, cell protection, and most formatting are discarded on save. Reopen the file, reapply the freeze, and use File > Save As to choose .xlsx before closing. The setting will then persist across sessions.
Can I freeze column A and column C but not column B?
No. Freeze Panes always locks a contiguous block up and to the left of the active cell, so you cannot skip a column in the middle. If you need column A visible while B scrolls away, the workaround is to hide column B, freeze on the new column C, then unhide B, though the result is fragile if the layout changes later.
How do I stop arrow keys from scrolling the entire sheet?
Press the ScrLk key once to turn off Scroll Lock, which is the mode causing arrow keys to scroll instead of move the cursor. On laptops without a dedicated key, use Fn plus the key carrying the ScrLk secondary label, or open the Windows On-Screen Keyboard and click the ScrLk button. Check the status bar indicator to confirm the mode has cleared.
Is Excel's sheet protection password actually secure?
Not in a security sense. Microsoft positions sheet-protection passwords as a guard against accidental changes, not as encryption, and they can be bypassed by someone with the right tools and knowledge. For genuine confidentiality, use File > Info > Protect Workbook > Encrypt with Password, which applies real encryption to the file.
What is the difference between locking a cell and hiding it?
Locked prevents editing once the sheet is protected, while Hidden conceals the formula from the formula bar under the same protection. Both live on the Protection tab of Format Cells. Hiding a column, by contrast, is a right-click command that removes it from view entirely and has nothing to do with protection flags.
Can I freeze panes in Excel for the web?
Yes. Excel for the web supports View > Freeze Panes for rows and columns, and the setting saves with the file. Some protection options are more limited in the browser than in the desktop app, so if a freeze or protection control is missing, open the workbook in the desktop version, configure it there, and save before returning to the browser.