Lock Columns in Excel — Complete Guide (2026 June)
Lock columns in Excel two ways — 💡 freeze panes to keep them visible, or protect cells with a password to stop edits. Step-by-step for Windows & Mac.

Lock Columns in Excel — Complete Guide (2026)
"Lock columns in Excel" means two completely different things. Most people mix them up, and the wrong fix wastes ten minutes. The first meaning is visual — you want column A or columns A through C to stay on screen while you scroll right. That's the freeze panes feature. The second meaning is structural — you want a column to be uneditable. Maybe it has formulas, maybe it has IDs you shouldn't touch. That's cell protection plus sheet protection, and it usually involves a password.
Here's the quick test. If you're scrolling and labels disappear off the left edge, you need freeze panes. If a coworker keeps overwriting your formulas, you need protection. They work independently. You can freeze a column without locking it, and you can lock a column without freezing it. Most polished spreadsheets use both — frozen headers up top, locked formula columns down below, an input area everyone can type into in the middle.
This guide walks both routes end to end. You'll see exactly where the menus live in Excel 365, Excel 2019, Excel 2016, the web version, and Mac. You'll learn how to lock only certain cells while leaving the rest editable — which sounds backwards but is how Excel was built. You'll also see how to how to unprotect an excel sheet if you inherit a workbook with someone else's password, and what to do when shared workbooks block protection commands.
One quick warning. Excel's protection isn't a security feature. It's a UX feature. The password stops accidental edits. It does not encrypt the file. If you need actual security — like financial records or PII — that's a separate setting (File > Info > Protect Workbook > Encrypt with Password). We'll cover both, but don't confuse them.
One more framing piece before the steps. Locking in Excel is layered. Three layers, actually. There's the view layer (freeze panes — what stays on screen). There's the cell layer (the Locked checkbox on Format Cells — what gets blocked when protection is on). And there's the sheet layer (Protect Sheet — the actual switch that activates blocking). Almost every "my lock didn't work" support ticket comes down to a missing layer.
Set the cell property, forget the sheet switch — nothing happens. Flip the sheet switch on a sheet where every cell is still marked Locked by default — now everything is read-only, including the cells you wanted editable.
The mental model that works: think of the Locked property as a sign on each cell that says "if protection turns on, freeze me." Protection itself is the master power switch. Until that switch flips, the signs do nothing. Once it flips, every sign activates. That's why the standard workflow is always: clear every sign first, place signs only where you want them, then flip the switch.
Ready? Pick the path that matches your problem.
Lock Columns in Excel — Quick Reference

