How to Unprotect an Excel Worksheet (With or Without Password)
Locked out of your own spreadsheet? Learn how to remove worksheet and workbook protection in Excel, with or without the password, safely.

In this article
The short answer: what it actually takes to unprotect a sheet
Excel has more than one kind of protection, and each one comes off differently. For the most common case — a single sheet where the cells are locked so nobody can type in them — the fix takes seconds if you know the password: open the workbook, go to the Review tab and click Unprotect Sheet. Enter the password and the sheet is editable again.
If you don't have the password, worksheet protection can still be removed from an .xlsx or .xlsm file, because it is only a setting written into the file, not real encryption. You rename a copy of the file to .zip, delete one element from that sheet's XML, and rename it back. Not a single value, formula or format in the workbook changes.
What you cannot do without the password is open a file that is encrypted (it asks for a password before any content appears), or strip a sensitivity label or Rights Management permission. Those are enforced by encryption and by a server, not by a flag inside the file.
First, work out which protection you're dealing with
Before you delete anything, spend thirty seconds identifying what is protected, because the fix is different for each:
- Try to type in a cell. If Excel refuses and mentions a protected sheet, that's worksheet protection.
- Look at the Review tab. If Unprotect Sheet is showing, the active sheet is protected. If Protect Workbook shows Unprotect Workbook, the workbook's structure is locked.
- Watch what happens when you open the file. A password box before any content appears means the file is encrypted. A yellow restricted-access or sensitivity label bar means rights management.
- Try to add, delete or rename a sheet. If those commands are greyed out, structure protection is on.
Four different kinds of Excel protection and whether they come off without a password
| Protection type | What it stops | Removable without a password | Where it lives |
|---|---|---|---|
| Worksheet protection | Typing in locked cells, formatting, inserting or deleting rows | Yes, by deleting one element from the sheet XML | The sheetProtection element in xl/worksheets/sheetN.xml |
| Workbook structure | Adding, deleting, hiding, moving or renaming sheets | Yes, by deleting one element from the workbook XML | The workbookProtection element in xl/workbook.xml |
| Password to open | Opening the file at all | No — this is real AES encryption | The file container itself, not the worksheets |
| Sensitivity label / Rights Management | Copying, printing, forwarding, editing by unauthorised people | No — permissions are checked against a service | The label and the rights server, not the sheet XML |
What you need before you start
- The file itself, downloaded to your own computer. If you're looking at a preview in mail, Teams or SharePoint, download a copy first — the preview won't let you save changes.
- The Excel desktop app if you know the password, for the two-click route.
- The password, exactly as typed. Excel passwords are case-sensitive and there is no way to display them.
- An archive tool that can add and replace a single file inside a zip without unpacking everything, for the no-password route.
- A backup copy kept somewhere else, in case the edit goes wrong.
- Editing rights. Removing protection from a file you don't own or aren't authorised to change may breach your company policy or a contract.
- Windows ribbon path
- Review > Unprotect Sheet (Changes group)
- Mac ribbon path
- Review > Unprotect Sheet; Excel 2011 and older: Tools menu
- Workbook structure path
- Review > Protect Workbook > Unprotect Workbook
- File types you can edit as a zip
- .xlsx, .xlsm, .xltx, .xltm
- Element to delete for a sheet
- <sheetProtection ... /> inside xl/worksheets/sheetN.xml
- Element to delete for structure
- <workbookProtection ... /> inside xl/workbook.xml
- What protection is not
- Encryption — it doesn't hide data or stop the file being opened
Unprotect a worksheet when you know the password
-
Open the workbook on the sheet you need
Use the Excel desktop app and click the tab of the protected sheet. Protection is set per sheet, so a workbook with five protected tabs needs the password five times.
-
Go to Review > Unprotect Sheet
On Windows it sits in the Changes group of the Review tab. On Mac it's on the Review tab as well; in Excel 2011 and earlier look under the Tools menu. If the button is greyed out, see the troubleshooting section below.
-
Type the password exactly
It is case-sensitive and there is no hint or reveal option. Pressing Cancel leaves everything protected — nothing is lost, so nothing is risked by trying again.
-
Confirm the cells are editable
Click a cell that refused your typing before and type a few characters, then press Esc. If it still won't accept input, the sheet is still protected or a sensitivity label is enforcing read-only access.
-
Save and repeat
Press Ctrl+S (Cmd+S on Mac) and work through any other protected sheets. Re-protect the file before you pass it on, so the next person doesn't inherit an open workbook.
Unprotect a worksheet without the password (.xlsx and .xlsm)
-
Make a copy of the file
Work on the copy only and leave the original untouched. If anything goes wrong you still have a working file.
-
Close the file in Excel
An open file is locked, and your edit to the archive will be overwritten the moment Excel saves.
-
Turn the copy into a zip
Change the extension from .xlsx to .zip. If you can't see extensions, switch them on first: in File Explorer, View > Show > File name extensions; in Finder, Get Info and rename the extension. Accept the warning about changing the extension.
-
Find the correct sheet file
Open the archive and go to xl/worksheets/. Sheet file names don't always match tab order: open xl/workbook.xml, find the sheet by its name attribute to get its r:id, then look up that id in xl/_rels/workbook.xml.rels to see which sheetN.xml it maps to.
-
Delete the protection element
Inside that sheet file, find the self-closing element starting with <sheetProtection — it holds the password hash and the locked-format flags. Delete that whole element and nothing else, leaving the rest of the XML byte-for-byte identical. Save the file back into the archive, replacing the existing entry rather than adding a second copy.
-
Rename it back to .xlsx
Change the extension from .zip back to .xlsx. Make sure [Content_Types].xml still sits at the very top level of the archive and not inside an extra folder — that one mistake causes almost every 'file is corrupt' error.
-
Open it in Excel and check
Excel should open the workbook without a repair prompt, and the previously locked cells should accept typing. Keep the backup copy until you've confirmed your data and formulas are intact.
Removing workbook structure protection
If adding, deleting, renaming or hiding sheets is greyed out, you're dealing with structure protection rather than a protected sheet. It lives in a different file inside the package, so the fix is the same idea with a different target.
-
Copy the file and rename it to .zip
Close it in Excel first, then work on the copy, as above.
-
Edit xl/workbook.xml
Open the workbook file at the root of the archive and find the element beginning with <workbookProtection. Delete that entire element, which is usually a single self-closing line carrying lockStructure and the password hash.
-
Save, rename back and reopen
Replace the entry inside the archive, change the extension back to .xlsx and open it. The sheet commands on the Review and Home tabs should now be available.
Clearing protection from many sheets at once with a macro
-
Open the Visual Basic Editor
Press Alt+F11 in the desktop app (on Mac, use the Developer tab > Visual Basic). This works on a normal workbook; it doesn't need the Developer tab enabled on Windows.
-
Insert a module and a short routine
Choose Insert > Module and add a routine along these lines, one statement per line:
- Sub UnprotectAll()
- Dim ws As Worksheet
- For Each ws In ThisWorkbook.Worksheets
- ws.Unprotect Password:="your password"
- Next ws
- End Sub
-
Run it and save
Press F5, close the editor and save. If the workbook contains macros, save it as .xlsm so the code isn't stripped.
What commonly goes wrong, and the fix
- Unprotect Sheet is greyed out even though you have the password. The file is probably open read-only (from mail, a Teams preview or Protected View), or the workbook's structure is protected, or a sensitivity label is limiting you. Save a local copy, close it, reopen it from disk and try again.
- You edited the XML and Excel says the file is corrupt. The archive was rebuilt with an extra top-level folder, or [Content_Types].xml was replaced rather than updated in place. Restore from the backup and repeat the edit by replacing the single entry inside the archive.
- The password prompt keeps rejecting a password you're sure about. Check Caps Lock and your keyboard layout, and remember that the password to open a file is a completely different password from the one on a sheet.
- The sheet is still protected after the edit. You edited a different sheetN.xml than the tab you're looking at, or Excel was still holding the old copy in memory. Close Excel fully and reopen the edited file.
- It's a legacy .xls file. A .xls is a binary format, not a zip, so there's nothing to unpack. Open it in Excel and use Save As to create an .xlsx copy — sheet protection doesn't stop you opening or re-saving — then apply the XML steps to the copy.
- Cells unlock but formulas look wrong. Unprotecting doesn't recalculate anything; if values look stale, press F9 or check that calculation is set to Automatic under Formulas > Calculation Options.
Frequently asked questions
Does unprotecting a sheet change my data, formulas or formatting?
No. You're removing a flag, not rewriting the workbook. Values, formulas, formats, comments and named ranges all stay exactly as they were — but once the cells are unlocked, an accidental keystroke can overwrite an input that formulas depend on.
Can I unprotect an Excel worksheet on a phone or in the browser?
The no-password method needs a desktop, because you have to unpack the file. Excel for the web does show Unprotect Sheet on the Review tab when you have editing rights and the password. Mobile apps are the weakest option here — plan to finish the job on a computer.
Why is Unprotect Sheet greyed out when I have the password?
Most often the file is open read-only from an email attachment or Teams preview, so Excel won't let you change anything. Download it, close it and reopen it from disk. If it's still greyed out, check whether the workbook's structure is protected or a sensitivity label is limiting your rights.
Does the zip method work on a protected .xls file?
Not directly: .xls is a binary format with no XML inside. Open it in Excel, choose Save As and pick .xlsx, then apply the method to that new copy. Protection doesn't prevent you from opening or re-saving the file.
Will removing protection let the file's owner know?
No. Deleting the protection element leaves no trace in the file, and Excel doesn't report it. That's exactly why unprotecting someone else's file without permission is a bad idea — and often a policy or contract breach.


