Lock Columns in Excel — Complete Guide (2026)
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. Practice with the free Excel practice test on PracticeTestGeeks (500+ questions with answer explanations).
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.
If you want the full picture, the lock columns in excel guide walks through it step by step.
If you want more targeted practice, the excel exam practice page covers the same material with additional questions and explanations.
If you want more targeted practice, the xcel co-authoring in real time page covers the same material with additional questions and explanations.
Microsoft Excel: upcoming dates and official changes
- Jun 30, 2026: Certiport retired the Microsoft Office Specialist 2016 certifications, including MOS Excel 2016, on June 30, 2026. The Microsoft 365 Apps and Office 2019 Excel exams are still available. (certiport.pearsonvue.com)
- Updated Oct 16, 2026: Delivery is now Proctored live-in-the-application exam via Certiport Authorized Testing Centers (in-center or remote-proctored) (previously Proctored live-in-the-application exam via Certiport Authorized Testing Centers).
- Updated Oct 16, 2026: Eligibility is now No formal prerequisites; about 150 hours of instruction and hands-on experience recommended (previously No formal prerequisites; ~150 hours of instruction and hands-on experience recommended (Associate)).
- Updated Oct 16, 2026: Time limit is now 50 minutes (60 minutes seat time) (previously 50 minutes (60 minutes seat time)).
Facts verified Oct 17, 2026 against Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business. Dates that have passed are removed automatically.
- The MOS Excel (Microsoft 365 Apps) exam has 33 to 37 questions. (certiport.pearsonvue.com)
- The MOS Excel Expert (Microsoft 365 Apps) exam has 23 to 27 questions. (certiport.pearsonvue.com)
- Microsoft Office Specialist Excel exams last 50 minutes, with 60 minutes of total seat time. (Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business)
- The passing score for Microsoft Office Specialist Excel exams is always 700 on Certiport's 1 to 1000 scaled score. (certiport.pearsonvue.com)
- After failing a Microsoft Office Specialist Excel exam, candidates must wait 24 hours before the first retake and 48 hours before each later retake, and there is no annual limit on attempts. (Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business)
- Microsoft Office Specialist Excel certifications earned on or after September 23, 2025 are valid for five years; those earned earlier do not expire. (certiport.pearsonvue.com)
- The Microsoft Office Specialist Excel exam is proctored and delivered live in the Excel application through Certiport Authorized Testing Centers, either in person or remote-proctored. (Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business)
- Microsoft recommends that candidates for the MOS Excel Associate (Microsoft 365 Apps) certification have about 150 hours of instruction and hands-on experience with Excel. (Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business)
- Candidates get their MOS Excel score report as soon as they finish the exam, and it can also be viewed in their Certiport profile. (certiport.pearsonvue.com)
Facts verified Oct 17, 2026 against Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business. Dates that have passed are removed automatically.
Microsoft Excel Exam at a Glance
| Item | Detail | Official source |
|---|---|---|
| Number of questions (Excel Associate (MO-210)) | 33-37 questions | certiport.pearsonvue.com |
| Number of questions (Excel Expert (MO-211)) | 23-27 questions | certiport.pearsonvue.com |
| Time limit | 50 minutes (60 minutes seat time) | Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business |
| Passing score | 700 on a 1–1000 scale | certiport.pearsonvue.com |
| Retake policy | Wait 24h after 1st fail, 48h before each later retake; no annual limit | Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business |
| Validity | Valid 5 years (earned on/after Sept 23, 2025) | certiport.pearsonvue.com |
| Delivery | Proctored live-in-the-application exam via Certiport Authorized Testing Centers (in-center or remote-proctored) | Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business |
| Eligibility | No formal prerequisites; about 150 hours of instruction and hands-on experience recommended | Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business |
| Score release | Score report at end of exam; also in Certiport profile | certiport.pearsonvue.com |
Facts verified Oct 17, 2026 against Microsoft (Microsoft Office Specialist program), delivered by Certiport, a Pearson VUE business. Dates that have passed are removed automatically.
Free Excel Study Tools
Interactive Excel resources on PracticeTestGeeks, free to start:
- Free Excel Questions and Answers — 16 questions with instant scoring and answer explanations
- Excel flashcards — review key terms and concepts card by card
- Excel study guide — topic-by-topic overview of what the exam covers
- Excel cheat sheet — one-page printable summary for last-minute review
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.
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
Pros and Cons at a Glance
| Pros | Cons |
|---|---|
| Freeze Panes — Keeps important columns visible while scrolling | Freeze Panes — Does nothing to stop edits — anyone can still type in frozen cells |
| Freeze Panes — Zero setup, no password, can't break anything | Freeze Panes — Only one freeze point per sheet — can't freeze A and also freeze G |
| Freeze Panes — Works on shared workbooks without issues | Freeze Panes — Resets if you accidentally split the window |
| Protect Sheet — Stops accidental overwrites of formulas and IDs | Protect Sheet — Not real security — passwords on .xlsx can be cracked |
| Protect Sheet — Optional password for stronger control | Protect Sheet — Blocks legitimate edits if users don't have the password |
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.
Sample Excel Practice Questions
Try these questions from our free Excel practice tests. The correct answer and an explanation follow each question.
How can the column width be adjusted to fit the contents?
- A. Double-click the boundary to the right of the column heading.
- B. Single-click the boundary to the left of the column heading.
- C. Press Fn and double-click anywhere in the column.
- D. Press ALT and single-click anywhere in the column.
Answer: A. Double-click the boundary to the right of the column heading.
Double-clicking the boundary on the right edge of a column heading triggers auto-fit, resizing the column to its widest content. The other actions—single-clicking the left boundary or using Fn/ALT key combinations—do not perform this auto-resize.
Which function can locate a cell range's highest value?
- A. MAX
- B. HIGHEST
- C. TOP
- D. MAXVALUE
Answer: A. MAX
The `MAX` function in Excel is used to find the largest numerical value within a specified range of cells. You simply provide the cell range as an argument to the function, for example, `=MAX(A1:A10)`. Excel will then return the highest number found within that range.
Which option in PivotTable Options makes a PivotChart automatically reflect changes when the workbook is opened?
- A. Enable show details
- B. Refresh data when opening the file
- C. Preserve cell formatting on update
- D. Autofit column widths on update
Answer: B. Refresh data when opening the file
This setting on the Data tab of PivotTable Options refreshes the cache at file open.
What is the purpose of the ABS function?
- A. Returns the absolute (positive) value of a number
- B. Rounds a number to the nearest integer
- C. Returns the square root of a number
- D. Converts a number to text
Answer: A. Returns the absolute (positive) value of a number
ABS returns the absolute value of a number, removing any negative sign.
Excel Questions and Answers
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- learn.microsoft.com — Retake policy, test delivery, time limit, eligibility · verified Oct 2026
- certiport.pearsonvue.com — Exam format, score validity, passing score, score release, exam information · verified Oct 2026