The Two Meanings of Locking Columns
Keeps columns visible on screen while you scroll horizontally. The data is still editable — you've just pinned the column so it doesn't slide off the left edge. Best for header rows and ID columns.
Prevents typing, deleting, or pasting into specific columns. Requires Protect Sheet to actually activate. Optional password. The locked column scrolls normally — it's just frozen as read-only.
Freeze your header column AND protect your formula columns. This is how most production workbooks are set up. Users type in the input area; formulas and headers stay safe and visible.
File > Info > Protect Workbook > Encrypt with Password. This is the only setting that actually encrypts the file. Sheet protection without encryption can be bypassed by anyone with a few minutes and Google.
Method 1: Freeze Columns Visually (View > Freeze Panes)
This is the easier route. Freeze the column you want to stay visible, then scroll right as much as you need. Excel keeps the frozen column glued to the left side of the screen. No password. No setup. About four clicks total.
Freeze just the first column. Open your workbook. Click the how to freeze panes in excel button on the View tab — it's near the middle of the ribbon. From the dropdown, pick Freeze First Column. Done. Column A now stays in place when you scroll right. You'll see a thin gray vertical line marking the frozen boundary. To remove it, go back to the same menu and choose Unfreeze Panes.
Freeze multiple columns. Excel doesn't have a "freeze first three columns" button. Instead, you pick the column after the ones you want frozen, then choose Freeze Panes. So to freeze A, B, and C, click on column D's header letter first, then View > Freeze Panes > Freeze Panes. Excel freezes everything to the left of your selection.
The same logic works for rows — see how to freeze a row in excel if you want headers and a side column locked at once. The mental shortcut: click the cell that should be the first scrollable cell, then pick Freeze Panes. Everything above and to the left of that anchor cell freezes.
Freeze rows and columns at the same time. Click the cell that sits one row below and one column to the right of where you want the freeze to start. So to freeze row 1 plus column A, click cell B2. Then View > Freeze Panes > Freeze Panes. Now your header row and ID column both stay visible. This is the setup most polished dashboards use — date column anchored on the left, header row pinned up top, the middle of the screen free to scroll in any direction.
That's it. No password, no menu diving. Freeze panes is purely cosmetic — anyone can still edit any cell. If you also need to stop edits, that's the next method.
Microsoft Excel Practice Test Questions
Prepare for the Microsoft Excel exam with our free practice test modules. Each quiz covers key topics to help you pass on your first try.
Microsoft Excel Excel Basic and Advance
Microsoft Excel Exam Questions covering Excel Basic and Advance. Master Microsoft Excel Test concepts for certification prep.
Microsoft Excel Excel Formulas
Free Microsoft Excel Practice Test featuring Excel Formulas. Improve your Microsoft Excel Exam score with mock test prep.
Microsoft Excel Excel Functions
Microsoft Excel Mock Exam on Excel Functions. Microsoft Excel Study Guide questions to pass on your first try.
Microsoft Excel Excel MCQ
Microsoft Excel Test Prep for Excel MCQ. Practice Microsoft Excel Quiz questions and boost your score.
Microsoft Excel Excel
Microsoft Excel Questions and Answers on Excel. Free Microsoft Excel practice for exam readiness.
Microsoft Excel Excel Trivia
Microsoft Excel Mock Test covering Excel Trivia. Online Microsoft Excel Test practice with instant feedback.
Microsoft Excel Advanced Data Analysis Tools
Free Microsoft Excel Quiz on Advanced Data Analysis Tools. Microsoft Excel Exam prep questions with detailed explanations.
Microsoft Excel Advanced Formula and Macro...
Microsoft Excel Practice Questions for Advanced Formula and Macro Creation. Build confidence for your Microsoft Excel certification exam.
Microsoft Excel Advanced Formulas and Macros
Microsoft Excel Test Online for Advanced Formulas and Macros. Free practice with instant results and feedback.
Microsoft Excel Basic and Advance Question...
Microsoft Excel Study Material on Basic and Advance Questions and Answers. Prepare effectively with real exam-style questions.
Microsoft Excel Creating and Managing Charts
Free Microsoft Excel Test covering Creating and Managing Charts. Practice and track your Microsoft Excel exam readiness.
Microsoft Excel Data Visualization with Ch...
Microsoft Excel Exam Questions covering Data Visualization with Charts. Master Microsoft Excel Test concepts for certification prep.
Microsoft Excel Formulas and Functions
Free Microsoft Excel Practice Test featuring Formulas and Functions. Improve your Microsoft Excel Exam score with mock test prep.
Microsoft Excel Formulas and Functions App...
Microsoft Excel Mock Exam on Formulas and Functions Application. Microsoft Excel Study Guide questions to pass on your first try.
Microsoft Excel Formulas Questions and Ans...
Microsoft Excel Test Prep for Formulas Questions and Answers. Practice Microsoft Excel Quiz questions and boost your score.
Microsoft Excel Functions Questions and An...
Microsoft Excel Questions and Answers on Functions Questions and Answers. Free Microsoft Excel practice for exam readiness.
Microsoft Excel Managing Data Cells and Ra...
Microsoft Excel Mock Test covering Managing Data Cells and Ranges. Online Microsoft Excel Test practice with instant feedback.
Microsoft Excel Managing Tables and Data
Free Microsoft Excel Quiz on Managing Tables and Data. Microsoft Excel Exam prep questions with detailed explanations.
Microsoft Excel Managing Tables and Table ...
Microsoft Excel Practice Questions for Managing Tables and Table Data. Build confidence for your Microsoft Excel certification exam.
Microsoft Excel Managing Worksheets and Wo...
Microsoft Excel Test Online for Managing Worksheets and Workbooks. Free practice with instant results and feedback.
Microsoft Excel MCQ Questions and Answers
Microsoft Excel Study Material on MCQ Questions and Answers. Prepare effectively with real exam-style questions.
Microsoft Excel Questions and Answers
Free Microsoft Excel Test covering Questions and Answers. Practice and track your Microsoft Excel exam readiness.
Method 2: Lock Columns From Editing
This sounds backwards but it's how Excel works. By default, every cell in a new workbook is marked Locked. The lock doesn't kick in until you turn on sheet protection. So before you can protect just one column, you have to unlock all the others.
Press Ctrl+A to select the entire worksheet. Then press Ctrl+1 to open Format Cells. Click the Protection tab. Uncheck the Locked box. Click OK. Nothing changes visually — but now every cell is marked unlocked.

