How to Protect or Unlock Cells in Excel

Office and email troubleshooting category image

Every Excel cell is marked Locked by default, but that setting does nothing until you turn on Protect Sheet. To make a form where only some cells are editable, unlock the input cells first, then protect the sheet.

Does this affect you?

Use this for Excel for Microsoft 365, Excel 2021, Excel 2019, Excel for Mac, and Excel for the web when formulas, headings, or important values should be protected while selected cells remain available for data entry.

Lock most cells but leave input cells editable

Use this for shared forms, templates, budgets, and trackers.

  1. Select the cells people should be allowed to edit. Hold Ctrl or Cmd to select separate ranges.
  2. Press Ctrl+1 on Windows or Cmd+1 on Mac to open Format Cells.
  3. Open the Protection tab.
  4. Clear Locked and click OK.
  5. Open the Review tab and click Protect Sheet.
  6. Optionally enter a password and store it safely.
  7. Choose which actions are allowed while protected, then click OK.

Now locked cells are protected, while the cells you unlocked remain editable. Test both a formula cell and an input cell before sharing the file.

Lock the entire sheet

Use this for a finished report or reference sheet where nobody should edit anything.

  1. Open the Review tab.
  2. Click Protect Sheet.
  3. Enter a password if you want to stop others from removing protection easily.
  4. Confirm the password if prompted.
  5. Click OK.

Because cells are locked by default, protecting the sheet without unlocking any cells makes the full sheet read-only.

More control

Unprotect a sheet

Use Review > Unprotect Sheet. If a password was set, you must enter it. Microsoft does not provide a normal recovery path for forgotten sheet-protection passwords.

Protect Sheet versus Protect Workbook

Protect Sheet controls editing inside one worksheet. Protect Workbook controls workbook structure, such as adding, deleting, hiding, renaming, or moving sheet tabs. Use both only when you need both protections.

Allow different users to edit different ranges

In Microsoft 365 business environments, Review > Allow Edit Ranges can assign specific editable areas to specific users while the rest of the sheet stays protected.

Fix cells that still will not edit

The usual cause is unlocking the wrong range or protecting before unlocking. Select the intended cells, confirm Locked is unchecked in Format Cells, then protect the sheet again.

Sources

  • Microsoft Support – Lock or unlock specific areas of a protected worksheet (2025)
  • Microsoft Support – Protect a worksheet (2025)
  • Microsoft Support – Protect a workbook (2024)
Disclosure: This post may contain affiliate links which means I may receive a commission for purchases made through links. I will only recommend products that I have personally used! Learn more on my Private Policy page.
A thoughtful woman reads a newspaper while enjoying coffee at an indoor workspace.

DEALWEEK

SUBSCRIBE AND GET 20% OFF YOUR NEXT ORDER! OFFER ENDS SOON - DON’T MISS OUT!

We don’t spam! Read our privacy policy for more info.

Shopping Cart