Password protection at the worksheet level stops casual browsing, not determined attackers

When you password-protect a worksheet in Excel, you're locking down the cells, formulas, and data on that one sheet — but not the file itself. Someone can still open the Excel file and see that a sheet exists; they just can't edit it, unhide hidden rows or columns, or see the formulas you've written. This is useful when you share a workbook with colleagues who shouldn't change certain calculations, or when you want to prevent accidental edits to a template.

The protection is weak by design. Excel's worksheet password is not encryption — it's a lock that Excel will remove if someone enters the correct password, and it can be bypassed with enough technical effort. If you need to keep data truly secret from someone with access to the file, use file-level password protection instead. But if you're protecting against accidental changes or casual tampering, worksheet protection works fine.

Key Takeaways

  • Worksheet protection prevents editing, but the sheet remains visible in the workbook and the file can still be opened without a password.
  • You set worksheet protection through the Review tab in Excel, and you can choose which actions to allow (editing cells, inserting rows, deleting columns, and so on).
  • The password you set is not encrypted and can be removed by someone with technical knowledge, so use file-level protection if secrecy is your goal.
  • When you protect a worksheet, you can still allow certain users to edit specific ranges while locking everything else.

How to protect a worksheet with a password in Excel

Open the workbook and click on the sheet you want to protect. Go to the Review tab at the top of the ribbon. In the Protect group, click Protect Sheet. A dialog box will open asking you to enter a password.

Type your password and click OK. Excel will ask you to re-enter it to confirm. After you confirm, the sheet is locked. Anyone who tries to edit a cell, insert a row, or delete a column will see a message saying the sheet is protected and will be prompted to enter the password.

You don't have to set a password at all — you can leave the password field blank and click OK. The sheet will still be protected, but anyone can unprotect it without entering anything. This is useful if you want to prevent accidental changes but don't need to stop someone who deliberately wants to edit the sheet.

Choosing what users can and cannot do on a protected sheet

Before you click OK in the Protect Sheet dialog, you'll see a list of checkboxes under "Allow all users of this sheet to". These control what actions are allowed even when the sheet is protected. By default, most boxes are unchecked, which means users can't do those things.

The most common options are: Select locked cells (usually checked — users can click on cells but not edit them), Select unlocked cells (usually checked), Format cells, Format columns, Format rows, Insert columns, Insert rows, Delete columns, and Delete rows. If you want users to be able to sort data without editing it, check Sort. If you want them to use AutoFilter, check Use AutoFilter.

Think about what your users actually need to do. If you're protecting a template and only want people to fill in certain cells, leave everything unchecked except Select locked cells and Select unlocked cells. If you're protecting a data sheet but want people to sort and filter, check those boxes too.

Allowing specific ranges to be edited while the rest stays locked

You can protect a sheet but allow certain people to edit specific cells or ranges. This is useful when you want most of the sheet locked but need colleagues to fill in certain fields.

Before you protect the sheet, select the cells you want to remain editable. Right-click and choose Format Cells. Go to the Protection tab and uncheck the box that says Locked. Click OK. Now those cells are marked as unlocked.

Then protect the sheet as normal through the Review tab. When the sheet is protected, users will be able to edit the unlocked cells but not the locked ones. If you set a password, they'll need the password to unprotect the sheet and edit the locked cells.

Unprotecting a worksheet you've locked

If you set a password and now need to unprotect the sheet, go to the Review tab and click Unprotect Sheet. Excel will ask for the password. Enter it and click OK. The sheet is now unprotected and anyone can edit anything.

If you protected the sheet without a password, clicking Unprotect Sheet will remove the protection when ready with no prompt. If you forgot the password, you'll need to use a third-party tool to remove it — Excel itself has no built-in recovery. This is why worksheet passwords are not meant for security; they're meant for preventing accidents.

What worksheet protection does not do

Worksheet protection does not hide the sheet from view. Anyone who opens the workbook will see that the sheet exists and can see all the data on it. If you want to hide a sheet so it doesn't appear in the sheet tabs at the bottom, right-click the sheet tab and choose Hide. You can then protect the sheet as well, but hiding and protecting are separate actions.

Worksheet protection also does not encrypt the file or prevent someone from opening it. The Excel file itself opens normally without a password. Only the individual sheet is locked. If you need the entire file to require a password to open, use file-level protection instead.

When to use worksheet protection instead of file-level protection

Use worksheet protection when you're sharing a workbook with people who need to see and work with most of it, but you want to lock down specific sheets or ranges. For example, you might protect a summary sheet that pulls data from other sheets, or lock a template so people can only fill in certain fields.

Use file-level protection when you need to keep the entire file secret or when you want to prevent someone from opening it at all without a password. File-level protection encrypts the whole file and requires a password to open it. Worksheet protection is faster to set up and more flexible if you need different people to have access to different sheets.

Frequently Asked Questions

Can I protect different sheets with different passwords?

No. Excel does not let you set different passwords for different sheets in the same workbook. You can protect multiple sheets, but they all use the same password. If you need different access levels for different sheets, consider splitting them into separate files.

What happens if someone tries to edit a protected cell?

Excel will show a dialog saying the sheet is protected and ask them to enter the password if one is set. If no password is set, they can click Unprotect Sheet with no prompt. If a password is set and they don't know it, they cannot edit the cell.

Can I protect a sheet but still let people print it?

Yes. In the Protect Sheet dialog, check the box for Print or Print area depending on your Excel version. Users will be able to print the sheet even though they can't edit it.

Does worksheet protection work on Excel Online or Google Sheets?

Excel Online supports worksheet protection, but the feature works differently and may not be as restrictive as desktop Excel. Google Sheets has its own protection system that works at the sheet and range level. If you're sharing files across platforms, test the protection in each one to make sure it behaves as you expect.

If I protect a sheet, can people still see the formulas in the formula bar?

Yes, they can see formulas in the formula bar even on a protected sheet — they just can't edit them. If you want to hide formulas from view, you need to format those cells as hidden and then protect the sheet. The formulas will still be there, but they won't display in the formula bar when someone clicks on the cell.