Freeze vs Protect — Which Do You Actually Need?
- +Freeze Panes — Keeps important columns visible while scrolling
- +Freeze Panes — Zero setup, no password, can't break anything
- +Freeze Panes — Works on shared workbooks without issues
- +Protect Sheet — Stops accidental overwrites of formulas and IDs
- +Protect Sheet — Optional password for stronger control
- +Protect Sheet — Granular: lock one column, leave 50 others editable
- −Freeze Panes — Does nothing to stop edits — anyone can still type in frozen cells
- −Freeze Panes — Only one freeze point per sheet — can't freeze A and also freeze G
- −Freeze Panes — Resets if you accidentally split the window
- −Protect Sheet — Not real security — passwords on .xlsx can be cracked
- −Protect Sheet — Blocks legitimate edits if users don't have the password
- −Protect Sheet — Some features (sort, AutoFilter, group) need extra permissions toggled on
Lock-Columns Quick Checklist
- ✓Decide which problem you're solving — visual scrolling, or stopping edits, or both
- ✓For visual lock: View tab > Freeze Panes > pick First Column or Freeze Panes
- ✓For edit lock: Ctrl+A then Ctrl+1 > Protection > uncheck Locked
- ✓Then select target column(s) and Ctrl+1 > Protection > check Locked
- ✓Activate via Review tab > Protect Sheet (with optional password)
- ✓Test by trying to type — should see 'protected sheet' message
- ✓For specific cells only: same flow, just select cells instead of whole columns
- ✓Save the password somewhere safe — Excel won't recover it for you
- ✓If sharing the file, mention which columns are locked and why
- ✓For real security, also use File > Info > Encrypt with Password
Lock is a property. Protect is a switch.
The Locked checkbox on Format Cells does nothing on its own. It's just a flag that says "this cell will be locked when sheet protection is on." Until you click Review > Protect Sheet, every cell behaves identically — Locked or not.
That's why most beginners check Locked, expect protection, and get nothing. You need both: the property set on the cells you want frozen, and the sheet-level switch turned on.
Locking Only Specific Cells Inside a Column
What if you want column B mostly editable, except for cells B5, B12, and B30 — which hold formulas you don't want anyone to break? Same flow, different selection. Start with the all-unlock step. Press Ctrl+A, Ctrl+1, Protection tab, uncheck Locked, OK. Now hold Ctrl and click each cell you want frozen: B5, B12, B30. With them selected, Ctrl+1 again, this time check Locked, OK. Then Review > Protect Sheet to activate.
Three cells locked, everything else editable. You can mix and match across the whole worksheet — lock A1:A10 and C5:C20 and the entire E column, all in one protect operation. Just keep selecting and checking Locked before you turn on protection. The selection trick scales without limits. You can have 200 locked cells scattered across 10 columns, and Excel will treat them all identically.
One handy trick: use Find & Select > Go To Special > Formulas to select every cell containing a formula in one click. Then Ctrl+1, check Locked, protect the sheet. That locks every formula automatically, leaves every typed value editable. Most accountants set their workbooks up this way. The pattern also pairs well with excel formulas when you want to demo a sheet that calculates but doesn't let users break the math.
Want users to see the formula bar contents but not edit them? That's the default — locked cells display their formula in the bar but block typing. To hide the formula entirely so users only see the result, check the Hidden box on the Protection tab too. Once protection is on, clicking that cell shows nothing in the formula bar. Useful when you don't want collaborators reverse-engineering your business logic.
For data-entry forms — say, an invoice template — flip the pattern. Lock everything by default, then unlock only the input cells where users should type. Same Ctrl+1 dialog, opposite checkbox state on the cells you want editable. Now Tab moves the cursor between unlocked cells automatically once you click Protect Sheet with "Select unlocked cells" enabled but "Select locked cells" disabled. The user can't even click into the header or formula areas. That's the gold-standard form workflow.
One more selection trick worth knowing: named ranges. If you've named a range like "Inputs" or "Formulas" via Formulas > Define Name, you can type the name into the Name Box (top-left, next to the formula bar) and instantly select every cell in it. Then Ctrl+1 to lock or unlock as a group. This is how big workbooks stay manageable — you don't manually re-select dozens of cells every time you tweak protection.

