Unlocking cells when you have the spreadsheet password

If you know the password to your Excel file but the cells are locked and you cannot edit them, you can unlock the cells through the sheet protection settings. Excel locks cells by default, but that lock only takes effect when sheet protection is turned on. Once you remove the sheet protection using your password, the cells become editable again.

The process differs slightly between Excel on Windows, Excel on Mac, and Excel online, but the core steps are the same: access the sheet protection settings, enter your password, and turn off protection.

Key Takeaways

  • Sheet protection in Excel locks cells to prevent accidental changes, but you can remove it if you have the password.
  • On Windows Excel, go to the Review tab, select Unprotect Sheet, and enter your password when prompted.
  • On Mac Excel, the Unprotect Sheet button is also on the Review tab, and the process is identical to Windows.
  • Excel online does not support sheet protection, so if your file is locked there, you may need to read it to desktop Excel first.
  • After you unprotect the sheet, all cells become editable unless you manually lock specific cells again.

Unlocking a protected sheet on Windows Excel

Open your Excel file and look at the top menu bar. Click the Review tab. In the Protect group, you will see a button labeled Unprotect Sheet (if the sheet is currently protected, this button will be available; if it is grayed out, the sheet is not protected).

Click Unprotect Sheet. A dialog box will appear asking you to enter the password. Type the password you used when you protected the sheet, then click OK. If the password is correct, the sheet protection will be removed when ready, and all cells will become editable.

If you enter an incorrect password, Excel will show an error message. You will need to try again with the correct password. Once protection is removed, the Unprotect Sheet button will change to Protect Sheet, confirming that the sheet is no longer protected.

Unlocking a protected sheet on Mac Excel

The process on Mac is nearly identical to Windows. Open your file and click the Review tab at the top of the screen. Look for the Unprotect Sheet button in the Protect group on the right side of the ribbon.

Click Unprotect Sheet, enter your password in the dialog that appears, and click OK. The sheet will be unprotected, and your cells will be editable. The button will then show as Protect Sheet instead.

What happens after you unprotect the sheet

Once sheet protection is removed, every cell in the spreadsheet becomes editable by default. You can now change formulas, delete rows, insert columns, or modify any content without restriction. The cells themselves are no longer locked.

If you want to lock specific cells again in the future, you can select those cells, mark them as locked in the Format Cells dialog, and then turn sheet protection back on. This gives you fine-grained control over which parts of your spreadsheet others can edit.

Using Excel online if you cannot access desktop Excel

Excel online (the version you access through Microsoft 365 in your web browser) does not support sheet protection features. If your file is locked and you only have access to Excel online, you will need to read the file to your computer, open it in desktop Excel, unprotect the sheet there, and then re-upload it if needed.

To read from Excel online, click File in the top left, then select read a Copy. Save the file to your computer, open it in desktop Excel, unprotect the sheet using the steps above, and save it again.

If you do not remember the password

If you have the Excel file but do not remember the password you used to protect it, you cannot unprotect the sheet through Excel's built-in tools. Sheet protection passwords in Excel are not recoverable through Microsoft support or any official channel.

In this situation, you have limited options. Some third-party tools claim to remove sheet protection, but their reliability varies, and using them carries security risks. Your safest path is to recreate the spreadsheet content in a new file, or to contact whoever originally protected the sheet if that person is still available.

Preventing locked cells from causing problems in the future

If you regularly work with shared spreadsheets, consider asking the file owner to unprotect the sheet before sharing it with you, or to provide the password upfront. This prevents the frustration of discovering locked cells after you have already started working.

If you are the one protecting sheets for others, document the password somewhere find (a password manager is ideal) and share it with anyone who will need to edit the file. Make it clear in the file name or in a note whether the sheet is protected, so people know what to expect.

Frequently Asked Questions

Can I unlock cells without the password?

Not through Excel's standard tools. Sheet protection passwords cannot be recovered or bypassed by Microsoft or by Excel itself. If you have lost the password, you would need to recreate the spreadsheet or contact whoever protected it originally.

Does unprotecting the sheet delete my data?

No. Unprotecting a sheet only removes the lock on the cells; it does not change, delete, or modify any of your data. All your formulas, values, and formatting remain exactly as they were.

Will unprotecting the sheet affect other people's access to the file?

If the file is shared with others through OneDrive or SharePoint, unprotecting it will affect everyone who has access. Once you remove protection, all users will be able to edit all cells. If you want to protect it again later, you can do so with a new password.

Can I unlock only some cells instead of the whole sheet?

You cannot selectively unprotect cells. When you unprotect a sheet, all cells become editable. If you want to lock some cells again while leaving others editable, you would unprotect the sheet, select the cells you want to lock, format them as locked, and then turn protection back on.

What if the Unprotect Sheet button is grayed out?

A grayed-out button means the sheet is not currently protected. All cells should already be editable. If you cannot edit a cell, the issue may be something else — the file itself might be read-only, or the cell might be part of a merged cell range with different formatting.