Excel has three kinds of protection, and they do very different things. A file password encrypts the workbook so it can't be opened. Sheet protection and workbook structure protection only stop accidental changes; they aren't security.
Table of Contents
Which protection do you need?
| Type | Stops | Strength |
|---|---|---|
| Encrypt with Password | Anyone opening the file | Strong (encrypted). A lost password can't be recovered |
| Protect Sheet | Editing locked cells, formatting, inserting rows | Weak: prevents mistakes, not determined people |
| Protect Workbook (structure) | Adding, deleting, renaming, moving or unhiding sheets | Weak |
1. Password to open the file
- File → Info → Protect Workbook → Encrypt with Password.
- Type the password, then type it again.
- Save the file. Protection only takes effect after saving.



To remove it, open the same option, delete the password, click OK and save. Keep the password somewhere safe: Microsoft can't recover it.
2. Protect a sheet
Review → Protect Sheet, tick what users may still do, set a password (optional) and click OK.



Untick Select locked cells to stop people selecting (and copying) protected cells. To undo: Review → Unprotect Sheet.
3. Protect only some cells
Every cell is locked by default, but locking only matters once the sheet is protected. So unlock the cells people should edit, then protect the sheet:
- Select the input cells → Ctrl + 1 → Protection tab → untick Locked → OK.
- Review → Protect Sheet.

To hide formulas from the formula bar too, tick Hidden on the same tab for the formula cells. To give different people different editable areas, use Review → Allow Edit Ranges.
4. Protect the workbook structure
Review → Protect Workbook, set a password and click OK. Sheets can no longer be inserted, deleted, renamed, moved, hidden or unhidden.


Combine it with very hidden sheets to keep a lookup sheet out of sight.
Things to know
- Sheet and structure passwords can be removed with freely available tools. Don't rely on them for confidential data; encrypt the file instead.
- Protection settings carry over to Excel for the web, but you can't set a file password there.
- To protect many sheets at once, use the protect worksheets macro.