How to Lock an Excel Spreadsheet
Share
How to Lock an Excel Spreadsheet: A Complete Step-by-Step Guide
You spend hours building a budget tracker or a business spreadsheet, and it only takes one accidental keystroke for a formula to disappear. Maybe a teammate deletes a total by mistake, or a client edits a cell they were only supposed to view. Locking your spreadsheet is the fix — and it's far easier than most people expect.
Excel doesn't have a single "lock" button. Instead, it gives you a stack of protection tools you can combine depending on how much control you need: locking individual cells, protecting a whole worksheet, protecting the workbook's structure, or encrypting the file with a password. This guide walks through each one, when to use it, and how to set it up.
Why Lock an Excel Spreadsheet?
Locking a spreadsheet is about protecting the integrity of your work, not just hiding information. A few common reasons people do it:
- Protecting formulas. If a spreadsheet has calculated fields — totals, averages, category breakdowns — one wrong click can overwrite a formula with a static number, and the error might not be obvious until much later.
- Controlled collaboration. You want teammates to fill in specific fields (like actuals for the month) without touching the layout or formulas around them.
- Sharing templates. If you're distributing a budget planner, invoice template, or tracker to clients or customers, locking it keeps the design and calculations intact no matter who opens it.
- Confidentiality. Financial data, personal information, or business numbers may need to stay private, which calls for password protection rather than just cell locking.
Each of these situations calls for a slightly different protection method, so it helps to understand the differences before you pick one.

Method 1: Lock Specific Cells (Keep Some Editable)
This is the most common approach when you want people to fill in some fields but not others — think a budget template where category names and formulas stay fixed, but the amount column stays open for entry.
Here's the key thing to know: every cell in Excel is set to "locked" by default, but that setting does nothing until sheet protection is turned on. So the process has two steps.
Step 1: Unlock the cells you want editable
- Select the cells that should remain open for editing.
- Right-click and choose Format Cells, or press Ctrl + 1.
- Go to the Protection tab and uncheck Locked.
- Click OK.
Step 2: Protect the sheet
- Go to the Review tab on the ribbon.
- Click Protect Sheet.
- Set a password (optional, but recommended if you don't want people removing protection on their own).
- Choose which actions to still allow — selecting cells, sorting, filtering, or formatting — using the checkboxes.
- Click OK.
Now only the cells you left unlocked can be edited. Everything else is locked in place.
Tip for formula-heavy sheets: instead of manually selecting every formula cell, use Home > Find & Select > Go To Special > Formulas to select them all at once, then lock just that selection before protecting the sheet.
Method 2: Protect an Entire Worksheet
If you want to lock down everything on a tab — no edits, no formatting changes, no accidental deletions — skip the cell-by-cell unlocking and protect the whole sheet as-is.
- Right-click the sheet tab name at the bottom of the window.
- Select Protect Sheet.
- Add a password if you want one.
- Click OK.
Anyone who tries to edit a cell will get a pop-up explaining that the sheet is protected. To make changes later, go back to Review > Unprotect Sheet and enter the password if one was set.
Method 3: Protect the Workbook Structure
Sheet protection only affects what happens inside a tab. If you also want to stop people from adding, deleting, renaming, hiding, or reordering entire sheets, that's a separate setting.
- Go to the Review tab.
- Click Protect Workbook.
- Add a password if needed.
- Click OK.
This is especially useful for multi-tab templates — like a full financial planner with separate sheets for income, expenses, and summaries — where the structure itself is part of the design.
Method 4: Encrypt the File With a Password
Cell and sheet protection stop accidental or casual edits, but they aren't real security — password-protecting a sheet is not a substitute for encrypting the file when the data is genuinely sensitive. If you need to control who can even open the file, use file-level encryption instead.
- Go to File > Info.
- Click Protect Workbook.
- Select Encrypt with Password.
- Enter a password, confirm it, and save the file.
Without the password, the file won't open at all. This is the right layer to add for anything containing financial records, client data, or confidential business numbers — keep the password somewhere safe, because Excel can't recover it if it's lost.
Choosing the Right Protection for the Job
| Goal | Best Method |
|---|---|
| Let people fill in some fields, not others | Lock specific cells + protect sheet |
| Prevent all edits to a tab | Protect sheet |
| Prevent adding/deleting/renaming tabs | Protect workbook structure |
| Control who can open the file | Encrypt with password |
Most real-world templates use more than one of these together. A budget tracker you share with clients, for example, might have unlocked entry cells, a protected sheet, a protected workbook structure, and a password on the file itself if it contains real financial figures.
A Few Things Worth Knowing
- Locking only works after protection is turned on. It's easy to unlock cells and forget the second step — always test by trying to edit a cell before sharing the file.
- Save the file after protecting it. Protection settings won't stick properly until the file is saved.
- Passwords are optional but recommended. Without one, anyone can remove sheet protection in a couple of clicks through the Review tab.
- Protection isn't foolproof. Sheet and workbook protection are meant to prevent accidental changes and casual tampering, not to stop a determined, technically skilled user. For genuinely sensitive data, pair protection with file encryption.
FAQs
Does locking a cell in Format Cells actually stop editing right away? No. Checking "Locked" in Format Cells only sets a property — it has no effect until you also turn on Protect Sheet from the Review tab.
Can I lock only the formulas and leave everything else editable? Yes. Use Go To Special > Formulas to select every formula cell at once, lock that selection, unlock the rest, then protect the sheet.
I forgot my sheet protection password — can I get back in? There's no official recovery path from Microsoft, so it's worth keeping protection passwords stored somewhere secure, like a password manager, rather than relying on memory.
Is sheet protection the same as file encryption? No. Sheet protection stops edits once the file is open. File encryption (File > Info > Encrypt with Password) controls whether the file can be opened at all — use it for genuinely sensitive data.
Will locked cells still update if they contain formulas referencing unlocked cells? Yes. Locking only restricts direct editing of a cell; formulas still calculate normally based on values entered elsewhere in the sheet.
Bringing It All Together
Once you've built a spreadsheet worth protecting — a budget tracker, a business dashboard, a client-facing planner — locking it down is what keeps it usable over time instead of quietly breaking after the first shared edit. Start with the level of protection that matches how the file will be used: unlock just the entry fields for something collaborative, protect the whole sheet for something read-only, and add encryption when the numbers inside are genuinely private.
If you'd rather start from a spreadsheet that's already built and protection-ready, ThePlanwise's budget and finance templates come pre-formatted with formulas locked in place, so you can plug in your numbers without worrying about accidentally breaking a calculation. It's a practical shortcut if you'd rather spend your time using the tracker than building and protecting one from scratch.
ThePlanwise