How to Unprotect an Excel File: Step-by-Step
In this article
To unprotect an Excel file, open it, click the button in the yellow banner or go to Review > Unprotect Sheet (or Unprotect Workbook), and type the password you set. If you never set a password, the sheet simply unlocks. This is different from an encrypted file, which cannot be opened at all without its password. Here is how each case works, in the desktop app on Windows and Mac and in Excel for the web.
What You'll Need
- The file itself, saved to your computer or in OneDrive/SharePoint so you can open it in Excel.
- The password, if one was set. There is no official bypass for a forgotten password.
- Excel installed on the desktop (recommended) or access to Excel in the browser for unprotected sheets.
- A copy of the file if you plan to make structural changes, so you can roll back.
Excel uses three different kinds of protection, and they behave very differently. Knowing which one you are facing saves time:
- Encrypt with Password - the whole file is locked and cannot be opened without the password. This is what you remove in File > Info.
- Protect Sheet / Protect Workbook - the file opens, but cells or structure are locked. Removed from the Review tab.
- Read-only recommended - a suggestion rather than a lock; it is a checkbox in the save dialog.
Exact button labels and banner wording can differ a little by version, device and region, so look for the closest match if what you see does not line up word for word.
Step-by-Step
Case 1: The file is locked to edit a sheet
- Open the file in Excel for Windows or Mac. A yellow or red banner across the top often says the sheet is protected, with an Unprotect Sheet button on the right.
- Click Unprotect Sheet in that banner. If no banner appears, go to the Review tab and click Unprotect Sheet.
- Type the password in the dialog and click OK. If the workbook was never given a password, the sheet unlocks immediately with no prompt.
- Repeat for other sheets. Protection is set per sheet, so a workbook with five tabs may need five unlocks. Right-click a tab and check the Protect Sheet option on each one.
- Save with Ctrl+S (Cmd+S on Mac). The file stays unlocked the next time you open it.
Case 2: The workbook structure is locked
- Open the file and go to Review.
- Click Protect Workbook. If you see an Unprotect Workbook button instead, the workbook is currently locked.
- Enter the password and click OK. Structure protection controls adding, deleting, hiding and renaming tabs, so this unlocks tab management without touching the cell contents.
- Note that sheet protection and workbook protection are separate locks. You may need to do both.
Case 3: The file asks for a password just to open
- Open the file in Excel. At the password prompt, type the open password and click OK. This unlocks the file for that session only.
- To remove the password permanently, go to File > Info.
- Click Protect Workbook and choose Encrypt with Password.
- Delete the dots in the password box, leaving it blank, and click OK. Excel confirms the password has been removed.
- Save the file. From now on it opens without a prompt.
Case 4: You are using Excel for the web
- Open the workbook in the browser. Sheet protection can usually be removed here from the Review-related options or from the banner prompt, provided you know the password.
- If the file is encrypted and asks for a password, you need it to open the file at all - the browser version cannot bypass it.
- If the web version will not let you unprotect something, open the file in the desktop app. Desktop Excel exposes the full set of protection options that the web version may hide.
Common Mistakes
- Confusing encryption with sheet protection. People try to unprotect a sheet when the file actually asks for an open password. The Review tab will not help; you need File > Info.
- Unprotecting one sheet and assuming the rest are done. Each sheet and the workbook structure are independent locks.
- Forgetting to save. Protection returns the next time the file opens if you close without saving.
- Trying to unprotect a file you do not own. Only the file's owner or someone they shared the password with should remove protection; getting around the password on someone else's file is not something to attempt.
- Leaving the password blank when sharing. A file that was protected for a reason, such as a shared budget template, should be re-protected before it goes out again.
Tips
- Store passwords in a password manager rather than a sticky note or the file name.
- Before sending a workbook out, use Review > Protect Sheet again and set which cells remain unlocked. Locked cells that need input can be marked as unlocked in Format Cells > Protection first.
- If a whole workbook is protected out of habit, check whether the original protection is even needed - many files are locked by accident when someone clicks the button while exploring.
- Keep a copy of the unlocked file before you make structural changes such as deleting tabs, so an accidental click does not cost work.
- Consider sharing a read-only copy via OneDrive when the goal is simply to stop edits. It avoids password prompts entirely.
Troubleshooting
Nothing happens when you click Unprotect Sheet. The sheet may already be unprotected, or the file may be open in Protected View from an email attachment. Click Enable Editing first, then try again.
The password is rejected. Passwords are case-sensitive and spaces count. Check Caps Lock and try typing it in a text field first so you can see it.
You do not know the password. Excel has no official recovery option. Try any password you may have set, ask the person who shared the file, or restore an earlier unlocked copy from OneDrive version history or a backup. There is no legitimate way to crack the password yourself, so treat recovery as a search for a known password or an older copy rather than a bypass.
The prompt keeps coming back after saving. You may be unprotecting the sheet but re-saving to a copy that still has an old encrypted version, or the file is synced and the change has not uploaded yet. Save, wait for the sync indicator to settle, and reopen the file to confirm.
The Review tab is greyed out. The file may be read-only, or opened from a location Excel treats as untrusted. Copy it to your Documents folder, close and reopen.
Frequently Asked Questions
Does unprotecting an Excel file require the password?
Yes, if a password was set. If the sheet was protected without a password, the Unprotect Sheet button unlocks it with no prompt.
Can I open an encrypted Excel file without the password?
No. Encryption is applied to the file itself, and there is no official way around it. You would need the password or an unprotected copy.
Will unprotecting remove cell formatting or data?
No. Removing protection only lifts the lock. Nothing in the sheet is deleted.
Why can I still not edit some cells after unprotecting?
Those cells are probably locked individually in Format Cells > Protection, or the workbook structure is still protected. Check Review > Protect Workbook as well.
Does unprotecting a file make it editable for everyone I share it with?
Yes, once saved without protection, anyone who opens that copy can edit it. Re-protect the file before sharing if that is a problem.
Is unprotecting the same as changing a password?
Not quite. You can replace the password in File > Info > Encrypt with Password by typing a new one without deleting it first, which keeps the file encrypted but updates the credential.