Excel Sheet Protection: Step-by-Step Guide
In this article
To protect a sheet in Excel, go to the Review tab, click Protect Sheet, choose what users are allowed to do, add an optional password, and click OK. That locks the cells so they cannot be edited, moved, or deleted until you unprotect the sheet. The steps below cover the desktop versions of Excel for Windows and Mac; the exact wording of buttons can differ slightly by version and region.
What You'll Need
- Microsoft Excel for Windows or Mac (the Review tab and Protect Sheet command are not available in Excel for the web in the same form).
- A workbook saved in a modern format such as .xlsx.
- Optional: a password you will remember. Passwords are case-sensitive and cannot be recovered by Microsoft if lost.
Step-by-Step
- Decide what should stay editable. By default every cell in a worksheet is locked, but locking only takes effect once sheet protection is on. If you want people to fill in certain cells, select those cells first, press Ctrl+1 (Cmd+1 on Mac), go to the Protection tab, and clear the Locked checkbox. Then protect the sheet.
- Open the sheet you want to protect. Sheet protection applies to one worksheet at a time. If you need the same rules on several sheets, select them together by holding Ctrl (Cmd on Mac) and clicking their tabs, then protect once.
- Go to the Review tab. In the Protect group, click Protect Sheet. A dialog box opens.
- Choose the allowed actions. Tick the boxes for what users may still do, such as selecting locked cells, selecting unlocked cells, formatting cells, inserting rows, or sorting and filtering. Leave unticked anything you want blocked. Selecting unlocked cells is usually worth keeping on so people can still type in the areas you left open.
- Add a password if you want one. Type it in the password box. This is optional: without a password, anyone can unprotect the sheet via Review > Unprotect Sheet. With a password, they cannot. Passwords are case-sensitive.
- Click OK. If you set a password, Excel asks you to confirm it. Re-type it exactly and click OK.
- Test it. Try typing in a locked cell; Excel should refuse with a message that the cell is protected. Then try an unlocked cell to confirm editing still works.
- Unprotect when you need to edit. Go to Review > Unprotect Sheet and enter the password if prompted. The sheet returns to normal editing.
Common Mistakes
- Forgetting that locking is a two-part process. Clearing the Locked checkbox does nothing until the sheet is protected, and protecting the sheet locks every cell that still has Locked ticked.
- Assuming sheet protection secures the file. Sheet protection stops casual edits, not determined users. For real confidentiality, use File > Info > Protect Workbook > Encrypt with Password, which encrypts the whole file.
- Losing the password. Microsoft cannot recover a lost sheet password. Keep it in a password manager or a safe place.
- Protecting the wrong sheet. Protection is per worksheet. If other tabs remain unprotected, users can still edit them.
- Blocking sorting and filtering by accident. If users need to sort or filter, tick those options in the Protect Sheet dialog; otherwise those commands are disabled.
Tips
- Use the Allow Users to Edit Ranges option (Review > Allow Users to Edit Ranges) to give specific people or passwords edit access to particular ranges while the rest of the sheet stays locked.
- Leave the password blank when you only want to prevent accidental changes; it is easier to remove later.
- Protect the workbook structure too (Review > Protect Workbook) if you want to stop people adding, deleting, renaming, or hiding sheets.
- Keep a copy of the unprotected version before you lock it, so you have a clean master to fall back on.
- If you share the file, tell collaborators which cells are editable so they do not assume the whole sheet is broken.
Troubleshooting
The Protect Sheet button is greyed out. The sheet may already be protected, or the workbook may be shared or marked as final. Check Review > Unprotect Sheet first, and look at the status bar or title bar for a shared-workbook indicator.
Users cannot type in cells you meant to leave open. Those cells are still marked Locked. Unprotect the sheet, select the cells, open Format Cells (Ctrl+1), go to Protection, clear Locked, and protect again.
You forgot the password. There is no official recovery. Restore an earlier unprotected copy from version history or a backup if one exists. Otherwise the protection cannot be removed through normal means, and third-party password-removal tools are not supported by Microsoft.
Sorting or filtering stopped working. Unprotect the sheet, re-protect it, and tick Sort and Use AutoFilter in the dialog.
Protection seems to vanish after saving. Confirm you saved the correct file and that nobody unprotected the sheet before the last save. If the file is stored on a shared drive, check whether a collaborator removed protection.
Frequently Asked Questions
Does protecting a sheet hide the data?
No. Sheet protection prevents editing, not viewing. Anyone who opens the file can still read the contents unless you encrypt the workbook with a password.
Can I protect only some cells?
Yes. Unlock the cells you want editable, then protect the sheet. Every cell that remains Locked becomes read-only.
Is a sheet password the same as a file password?
No. A sheet password controls editing of that worksheet. A file password (File > Info > Protect Workbook > Encrypt with Password) controls who can open the workbook at all.
Can someone bypass sheet protection?
Sheet protection is a convenience and accident-prevention feature, not strong security. Treat it as a guard against mistakes, and use file encryption for sensitive data.
Does protection apply to all sheets at once?
Not by default. Select multiple sheet tabs with Ctrl (Cmd on Mac) before clicking Protect Sheet to apply the same settings to each selected sheet.
What happens to formulas when a sheet is protected?
They keep calculating normally. Protection stops users from editing the formula cells, but the results still update as the underlying data changes.