Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, and 2016. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Unlocking a Worksheet with an Unknown Password.

Unlocking a Worksheet with an Unknown Password

Written by Allen Wyatt (last updated October 13, 2022)
This tip applies to Excel 2007, 2010, 2013, and 2016


Dennis has a travel expense worksheet that he has inherited; it has been passed down within his organization for years. Some of the cells in the worksheet need to be unlocked so that Dennis can correct the outdated formulas they contain. There is the problem, though: The worksheet is locked, and changing the formulas is not permitted because of the protection. Dennis wants to know how he can unprotect the worksheet so he can make the necessary changes.

Depending on the way that the worksheet was protected, you may be able to simply copy the worksheet contents to a new worksheet. Follow these steps:

  1. Create a new, blank worksheet. This can be in the current workbook or in a new workbook.
  2. Display the original worksheet that is protected. The first cell in the worksheet (A1) should be selected.
  3. Press Shift+Ctrl+End. Excel should select all the used cells in the worksheet. (If it doesn't, hold down the Shift key and press the arrow keys until you have selected all the worksheet cells.)
  4. Press Ctrl+C. This copies the selected cells to the Clipboard.
  5. Display the new, blank worksheet you created in step 1. Cell A1 should be selected.
  6. Press Ctrl+V. Excel pastes the contents of the Clipboard to the new worksheet.

The new worksheet can be changed in any way you need. If the old worksheet has links to other worksheets, you may need to copy those separately or establish those links manually. You will also need to adjust row heights and column widths, as necessary, to match the old worksheet.

If your worksheet is saved in the XLSX or XLSM formats, there is something else you might try. These formats are nothing but XML code within a ZIP container, with the filename extension changed to either XLSX or XLSM. This means you can follow these general steps, all within Windows:

  1. Make a copy of the workbook. (You always should do your tinkering on a copy, not the original.)
  2. Change the workbook's filename extension to ZIP. For instance, if the workbook started as MyWorkbookCopy.xlsx, change it to
  3. Double-click the renamed workbook file. It should open up as a compressed folder just fine.
  4. Find the file in the folder named sheetXXX.xml that corresponds to the worksheet you want to unprotect, where XXX is a number representing the "sheet number" of the worksheet within the workbook.
  5. Open the xheetXXX.xml file in a text editor, such as Notepad.
  6. Search for <sheetProtection> (including the angle brackets).
  7. Delete the entire sheetProtection tag. This means that you delete everything between and including <sheetProtection> and </sheetProtection>.
  8. Save the file.
  9. Change the workbook's filename extension from .zip to .xlsx or .xlsm, depending on what it originally was.

At this point, you should be able to open the workbook in Excel and you'll find that the worksheet is no longer protected.

If the above ideas don't work, for some reason, you will need to actually try to crack the worksheet password. There are macros available, on the Internet, that will remove or identify any internal passwords, such as those used to protect a worksheet. If you do a search for "Excel password cracker" or something similar, you will find lots of candidates. The problem is that you'll also get lots of search results for programs that remove workbook passwords—something you don't need for this particular purpose.

Let me save you some trouble, however. There is a perfectly good internal password remover that is available at this page:

The page explains the macro (which is rather long) and even provides a download you can use, if desired.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12199) applies to Microsoft Excel 2007, 2010, 2013, and 2016. You can find a version of this tip for the older menu interface of Excel here: Unlocking a Worksheet with an Unknown Password.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...


Editing a Scenario

Once a scenario is defined and saved, you can later revisit the values you created for the scenario and modify them. ...

Discover More

Locking Callouts to a Graph Location

If you add callouts using the drawing tools in Excel, you may have noticed that they don't always stay where you expect ...

Discover More

Applying a Character Style to Bracketed Text

Word has a powerful Find and Replace capability. It is even more powerful if you turn on its wildcard capability. Here's ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Enabling Editing Erases Worksheet

If you receive a protected worksheet that you want to edit, how do you proceed if you try to unprotect the worksheet and ...

Discover More

Using a Protected Worksheet

If you have a worksheet protected, it may not be immediately evident that it really is protected. This tip explains some ...

Discover More

Inserting and Deleting Rows in a Protected Worksheet

You've protected and saved your worksheet with explicit instructions that you be allowed to insert and delete rows. But ...

Discover More

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 8 + 8?

2019-05-16 12:10:43