If your workbook is set as Shared (Review > Share Workbook in older Excel, or co-authoring on OneDrive/SharePoint in modern Excel), the Protect Sheet command may be grayed out or behave inconsistently. Unshare first, apply protection, then re-share. On co-authored files, some users report protection persists but allows simultaneous editors to bypass it — test before relying on it for shared production data.
Excel Version Differences — 365, 2019, 2016, Mac, Web
The good news: the core flow hasn't changed in fifteen years. The menus are in the same places. Format Cells > Protection has had the Locked checkbox since Excel 2003. Freeze Panes lives on View in every modern version. If you're on a corporate Excel 2016 install or the latest Microsoft 365 subscription, the steps in this guide work the same way.
Small differences worth knowing. Excel for Mac uses Cmd instead of Ctrl — so Cmd+1 to open Format Cells, Cmd+A to select all. The Protect Sheet button lives on the Review tab in both, but the dialog has slightly different default permissions. Mac Excel 2016 had bugs around password dialogs hanging; updating to a current version fixes it.
The web version (Excel Online / Excel for the Web) supports Freeze Panes but has limited Protect Sheet — you can apply protection in the desktop app and the web version will respect it, but creating new protection from the browser is restricted.
Mobile Excel (iOS and Android) lets you edit cells inside protected sheets if you have the password, but the Protect Sheet command itself is hidden in most builds. If you need to set up protection, do it on desktop first. Other column tools like how to move columns in excel and how to unhide columns in excel work the same across all versions, with the caveat that mobile versions sometimes nest the commands deeper in menus.
One real change worth noting: Excel 365's co-authoring (live multi-user editing) replaced the old Shared Workbook feature. Protection now plays better with co-authoring than it did pre-2018 — but it's still not perfect. Test with a second user before you trust it for anything that matters.
Version-Specific Quick Notes
Best support. Freeze Panes and Protect Sheet both work perfectly. Co-authoring respects sheet protection but test with a second user first.
Identical menus to 365. Some 2016 builds had Mac password-dialog hangs — fully patched 2016+ is fine. No co-authoring, so protection behaves like classic desktop Excel.
Cmd replaces Ctrl. Same Review > Protect Sheet flow. Touch Bar shows Format Cells when active. Slightly different permission defaults in the protect dialog.
Reads protected workbooks fine. Creating new protection from browser or phone is limited — set up the lock on desktop first, then share the file.
Common Errors and How to Fix Them
"The cell or chart you're trying to change is on a protected sheet." This is the message you want to see for cells you locked — and the message that's confusing when you didn't realize the sheet was protected. Go to Review > Unprotect Sheet. If you set the password, enter it. If you inherited the file, you may be stuck — Excel doesn't expose a forgot-password flow.
"Cannot enter formulas in a protected sheet." Same root cause — the sheet is protected and the cell you clicked is locked. Either unprotect, or click a different (unlocked) cell. The fix for inherited files is documented at how to unprotect an excel sheet.
Freeze Panes grayed out. Usually means you're in cell-edit mode (you double-clicked into a cell and never pressed Enter or Esc). Press Esc, then try again. Other causes: Page Layout view (switch to Normal view first), or the workbook is open as read-only.
Protection applied but column still editable. The Locked checkbox is set per-cell, not per-column. If you clicked the column letter but Excel only selected the visible cells (filtered list, hidden rows), unhide everything first, then re-apply. Also confirm you actually clicked Review > Protect Sheet — applying Locked without activating protection is the most common mistake.
"You can't paste here." Paste into a protected sheet fails the same way typing does, but the error wording is different. Excel blocks paste targeting any locked cell, even if your clipboard came from inside the same workbook. Unprotect, paste, re-protect. Same workflow for fill-handle drags that land in locked territory.
Freeze Panes works but disappears on save. Older .xls format sometimes lost freeze settings during round-trips through Google Sheets or LibreOffice. Save as .xlsx natively and the issue goes away. Worth checking if you inherited a legacy file from a different platform.
"This cell is protected and therefore read-only." Same family of errors. The wording varies by Excel version but the fix is identical — unprotect the sheet via Review > Unprotect Sheet. If you're inside a protected workbook structure (Review > Protect Workbook), that's a different lock layer — it blocks adding or renaming sheets, not editing individual cells. Both can be on at once, which means you might need to unprotect twice to get full edit access back.
Troubleshooting Checklist (When Locks Don't Stick)
- ✓Did you click Review > Protect Sheet AFTER setting cell properties? — most common miss
- ✓Are you actually selecting columns, not just visible cells? Unhide all rows first
- ✓Press Esc — you might be stuck in cell-edit mode
- ✓Switch View > Normal if you're in Page Layout (some commands gray out there)
- ✓Confirm the file isn't read-only or co-authored without permissions
- ✓Test as a different user — your account might have admin override on the workbook
- ✓For freeze: only ONE freeze point per sheet — old freeze must be removed first
- ✓For paste errors: unprotect, paste, re-protect — protected sheets block paste entirely
- ✓If lost password — restore from backup, no official recovery exists
Mac, Touch Bar, and Keyboard Shortcuts Worth Memorizing
On a Mac, every shortcut in this guide swaps Ctrl for Cmd. Cmd+1 opens Format Cells. Cmd+A selects all. The menu paths are identical — View > Freeze Panes, Review > Protect Sheet. If your MacBook has a Touch Bar, the Format Cells dialog shows up there too once you're inside it. Mac Excel also adds a small dot indicator next to protected sheets in the tab bar — a tiny lock icon you'll spot once you know to look for it.
Worth memorizing for Windows users: Alt+W+F+F toggles Freeze Panes (alt menu sequence). Ctrl+1 opens Format Cells. Alt+R+P+S walks Review > Protect Sheet. Once you've protected a few sheets the muscle memory takes over and the whole flow takes about eight seconds. Similar shortcuts also speed up related tasks — see how to freeze cells in excel for the row-and-column-together pattern.
If you build the same protection setup repeatedly — say, lock columns A through D on every monthly report — record a macro. Developer tab > Record Macro > do the steps once > Stop Recording. Assign it to a button. Next month, one click protects the sheet exactly the same way. The recorded VBA also gives you a starting point if you want to tweak the protection options programmatically — say, applying the same lock pattern to twenty sheets in one workbook with a small loop.
Another time-saver: Excel templates. Build your protected workbook once, save as a .xltx template file, then start every new month's report from it. Protection, freeze settings, named ranges, and unlocked input regions all come along for the ride. Way faster than redoing the same setup every period.
The deeper you get, the more it becomes a workflow, not a feature. Treat freeze panes as the visual layer and sheet protection as the integrity layer. Most polished workbooks use both, often with a clear input region that everyone can type in while the calculation and reference regions stay locked down. That's the pattern to copy. Once you've set up two or three workbooks this way, it stops feeling like extra work — it's just how a finished spreadsheet looks.
Excel Questions and Answers
About the Author
Business Consultant & Professional Certification Advisor
Wharton School, University of PennsylvaniaKatherine Lee earned her MBA from the Wharton School at the University of Pennsylvania and holds CPA, PHR, and PMP certifications. With a background spanning corporate finance, human resources, and project management, she has coached professionals preparing for CPA, CMA, PHR/SPHR, PMP, and financial services licensing exams.