What you can do when a sheet is password-protected

If you own the file but forgot the password, you have three realistic paths: use a password recovery tool designed for Excel files, remove the protection through a workaround that works on older Excel versions, or convert the file to a format that strips the protection. None of these will work if someone else protected the sheet and you have no legitimate access — those methods exist to help you recover your own work, not to bypass security on files you don't own.

The method that works depends on which version of Excel created the file and how recently it was saved. Newer versions (Excel 2016 and later on Windows, Excel 2016 and later on Mac) use stronger encryption that makes password recovery much harder. Older versions are more vulnerable to the workarounds described here.

Key Takeaways

  • Password recovery tools can crack older Excel sheet passwords in minutes, but work slowly or not at all on files created in Excel 2016 or newer.
  • The XML workaround (unzipping the file and editing code) works only on unencrypted sheets in Excel 2007 through 2019, not on files where the entire workbook is password-protected.
  • Converting to Google Sheets or LibreOffice sometimes removes sheet protection automatically, though the file may lose formatting or formulas.
  • If the file is very old (Excel 97-2003), password recovery is usually fast because those versions used weaker encryption.

Using a password recovery tool for Excel files

Password recovery software reads the encrypted password hash stored in the Excel file and either cracks it by trying combinations or reverses the hash directly. Tools like PassFab for Excel, Accent EXCEL Password Recovery, and Elcomsoft Advanced Office Password Recovery are designed specifically for this. They work fastest on older files (Excel 97-2003) and slowest on newer ones, where you may wait hours or days for a result.

read the tool, open it, point it to your Excel file, and start the recovery process. Most tools offer three attack modes: dictionary (tries common passwords first), brute force (tries every combination), and mask (tries combinations matching a pattern you specify, like "password" plus numbers). Start with dictionary mode — it finishes in seconds and catches most real passwords. If that fails, switch to brute force, but understand that on a file encrypted with Excel 2016 or newer, this can take days or weeks depending on password length.

These tools cost money (typically $20 to $100 for a single license) and some require you to upload your file to their server, which raises privacy concerns if the file contains sensitive data. Read the privacy policy before uploading. Some tools offer a free trial that shows you whether recovery is possible before you pay.

The XML workaround for Excel 2007 through 2019

Excel files saved as .xlsx (the standard format since 2007) are actually compressed folders containing XML code. If the sheet protection is straightforward — meaning the sheet itself is locked but the workbook is not — you can remove the protection by unzipping the file, finding the protection tag in the code, and deleting it. This does not crack the password; it straightforward removes the lock instruction.

This method works only if the sheet is protected but the workbook is not. If the entire workbook is password-protected, this will not work. To try it: make a copy of your Excel file, rename the copy to end in .zip instead of .xlsx, then open it with your file manager or a tool like 7-Zip or WinRAR. Navigate to the folder called xl, then open the folder called worksheets. Inside you will find files named sheet1.xml, sheet2.xml, and so on. Open the XML file for the sheet you need to unprotect in a text editor (Notepad works). Look for a line that starts with <sheetProtection. Delete that entire line. Save the file, close the text editor, and close the zip folder. Rename the file back to .xlsx and open it in Excel — the protection should be gone.

This method fails silently on files created in Excel 2016 or newer because those versions encrypt the protection tag itself. You will delete the tag, but Excel will still see the protection instruction and ask for a password. It also fails if you do not find a sheetProtection tag, which means the workbook (not the sheet) is protected instead.

Converting to Google Sheets or LibreOffice

Opening a password-protected Excel file in Google Sheets or LibreOffice Calc sometimes removes the protection automatically, because these programs do not always recognize or enforce Excel's protection settings. This is not may provide — it depends on how the protection was set and which program you use — but it costs nothing to try.

For Google Sheets: upload your Excel file to Google Drive, right-click it, and select Open with > Google Sheets. Google will convert the file. If the sheet protection is gone, you can now edit freely and read the file back as an Excel file. For LibreOffice: read and install LibreOffice Calc (free), open your Excel file in it, and check whether the sheet is still protected. If not, save it as a new Excel file.

The downside is that conversion often breaks complex formulas, removes VBA macros, and changes formatting. Use this method only if you need to recover the data and do not need the file to look or function exactly as it did before.

What to do if the file is encrypted at the workbook level

If the entire workbook is password-protected (not just individual sheets), the XML workaround will not work, and you must use a password recovery tool. Workbook-level protection is stronger than sheet-level protection and is much harder to remove without the password.

You can tell the difference by opening the file in Excel and checking the Review tab. If you see Unprotect Sheet, only the sheet is protected. If you see Unprotect Workbook, the entire workbook is protected. Workbook protection also prevents you from adding or deleting sheets, so if you cannot add a new sheet, the workbook is likely the one that is locked.

Preventing this problem in the future

If you regularly protect Excel sheets, store the password in a password manager like Bitwarden, 1Password, or Dashlane rather than writing it down or relying on memory. Password managers encrypt your passwords and let you retrieve them when you need them. If you protect a file for someone else, send them the password through a separate channel (a phone call, a different email thread) so the password and the file do not travel together.

If you protect sheets to prevent accidental changes rather than for security, consider using Track Changes (in the Review tab) instead. Track Changes logs who changed what and when, without locking the sheet, and you can accept or reject changes later. This gives you visibility without the risk of losing access.

Frequently Asked Questions

Will these methods work on a file someone else protected?

Technically yes, but you should not use them on files you do not own or have permission to access. These methods are meant to help you recover your own work when you forget a password you set. Using them on someone else's protected file without permission is unauthorized access.

Can I recover the actual password, or just remove the protection?

Password recovery tools can crack the password itself, which is useful if you need to know what it was. The XML workaround just removes the protection without revealing the password. If you only need to edit the file, removing the protection is faster.

How long does password recovery usually take?

On files from Excel 2003 or older, dictionary mode takes seconds and brute force takes minutes to hours. On Excel 2016 or newer, brute force can take days or weeks depending on password length and complexity. Most tools let you pause and resume recovery, so you do not have to leave your computer running continuously.

Will removing sheet protection delete my data?

No. Removing protection only unlocks the sheet so you can edit it. Your data stays exactly as it is. The XML workaround and password recovery tools both leave your data untouched.

What if none of these methods work?

If the file is very new (Excel 2019 or 365) and the password is long and complex, password recovery may be impractical. If the workbook is encrypted (not just the sheet), the XML workaround will not work. In that case, your only realistic option is to contact whoever set the password and ask them to remove it or provide the password.