How to Protect an Excel Sheet: Step-by-Step Guide
In this article
To protect an Excel sheet, open the workbook, go to the Review tab, and use the Protect Sheet button to restrict editing. For workbook-level protection, use Protect Workbook. You can also mark the file as final or encrypt it with a password via File > Info. This guide walks you through each method, explains what they actually prevent, and covers the mistakes that make protection fail silently.
What You'll Need
- Microsoft Excel on Windows or Mac (the steps below use the desktop app; the web version has fewer protection options).
- The workbook you want to protect, saved in .xlsx format.
- A password you will remember, if you choose to add one. Excel cannot recover lost passwords.
Step-by-Step
- Open the workbook and click the sheet tab you want to protect. Sheet protection applies to one sheet at a time; you must repeat it for each sheet.
- Unlock any cells you want users to edit. By default, every cell is locked, but the lock only takes effect after you protect the sheet. Select the cells that should remain editable, right-click, choose Format Cells, go to the Protection tab, and clear the Locked checkbox. Click OK.
- Go to the Review tab on the ribbon. In the Protect group, click Protect Sheet. (On Mac, the Review tab also contains this button.)
- Set the options. In the Protect Sheet dialog, leave “Protect worksheet and contents of locked cells” checked. Optionally enter a password. Under “Allow all users of this worksheet to,” tick the actions you want to permit, such as selecting locked cells, formatting columns, or sorting. Click OK.
- Confirm the password if you set one, then click OK again. The sheet is now protected.
- Repeat for other sheets by switching tabs and following steps 2–5 again. Protection is per sheet, not global.
- Protect the workbook structure (optional). If you want to prevent others from adding, deleting, renaming, or hiding sheets, go to Review > Protect Workbook. Choose “Structure” (and “Windows” if you want to lock the window layout), enter a password if desired, and click OK. This does not stop editing of cell contents; it only locks the sheet arrangement.
- Encrypt the file with a password (optional, stronger). Go to File > Info > Protect Workbook > Encrypt with Password. Enter a password and click OK. This prevents anyone from opening the file without the password. Note that encryption is separate from sheet protection and cannot be removed without the password.
- Save the workbook. Protection settings are saved with the file. Close and reopen it to verify that the restrictions work as intended.
Menu labels can differ slightly by Excel version, device, or region. If you cannot find a button, look under the Review tab first; on some versions, Protect Sheet is also available by right-clicking the sheet tab.
Common Mistakes
- Forgetting to unlock editable cells. If you protect the sheet without first unlocking input cells, users cannot type anywhere. Always unlock the cells meant for data entry before applying protection.
- Assuming sheet protection secures the file. Sheet protection stops accidental edits, but it is not encryption. Anyone can open the file and, with effort, remove sheet protection. Use Encrypt with Password if confidentiality matters.
- Protecting only one sheet. Protection is per sheet. If you have multiple sheets, each must be protected individually.
- Losing the password. Excel does not offer a password recovery feature. Store passwords in a safe place; if lost, you may lose access to the protected content.
- Confusing Protect Workbook with Protect Sheet. Protect Workbook locks the structure (adding/removing sheets), not the cell contents. Use both if you need full control.
- Overlooking the web version. Excel for the web has limited protection options; some features like workbook structure protection may not be available. Use the desktop app for full control.
Tips
- Test protection on a copy of the file before applying it to your original, so you can adjust permissions without risk.
- Use the “Allow users to” options to let people sort, filter, or format without unprotecting the sheet.
- For shared workbooks, consider using Excel’s built-in sharing features (Review > Share Workbook) alongside protection to track changes.
- If you need to make changes later, you can unprotect the sheet via Review > Unprotect Sheet (password required if set).
- Remember that protection is not a substitute for proper access controls; store sensitive files in secure locations.
Troubleshooting
- Cannot edit cells after protection: The cells are likely locked. Unprotect the sheet, unlock the intended cells via Format Cells > Protection, then re-protect.
- Protect Sheet button is greyed out: The workbook may be shared or the sheet may already be protected. Check the Review tab for Unprotect Sheet; if shared, stop sharing first.
- Password not accepted: Check caps lock and keyboard layout. If forgotten, there is no official recovery; you may need to restore from a backup.
- Protection does not prevent deletion of sheets: That requires Protect Workbook (structure). Apply it separately.
- File opens without password prompt: Encryption may not have been applied. Re-check File > Info > Protect Workbook > Encrypt with Password.
Frequently Asked Questions
Can I protect only part of a sheet?
Yes. Unlock the cells you want editable, then protect the sheet. Locked cells become read-only; unlocked cells remain editable.
Does sheet protection work in Excel for the web?
Excel for the web supports viewing and some editing of protected sheets, but full protection options are only available in the desktop app. Use the desktop version to apply or modify protection.
What is the difference between Protect Sheet and Protect Workbook?
Protect Sheet restricts editing of cell contents and certain actions on a single sheet. Protect Workbook restricts structural changes like adding, deleting, or renaming sheets across the entire workbook.
Can I remove protection without the password?
No, not through normal Excel features. If you forget the password, you cannot unprotect the sheet or workbook. Always keep a record of passwords.
Is sheet protection the same as file encryption?
No. Sheet protection prevents accidental or unauthorized edits but does not encrypt the file. Encryption (via File > Info > Encrypt with Password) prevents opening the file without a password.
Will protection prevent others from copying data?
No. Protection does not stop copying of cell contents. If you need to prevent copying, consider converting the sheet to a PDF or using other security measures.