To unlock an Excel spreadsheet, you need to remove the worksheet or workbook protection that restricts editing, or clear the password that encrypts the file. The fastest method is to go to the Review tab, click Unprotect Sheet (or Unprotect Workbook), and enter the password if you know it. If you don’t know the password, your options depend on whether the file is merely protected (editing restricted) or fully encrypted (requires a password to open).
What “Locked” Means in Excel: Sheet vs. Workbook vs. File
Excel has three distinct layers of protection, and people often confuse them. Knowing which one you’re dealing with is the first step.
- Worksheet protection – restricts what users can do in a specific sheet (e.g., editing cells, deleting rows). You can usually still open and view the file. Look for the Review tab; if “Unprotect Sheet” is available, the sheet is protected.
- Workbook protection – locks the structure of the workbook (e.g., preventing users from adding, moving, or deleting sheets). It does not lock the contents of cells. You’ll see “Unprotect Workbook” on the Review tab.
- File encryption – a password is required just to open the file. This is set via File > Info > Protect Workbook > Encrypt with Password. Without the password, you cannot open the file at all.
There’s also a fourth, less common scenario: individual cells are locked, but the sheet itself isn’t protected. In that case, the cells appear locked but you can still edit them because protection is off. To actually prevent editing, the sheet must be protected.
How to Unlock a Sheet or Workbook When You Know the Password
This is the straightforward case. If you or a colleague set the password, here’s how to remove it.
- Open the workbook in Excel (Microsoft 365, Excel 2021, or Excel 2019 on Windows).
- Go to the Review tab on the ribbon.
- Click Unprotect Sheet (if the sheet is protected) or Unprotect Workbook (if the workbook structure is protected).
- Enter the password when prompted, then click OK.
On a Mac, the steps are identical: Review tab > Unprotect Sheet/Workbook. In Excel for the web, you can unprotect a sheet only if you know the password; the option is under Review > Protect > Unprotect Sheet. Note that Excel for the web does not support workbook structure protection, so you’ll need the desktop app for that.
What to Do If You Forgot the Password: Recover or Remove
If you forgot the password, the situation changes dramatically. Microsoft does not provide a built-in password recovery tool. However, there are a few legitimate paths you can try.
- Check if the password is blank – Sometimes people think they set a password but didn’t. Try clicking Unprotect Sheet and leaving the password field empty, then press Enter.
- Use a password recovery tool – Third-party software like Passware, Elcomsoft, or free tools like “Password Recovery” can attempt to brute-force or dictionary-attack the password. These work only on worksheet/workbook protection (not file encryption) and may take time depending on password complexity.
- Unzip the file and edit XML – This is a manual workaround for worksheet/workbook protection only. It does not work for file encryption. Here’s the general idea: change the file extension from .xlsx to .zip, extract the contents, find the sheet XML files, remove the
<sheetProtection>tag, then rezip and rename back to .xlsx. This is technical and requires care.
Important: For file encryption (password to open), there is no known workaround that bypasses the password. The only options are to use a password recovery service (which may not succeed) or to restore an earlier version of the file from backups or version history.
How to Unlock a Protected Sheet Without the Password (XML Method)
This method works for Excel 2007 and later (.xlsx, .xlsm, .xlsb) files where the sheet is protected but the file itself is not encrypted. It’s a bit technical but reliable if you follow carefully.
- Make a backup copy of the file before attempting any modification.
- Rename the file from
filename.xlsxtofilename.zip. - Extract the zip contents to a folder.
- Inside the folder, go to
xl/worksheets/. You’ll see files likesheet1.xml,sheet2.xml, etc. - Open the relevant sheet XML in a text editor (like Notepad). Look for a tag like
<sheetProtection ... />. Delete that entire tag. - Save the file, then re-zip the folder contents (select all files inside the folder, not the folder itself, and compress to a zip).
- Rename the .zip back to .xlsx and open in Excel. The sheet protection should be gone.
This method does not work if the workbook has a password to open (file encryption), because the XML is encrypted. Also, if the workbook has a password to modify (a different option), you may still need that password.
How to Unlock an Excel File That Requires a Password to Open
If you’re prompted for a password when opening the file, that’s file encryption. This is the strongest form of protection, and without the password, there’s no official way to remove it. Microsoft deliberately designed it so that even they cannot recover the password.
Your realistic options are:
- Try common passwords – If you might have used something like “password”, “1234”, or a family name, try those.
- Check for backups or previous versions – Windows File History, OneDrive version history, or your company’s backup system might have an unprotected copy.
- Ask the person who set the password – If it’s a shared file, the original author may still know it.
- Use a specialized recovery service – Some companies offer brute-force recovery for a fee, but success is not guaranteed and can take days or weeks for complex passwords.
There is no legitimate “backdoor” to open an encrypted Excel file. Any tool claiming to bypass it is likely malware or a scam. Always download software only from reputable sources.
Frequently Asked Questions
Can I unlock an Excel spreadsheet without the password?
For sheet or workbook protection, yes – you can use the XML method or a password recovery tool. For file encryption (password to open), no, not without the password or a very expensive recovery service. Microsoft intentionally makes it impossible to recover encrypted files.
Why can’t I edit cells even though the sheet isn’t protected?
This usually happens because the cells are formatted as locked (the default) and the sheet is protected. If the sheet is not protected, locked cells are still editable. If you see “Unprotect Sheet” grayed out, the sheet may be protected via a shared workbook or the workbook might be marked as final. Go to File > Info > Protect Workbook and check if “Mark as Final” is active.
Does the XML method work on .xls files?
No. The XML method only works on the newer Open XML format (.xlsx, .xlsm, .xlsb). Older .xls files use a binary format that cannot be edited as text. For .xls, you’d need a third-party tool or to convert the file to .xlsx first (if you can open it).
Is it legal to unlock a spreadsheet that I didn’t create?
That depends on your relationship to the file. If you have legitimate access (e.g., you’re an employee working on a company file), removing protection may be permitted. If you’re trying to bypass protection on a file you don’t own or have no permission to edit, it could violate copyright or terms of use. Always get permission from the owner.
Can I prevent others from unlocking my sheet?
You can make it harder, but not impossible. The XML method works on any unprotected file. To truly prevent editing, you’d need to encrypt the file with a strong password (File > Info > Protect Workbook > Encrypt with Password). That prevents opening without the password, which is the only reliable way to block access.
Safety and Best Practices
Before you try any unlocking method, always make a backup copy of the file. The XML method, if done incorrectly, can corrupt the file. Also, be cautious with third-party password recovery tools – they often bundle malware. Stick to well-known, reputable software, and scan any downloaded files with antivirus.
If you’re protecting your own sheets, remember that sheet protection is not security – it’s just an editing convenience. If you need to keep data truly confidential, use file encryption and a strong password, and store the password somewhere safe (like a password manager).
Related
- Random Number for Verification Code: How It Works
- Google Sheets DB Function: Depreciation Explained
- Google Sheets Undo Dropdown: Quick Fixes
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Dropdown List: How to Create and Use OneTo create and use a dropdown list in Excel for Microsoft 365 on Windows, select the cells, choose…
- QuickBooks Data Export to Excel: Steps and OptionsTo export QuickBooks data to Excel, open the report or list you need and choose its Excel export…
- How to Insert Images in an Excel TableTo insert an image into an Excel table, select the destination cell, choose Insert > Pictures > Place…
- How to Combine Cells in Excel and Keep TextTo combine the text from cells without losing anything, enter a formula such as =A2&" "&B2 in an…
- Excel Analysis Methods: Tools, Steps, and ExamplesExcel analysis methods include formulas, PivotTables, charts, conditional formatting, Power Query, and statistical tools. Choose a method based…
- Convert ZIP to Excel: What Works and What Does NotYou cannot convert a ZIP archive itself into an Excel workbook: a ZIP is a container, not a…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.