Business & Productivity · Guide
How to lock cells and protect a sheet in Excel
Locking cells does nothing until you protect the sheet. Here is the two-step order, how to leave the input cells editable, and what sheet protection is not.
The Nextversity teamBusiness & Productivity schoolUpdated August 10, 20265 min read

On this page
The short answer
Locking cells in Excel is a two-step job, and the order is the part everyone misses.
- Every cell is already locked by default. The setting has no effect on its own.
- Select the cells you want people to be able to type in and untick Locked in Format Cells.
- Go to Review > Protect Sheet and click OK. Now the locked cells are read-only and your input cells still work.
If you skip step 3, nothing changes. If you skip step 2, the whole sheet becomes read-only, including the cells you meant to leave open.
The steps in full
- Press Ctrl+A to select the whole sheet, press Ctrl+1 for Format Cells, go to the Protection tab and confirm Locked is ticked. This is the default, so it usually already is.
- Now select only the cells people should fill in. Hold Ctrl to pick several ranges at once.
- Ctrl+1 again, Protection tab, untick Locked, OK.
- Review > Protect Sheet. In the dialog, leave the default selection options ticked and choose whatever else you want to allow (sorting, filtering, formatting).
- Set a password only if you need one, then click OK.
Once protected, pressing Tab moves between the open cells only, which makes a form quick to fill in. That is a nice side effect worth designing for.
Protection is for preventing accidents, not for keeping secrets. Treat it as a guard rail, not a lock on a door.
Hiding formulas
The same dialog has a Hidden tickbox. Tick it on your formula cells before protecting, and the formulas stop appearing in the formula bar. The results still show. It is useful when a sheet goes to people who might helpfully "fix" your calculations.
Protect the workbook, not just the sheet
Two different commands:
- Protect Sheet controls what can be edited on one tab.
- Protect Workbook (also on the Review tab) stops people adding, deleting, renaming, hiding or reordering tabs.
Use both on a template that gets sent out, or someone will delete the Lists tab your drop downs point at and email you when it breaks.
What this does not do
Be clear with yourself about the limits. Sheet protection is not encryption. It stops a colleague from accidentally overwriting a formula, and that is genuinely valuable, but it is not a security control for confidential data. Microsoft's Excel help is explicit about the difference, and Microsoft Learn covers the stronger options.
If a file genuinely holds sensitive information, control who can open it: file permissions, a shared drive with proper access, or file-level encryption. Do not lean on a sheet password.
A design that survives contact with colleagues
Protection works best alongside a bit of layout discipline:
- Put inputs in one obvious block, shaded a different color, and untick Locked on only those.
- Put the calculation sheet on its own tab and hide it, then protect the workbook so it stays hidden.
- Add drop down lists on the input cells so people pick rather than type.
- Write one line at the top saying what the sheet is for. Future you will be grateful.
A protected sheet with no instructions still generates emails. A protected sheet with a clear input block generates almost none.
When you need more than this
If you find yourself protecting a workbook that four people edit at once, you have outgrown the spreadsheet and want a proper tool with permissions. Notion or Airtable are the usual next step for shared, structured data.
If you want the full Excel skill instead, the Excel certificate covers protection alongside formulas, lookups and reporting, and one subscription opens every course in the Business & Productivity school.
Lock the formulas, open the inputs, and stop rebuilding the sheet every time someone types over a cell.
Questions people ask
How do I lock a cell in Excel?
Every cell is already set to locked, but the setting does nothing until you protect the sheet. Select the cells people should be able to edit, untick Locked in Format Cells, then go to Review and click Protect Sheet.
Why can I still edit my locked cells?
Because the sheet is not protected yet. Locked is only a flag on the cell. Review, Protect Sheet is the step that turns the flags into actual restrictions.
Do I have to set a password?
No. Protect Sheet works with no password at all, which stops accidental edits while letting anyone unprotect it deliberately. Add a password only if you need a second barrier, and keep a copy of it.
How do I remove protection from a sheet?
Review, Unprotect Sheet, and enter the password if one was set. If you have lost the password, Microsoft cannot recover it and neither can we, so store it somewhere sensible before you set one.
Is Excel sheet protection actually secure?
No. It prevents accidents, not determined access, and it is not encryption. If a file holds genuinely sensitive information, control who can open it with file permissions rather than relying on sheet protection.