You spent hours building a spreadsheet. Formulas in column F, lookup tables on Sheet2, a clean input area for your team. Then somebody clicks into F12, hits delete, and the model breaks. Sound familiar? Protecting cells in Excel is the fix, and it is not as obvious as it should be.
Here is the part most tutorials skip. Every cell in Excel is locked by default. That lock does absolutely nothing until you turn on sheet protection. So the real workflow has two halves. First you decide which cells should stay editable. Then you switch protection on for the whole sheet. Miss either step and you will lock everything or nothing.
This guide walks through the full process with the exact menu paths for Excel 365, 2021, 2019, and Excel for the web. We cover password protection, range permissions, protecting formulas while leaving inputs open, and the workarounds people actually use when they forget the password.
Cell protection is not just a power-user feature. It is how shared spreadsheets stay usable. Think about a budget template that goes to twelve department heads. Without locked formulas, you will get twelve broken versions back by Friday.
With protection set correctly, your team can fill in their numbers and the totals just work. The same logic applies to commission calculators, timesheet templates, inventory trackers, and anything with a fixed structure plus variable inputs.
You also see protection used heavily in financial models. One stray keystroke in a discounted cash flow assumption can move a valuation by millions. Auditors actually look for cell protection during reviews of financial workbooks.
One thing worth saying up front. Excel protection is not encryption. Somebody who really wants to crack a sheet password can do it, and the methods are not hard to find. Cell protection prevents accidents, not determined attacks. If you need true security, encrypt the whole file with the Protect Workbook option using a strong password.
Protecting cells in Excel always takes two steps. Step one: set which cells are locked or unlocked through Format Cells then the Protection tab. Step two: turn on sheet protection via Review then Protect Sheet. If you skip step two, nothing is protected. If you skip step one, everything gets protected. Both steps, every time, in that order.
This is the most common scenario. You have a template with formulas, headers, and an input area. You want the inputs editable and everything else frozen. Here is the full sequence.
Open your worksheet. Press Ctrl+A to select every cell. Right-click any selected cell and pick Format Cells. Go to the Protection tab. Uncheck the Locked box and click OK. You have just unlocked the entire sheet. This feels backwards, but it is the cleanest path.
Now select only the cells you want to protect. Hold Ctrl while clicking to grab non-adjacent ranges. Open Format Cells again with Ctrl+1, go to Protection, check Locked, and click OK. These cells are now flagged as locked, but they are still editable because protection is not on yet.
Finally, go to the Review tab on the ribbon and click Protect Sheet. A dialog appears with a password field and a list of checkboxes. Set a password if you want one. Leave the default permissions for normal use. Click OK, confirm the password, and you are done. Try editing a locked cell now. Excel will block you with a popup.
Press Ctrl+A to select the whole sheet, then open Format Cells with Ctrl+1, go to the Protection tab, and uncheck Locked. This clears the default lock from every cell so you can pick exactly what to protect.
Highlight only the cells you want frozen. Use Ctrl-click to grab scattered ranges in one selection. Press Ctrl+1, go to Protection, check Locked, and click OK to flag those cells as protected.
Go to the Review tab and click Protect Sheet. Add a password if you need one. Keep the default Select locked and unlocked options. Click OK and confirm the password to activate protection.
Click a locked cell and try to type. You should see the protection warning popup. Click an unlocked cell and confirm it accepts input. If the wrong cells lock, repeat step one to unlock everything and start again.
Selecting individual cells works, but it is slow on large sheets. There is a faster method when your goal is to lock every formula while leaving raw input cells editable. Excel can find all formula cells for you with Go To Special.
Start the same way. Ctrl+A, Format Cells, uncheck Locked. Then press F5 or Ctrl+G to open the Go To dialog. Click Special at the bottom. In the list, pick Formulas and click OK. Excel will instantly select every cell containing a formula across the whole sheet.
Open Format Cells, check Locked, click OK. Now turn on sheet protection from the Review tab. This method scales beautifully. A 4000-row financial model with mixed formulas and inputs takes about twelve seconds to protect properly. The same task done cell by cell would take an hour.
It also handles cases where formulas are scattered in unexpected places. You will sometimes find a stray formula in a comment column you forgot about, and Go To Special catches it. Always use this method on any spreadsheet you did not personally build from scratch.
Use the ribbon path Review then Protect Sheet. The dialog is unchanged from 2016. You can also right-click a sheet tab and pick Protect Sheet for the same dialog. Excel 365 adds the option to protect with a Microsoft account, but a standard password still works fine and remains the most common choice for shared files.
Identical ribbon path: Review then Protect Sheet. Password length capped at 255 characters. Allow Edit Ranges is available under Review then Allow Edit Ranges for setting different passwords on different ranges within the same sheet, which is useful for multi-team workbooks.
Web version has limited protection options. Review then Manage Protection lets you protect a range with view or edit permissions tied to user accounts. Traditional password protection is not fully supported in the browser. Open in desktop Excel for full control over locking and unlocking.
Same Review then Protect Sheet workflow as on Windows. Format Cells lives under the Format menu or you can use Cmd+1 as a shortcut. Right-click works the same as on Windows. The Touch Bar shows a protect shortcut on supported MacBook models, which speeds up repeated protection cycles.
When you add a password during Protect Sheet, Excel asks you to confirm it. Type it twice exactly. There is no recovery option. If you forget a sheet password, you have basically lost easy access to that protection layer.
That said, sheet passwords are not strong. They protect against the casual user who tries to type in a locked cell. They do not stop someone who knows their way around a hex editor or who downloads one of the dozens of free password removal tools online.
If you actually need to keep data confidential, encrypt the workbook itself. File, then Info, then Protect Workbook, then Encrypt with Password. That uses AES-256 and is genuinely secure with a strong password.
For workbook-level encryption, follow real password rules. At least 14 characters, mix of upper and lower case, numbers, and symbols. Store it in a password manager because if you lose this one, the file is gone. Microsoft will not recover it for you, and no service can promise to.
Sometimes you need finer control than a single sheet password. Maybe the sales team should edit columns C through E, while accounting handles F through H. Both groups should be blocked from the formula cells. This is what Allow Edit Ranges was built for.
Go to Review then Allow Edit Ranges. In some versions it shows as Allow Users to Edit Ranges. Click New. Give the range a name like SalesInputs, point it at C2:E500, and assign a password unique to that range.
Repeat for the accounting range with a different password. Click OK, then click Protect Sheet to turn on overall protection. Now when a sales user clicks into C2, they get prompted for the sales password. They enter it and can edit anywhere in C through E for the rest of the session.
They still cannot touch the accounting columns without the second password. This is genuinely useful in shared environments where you cannot rely on user accounts. One catch though. Allow Edit Ranges only works on protected sheets. You still have to click Protect Sheet at the end, or the ranges have no effect.
People sometimes ask for the opposite scenario. Leave the sheet open for editing, but lock one specific cell. The answer is the same two-step process, but with a tweak in step one.
Press Ctrl+A and uncheck Locked through Format Cells. Click the one cell you want protected. Open Format Cells, check Locked, click OK. Then turn on Protect Sheet from the Review tab. The single cell is now blocked while every other cell stays editable.
This is handy for things like a master date cell that drives the rest of the sheet, or a tax rate that should not change without admin approval. Some people pair this with a colored background on the locked cell so users see at a glance that it is read-only.
The Protection tab has a second checkbox called Hidden. It is widely misunderstood. Hidden does not hide the cell. It hides the formula from the formula bar when the user clicks the cell.
The result of the formula still shows in the cell, but anyone clicking on it just sees a blank formula bar. Hidden also requires Protect Sheet to be turned on to take effect.
To use it, select your formula cells, open Format Cells, then Protection, check both Locked and Hidden, click OK, then turn on Protect Sheet. Now users can see results but cannot copy your formula logic.
This matters when you license a template or sell financial models. Buyers can run the model, but they cannot reverse-engineer the calculations without unlocking the sheet first. Combined with workbook encryption, it makes a reasonable IP protection layer for commercial spreadsheet work.
The number one mistake is forgetting that cells are locked by default. People go to Format Cells, check Locked on their target cells, turn on Protect Sheet, and discover the entire sheet is now read-only. The fix is the Ctrl+A unlock step at the start. Always run it first on any sheet you have not customized.
The second mistake is locking cells but never clicking Protect Sheet. The Locked attribute is just a flag. Without sheet protection turned on, the flag does nothing and users can edit freely. If your protection is not working, this is almost always why.
Third, people protect a sheet but leave the workbook unprotected. A user who cannot edit cells on Sheet1 may simply right-click the tab, duplicate the sheet, and edit the copy. To prevent this, also use Review then Protect Workbook to lock the structure.
Fourth, complex protection on shared workbooks can clash with co-authoring features in Excel 365. If multiple people will edit the file simultaneously through OneDrive or SharePoint, test the protection scheme in a copy before committing it to a production file.
To unlock a protected sheet, go to Review then Unprotect Sheet and enter the password. If there was no password, it unlocks instantly. The cells stay flagged with their Locked status, but the sheet-level protection is off, so everything becomes editable again.
To remove workbook structure protection, Review then Protect Workbook acts as a toggle. Click it again with the password and the structure unlocks. Workbook encryption is removed through File, Info, Protect Workbook, Encrypt with Password, then deleting the password from the field and clicking OK.
Think about the kinds of files where cell protection earns its keep day to day. Sales commission calculators are the classic example. Reps need to type in their booked revenue. They should not be able to touch the commission rate table or the tier thresholds. Without protection, one curious salesperson opens the file, edits the bonus multiplier, and the dispute lands on your desk.
HR templates are another major use case. Performance review forms have a scoring rubric that should never change between employees. Managers fill in comments and ratings. Locking the rubric and unlocking the input fields takes ten minutes and saves countless arguments about whether the form was tampered with.
Operations teams use cell protection for inventory and reorder sheets. The min and max stock levels are set by procurement. Warehouse staff update on-hand counts. Mixing the two would cause auto-reorder logic to trigger at the wrong levels. Locked thresholds plus unlocked count cells gives you both editability and integrity in one workbook.
Even small teams benefit. A two-person consultancy tracking client hours needs the rate column locked so a tired Friday-evening edit does not retroactively change a paid invoice. The cost of getting that wrong is real money and an awkward client call.
Ctrl+A then Format Cells then check Locked then Review then Protect Sheet. Use when you want a read-only reference sheet that no one should edit at all, like a finished report or a published rate card.
Unlock all, then F5 then Special then Formulas, then check Locked, then Protect Sheet. Use for templates with mixed inputs and calculations where users should fill in raw numbers but never touch the math.
Review then Allow Edit Ranges with unique passwords per range. Use for shared team workbooks where different groups own different columns or sections of the same sheet.
File then Info then Protect Workbook then Encrypt with Password. Use when the data itself is sensitive and you need real AES-256 security beyond simple edit prevention for accidental changes.
Cell protection covers more than just typed values. Charts, pivot tables, and named ranges have their own quirks worth knowing. Charts on a protected sheet inherit the lock by default. Users cannot resize them, change the chart type, or edit data labels. To allow chart edits while keeping cells locked, right-click the chart, pick Format Chart Area, and uncheck the Locked option before turning on sheet protection.
Pivot tables are trickier. Protect Sheet has a dedicated checkbox called Use Pivot Table reports. If you leave it unchecked, users cannot refresh or change the pivot, which is usually what you want for finished dashboards. If you check it, users can interact with filters and slicers but still cannot edit the underlying data range, assuming you locked it.
Named ranges remain editable in the Name Manager unless you protect the workbook structure as well. A determined user could redefine your named ranges and break formulas without ever touching a locked cell. Review then Protect Workbook with the Structure option ticked closes that gap.
One more edge case worth flagging. Comments and notes attached to cells stay editable on a protected sheet by default unless you uncheck Edit objects in the Protect Sheet dialog. Many templates leave them on so users can document their inputs without unlocking the file.
Protecting cells in Excel comes down to two reflexes. First, remember every cell is locked by default and you need to flip that for the cells that should stay editable. Second, the Locked flag does nothing until you click Protect Sheet on the Review tab. Once both halves are in place, your sheet behaves the way you expect.
Pick your method based on the job. For simple input templates, the standard Ctrl+A unlock then re-lock targets approach is fastest. For large models with scattered formulas, Go To Special then Formulas is the time-saver.
For multi-user spreadsheets, Allow Edit Ranges gives you per-range passwords. For real confidentiality, layer workbook encryption on top of cell protection. A few habits make this easier in practice.
Mark editable cells with a soft fill color so users know where to type. Add a note on Sheet1 listing the passwords, or the password manager entry that holds them. Save a backup copy of any complex template before applying full protection, in case you need to make structural changes later.
Test your protection by trying to edit a locked cell yourself before sending the file out. A protected sheet that lets users break formulas is worse than no protection at all because it gives a false sense of safety. If you work with Excel often, cell protection is one of those quiet skills that pays off forever. It saves time, prevents support calls, and keeps your work intact when files travel between people.