i have an old xls file ( 2006 ) that is shared with password
vba is disabled apparently for shared docs so i cannot use the vba code hack

i cannot find anywhere on the internet a way to unprotect a sheet in this document.
is this the ultimate way to protect your sheets in excel without anybody cracking it?

2018-07-29 11:17:28


Trying to combine multiple large password protected worksheets into one worksheet. Tried using data>new file query and combine feature, but all that is combined are the worksheet names that were in the specified folder. How do I get my data to merge? Stumped.

2018-03-14 12:36:05


I just wanted you to know how helpful your website was to me today. I'm pretty good with Excel but suddenly, somehow I had two major problems: (1) Columns A & B were hidden and I couldn't get to unhide and (2) I wasn't able to move to columns on the far right side of my worksheet due to some protection which I did not add! I've been working on this worksheet for 2 days, moving back & forth, up & down, copying/pasting columns in different places, etc., and out of the blue, these two problems cropped up! Thanks to your site, I was able to resolve both problems!

Keep up the good work!

2017-12-19 14:43:04

Claude Shannon

Does not work on Excel 2016. Unzipping the xlsx file fails.

2017-04-05 20:05:34


This is awesome. Zip\opening worksheet by notepad\find and delete protection string works just like chime for xlsx file. Thanks for the tips.

2017-04-05 16:31:40

Laurel Brown

2.Change the workbook's filename extension to ZIP.
3.Double-click the renamed workbook file. It should open up as a compressed folder just fine.
This only seems to work on files without password protection.
The password protected renamed file doesn't open at all, giving this error message:
"Windows cannot open the folder.
The Compressed (zipped) Folder 'C:/...' is invalid."

2017-03-30 16:16:54


re: "You will also need to adjust row heights and column widths, as necessary, to match the old worksheet."
Would not Paste-Special-Column Widths work for matching the column widths to the old worksheet ?

2017-03-27 10:03:32


Good tip, but some worksheets are protected in a way that selecting A1 is not possible. I found the following trick somewhere on the Internet; it worked well for me: type the range in the name box (I prefer A1:XFD1048576 in an .xlsx document in case there are hidden rows/columns--adjust for older formats) and press Control+C; then, press Control+V on a blank .xlsx document. You should have all the functionality less the password protection.

2017-03-27 09:31:11


Opening the xml extension file in Notepad adds a carriage return to every line. When you then save the file and try to open in Excel, it reads as a corrupt sheet and there is no data. So, if someone could tell me what I did wrong, that would be appreciated.

2017-03-27 08:38:13


@Richard Price, I assumed that by "Depending on the way that the worksheet was protected...", the author was referring to the option of allowing/disallowing protected cells to be selected when protecting a worksheet.

2017-03-27 05:27:26

Richard Price

The article says "Depending on the way that the worksheet was protected...", and it does seem that some are not susceptible to the exact above methods. I have a workbook originally created as an .xls (probably in Excel 2003) but since Saved As an .xlsx. One sheet is unprotected and one is protected, including locked cells, with just a few unlocked for data entry. I know the password, but I tried the above steps out of curiosity.

Selecting cells doesn't work at all, so I cannot copy them to a new worksheet. The ZIP file route does work up to a point - the xml file for the protected sheet includes the formulas for locked cells in plain text, so this is a good demonstration of how 'protecting' a worksheet is in no sense like encrypting the file. However, the xml file does not contain simple <sheetProtection>... </sheetProtection> tags; what it has instead is this (with some details replaced by asterisks):

<sheetProtection algorithmName="SHA-512" hashValue="**************************************************************************************==" saltValue="**********************==" spinCount="100000" sheet="1" objects="1" scenarios="1" selectLockedCells="1"/>

Perhaps unsurprisingly, deleting the whole of this tag then trying to open the file in Excel 2016 produces the message "We found a problem with some content in [this file]. Do you want us to try and recover as much as we can?". Saying 'Yes' to this does appear to recover the worksheet, unlocked.

2017-03-25 10:16:18

Don E

Some time ago, I was attempting to verify that Google Sheets retained worksheet protection. I was contemplating allowing wide access to an Excel Workbook, and wanted to be certain that the cells with formulae would be protected. Bottom line, they weren't. Uploading an Excel file to Google Sheets removed password protection.

2017-03-25 05:19:51


Dear Sir,

Please suggest for break Encrypt Password in excel. need your help.

please send me code.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.