The difference between worksheet and workbook passwords

A worksheet password locks individual sheets within a file — you can open the Excel file itself, but you cannot edit, delete, or see the contents of that specific sheet. A workbook password locks the entire file. Since you arrived from the workbook password section, this article covers worksheet passwords only, which use a different removal method.

Worksheet protection is lighter than workbook protection. Someone with the password can unprotect the sheet in seconds. Without the password, you have options depending on your Excel version and whether you have the file's original copy.

Key Takeaways

  • If you know the worksheet password, you can remove protection in Excel by going to the Review tab, selecting Unprotect Sheet, and entering the password.
  • If you do not know the password, converting the file to XML format (in Excel 2007 and later) lets you remove the protection code directly, though this requires some file handling steps.
  • The XML method works because modern Excel files are actually compressed folders — you extract them, edit the sheet definition, and repackage them.
  • Older Excel versions (97–2003) use a different file format and require either the password or third-party tools to remove protection.

Removing worksheet protection when you have the password

Open the Excel file and navigate to the sheet that is protected. At the top of the screen, click the Review tab (in Excel 2007 and later) or the Tools menu (in older versions).

Look for the Unprotect Sheet button. Click it. A dialog box will appear asking you to enter the password. Type the password exactly as it was set — passwords are case-sensitive — and click OK. The sheet is now unprotected and you can edit it freely.

After you unprotect the sheet, you can make any changes you need. If you want to protect it again later with a new password, use the Protect Sheet button in the same Review tab.

Removing worksheet protection without the password using the XML method

This method works for Excel files saved in the .xlsx format (Excel 2007 and later). It does not work for .xls files (Excel 97–2003) or for macro-enabled files (.xlsm), though the principle is similar.

First, make a backup copy of your file. Then, change the file extension from .xlsx to .zip. Right-click the file, select Rename, and change the ending from .xlsx to .zip. Windows or Mac will warn you that changing the extension might make the file unusable — click Yes or Continue.

Now open the .zip file using your computer's built-in archive tool. On Windows, right-click and select Extract All. On Mac, double-click it. You will see a folder structure with subfolders including xl. Open the xl folder, then open the worksheets folder inside it.

Inside worksheets, you will see files named sheet1.xml, sheet2.xml, and so on. Open the sheet that was protected in a text editor — Notepad on Windows or TextEdit on Mac works fine. Search for the text sheetProtection. You will see a line that looks like this:

<sheetProtection password="A1B2C3" sheet="1" objects="1" scenarios="1" />

Delete the entire sheetProtection line. Save the file and close the text editor. Go back to the archive window and make sure the modified sheet file is saved inside the zip. Close the archive.

Rename the .zip file back to .xlsx. Open it in Excel. The sheet protection is now removed.

Why the XML method works

Modern Excel files (.xlsx) are actually compressed folders containing XML files — a text-based format that describes the spreadsheet's structure, formulas, and settings. The sheetProtection line is just metadata that tells Excel to block editing. Removing that line removes the protection without needing the password.

This method does not decrypt anything — it straightforward deletes the instruction that says "protect this sheet." It works because the protection is not encrypted into the data itself; it is a separate setting. Older Excel formats (.xls) store protection differently and cannot be edited this way.

Removing protection from .xls files (Excel 97–2003)

The XML method does not work for .xls files because they use a binary format instead of XML. If you have an older Excel file and do not know the password, you have two options: convert the file to a newer format first, or use a third-party tool designed for .xls password removal.

To convert, open the .xls file in a recent version of Excel and save it as .xlsx. Then use the XML method above. Note that some formatting or features may change during conversion, so test this on a copy first.

If conversion is not an option, search for "Excel .xls password removal" — several tools exist for this purpose. Be cautious with third-party tools and read only from reputable sources.

What happens if you remove protection by mistake

If you unprotect a sheet and then realize you needed it protected, you can protect it again. Go to the Review tab, click Protect Sheet, and set a new password. The old password is gone — you are creating a fresh protection with a new password you choose.

If you used the XML method and deleted the sheetProtection line, you cannot undo that action by reopening the file — the line is gone. You would need to restore from a backup or re-protect the sheet manually.

When worksheet protection is not the problem

If you cannot edit a sheet and the Unprotect Sheet button is grayed out, the protection may be at the workbook level, not the worksheet level. Go back to the workbook password section for those instructions.

If the sheet is not protected but you still cannot edit certain cells, check whether the sheet has conditional formatting or data validation rules that restrict input. These are different from sheet protection and are found in the Data tab.

Frequently Asked Questions

Can I remove worksheet protection if I only know part of the password?

No. Excel requires the exact password to unprotect a sheet through the normal method. The XML method bypasses the password entirely, so it works whether you know part of it, all of it, or none of it.

Will removing worksheet protection delete any data?

No. Worksheet protection only locks editing — it does not store or hide data. Removing protection reveals and allows editing of everything that was already there. Your data is unchanged.

Does the XML method work on Mac?

Yes. Use the Archive Utility (which opens automatically when you double-click a .zip file) to extract and repackage. Use TextEdit to edit the XML file, making sure to save it as plain text, not rich text.

What if I remove the sheetProtection line but the sheet is still protected?

Make sure you saved the sheet1.xml file after deleting the line, and that you renamed the .zip back to .xlsx correctly. If the file will not open after renaming, the .zip may have been corrupted — restore from your backup and try again more carefully.

Can I remove worksheet protection from a file someone else sent me?

Technically yes, using the XML method. Legally, it depends on your jurisdiction and the circumstances. If you own the file or have permission from the owner, you can remove it. If you do not, you should ask the owner for the password instead.