Password-protecting a worksheet is different from protecting the whole file

When you password-protect a worksheet, you lock down the cells and formulas on that one sheet while leaving other sheets in the same file unprotected. This is useful when you want to share a workbook with colleagues but keep one sheet — say, a salary table or a budget template — from being edited or even viewed. The person opening the file sees all sheets, but they cannot change anything on the protected sheet without the password.

This is separate from file-level protection, which you may have read about already. File protection encrypts the entire workbook so nobody can open it without a password. Worksheet protection is lighter: it prevents editing on a specific sheet, but someone with basic technical knowledge can still remove the protection without the password. If you need serious security, file-level protection is stronger. If you just want to prevent accidental changes or casual tampering, worksheet protection is faster and simpler.

Key Takeaways

  • Worksheet protection prevents editing on one sheet while leaving other sheets in the file unprotected and fully editable.
  • You set a password in the Protect Sheet dialog, which you reach through the Review tab on the ribbon in Excel.
  • You can choose which actions to allow — for example, you can let people sort and filter data but not change cell contents.
  • Worksheet protection is not encryption; someone with technical skill can remove it without the password, so use file-level protection if you need real security.
  • You remove worksheet protection by going back to Review, clicking Unprotect Sheet, and entering the password you set.

How to protect a worksheet in Excel on Windows

Open your workbook and click on the sheet tab at the bottom that you want to protect. Click the Review tab on the ribbon at the top. In the Protect group, click Protect Sheet. A dialog box opens with a list of checkboxes showing what users can and cannot do.

By default, most actions are blocked — users cannot insert rows, delete columns, or change cell contents. If you want to allow certain actions, check the boxes next to them. For example, if you want people to be able to sort and filter the data but not edit cells, leave "Edit objects" and "Edit scenarios" unchecked but check "Sort" and "AutoFilter". At the bottom of the dialog, you see two password fields: one to set the password and one to confirm it. Type a password you will remember. The password is optional — if you leave both fields blank, the sheet is still protected, but anyone can unprotect it by clicking Unprotect Sheet with no password required. Click OK. The sheet is now protected.

How to protect a worksheet in Excel on Mac

Click on the sheet tab you want to protect. Click the Review tab. Click Protect Sheet. The same dialog appears. Set your password in the two fields and choose which actions to allow, then click OK.

On Mac, the steps are identical to Windows. The dialog and options are the same. If you are using an older version of Excel for Mac (2011 or earlier), the Review tab may be in a different location — look under the Tools menu instead — but the Protect Sheet option is still there.

What happens when someone tries to edit a protected sheet

When a user opens your workbook and tries to change a cell on a protected sheet, Excel shows a message saying the sheet is protected and they cannot make that change. If they try to insert a row, delete a column, or perform any other blocked action, they see the same message. The message includes a button to contact the sheet owner — but that button does not do anything unless you have set up a contact method in the file properties, which most people do not do.

If the user knows the password, they can click the Unprotect Sheet button (in the same Review tab) and enter it to unlock the sheet. If they do not know the password, they cannot proceed. This is why a password is important if you want to prevent casual changes but not serious attempts to bypass the protection.

Allowing specific actions on a protected sheet

The Protect Sheet dialog shows a list of actions you can allow even when the sheet is protected. The most common ones are:

  • Select locked cells — allows users to click on cells but not edit them. This is usually checked by default.
  • Sort — allows users to sort data by column.
  • AutoFilter — allows users to use the filter dropdown arrows on headers.
  • Edit objects — allows users to edit shapes, text boxes, and other objects you have inserted.
  • Edit scenarios — allows users to change scenario values if you have set up scenarios in the sheet.

If you want to let users edit only certain cells while keeping others locked, you need to unlock those cells before you protect the sheet. Select the cells you want users to be able to edit, right-click, choose Format Cells, click the Protection tab, and uncheck Locked. Then protect the sheet. Now only the unlocked cells can be edited.

How to unprotect a worksheet

Click on the protected sheet tab. Click the Review tab. Click Unprotect Sheet. If you set a password, a dialog asks you to enter it. Type the password and click OK. The sheet is now unprotected and anyone can edit it again.

If you forgot the password, there is no built-in way to recover it. You cannot unprotect the sheet without it. Some third-party tools claim to remove worksheet protection, but they are unreliable and may damage the file. Your best option is to go back to a backup copy of the file if you have one, or recreate the sheet from scratch.

Common mistakes and how to avoid them

The most common mistake is protecting a sheet without first unlocking the cells you want users to edit. If you protect a sheet with all cells locked (the default), users cannot change anything — not even cells you intended to be editable. Before you protect, select the cells users should be able to edit, unlock them, and then protect the sheet.

Another mistake is setting a password and then forgetting it. Write down the password somewhere safe, or use a password manager. If you lose it, you cannot unprotect the sheet without recreating it. A third mistake is thinking worksheet protection is the same as encryption. It is not. Someone with access to the file can use free tools to remove worksheet protection. If you need to keep data truly secret, use file-level password protection instead, which encrypts the entire workbook.

Frequently Asked Questions

Can I protect multiple sheets at once?

No, you must protect each sheet individually. Click on the first sheet, protect it, then click on the next sheet and protect that one too. If you have many sheets, this takes a few minutes, but there is no faster way to do it in Excel.

What if I protect a sheet but do not set a password?

The sheet is still protected, but anyone can unprotect it by clicking Unprotect Sheet with no password required. This prevents accidental changes but not intentional ones. Always set a password if you want real protection.

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

Yes. In the Protect Sheet dialog, make sure the checkbox next to "Select unlocked cells" is checked. Users can then select and print the data, but they cannot edit it. If you want to prevent printing, you need file-level protection, not worksheet protection.

Does worksheet protection work the same way in Google Sheets?

Google Sheets has a similar feature called "Protect sheets and ranges," but the steps are different. In Google Sheets, click the Data menu, choose "Protect sheets and ranges," and set permissions for who can edit. Google Sheets protection is based on sharing permissions, not passwords.

If I share a protected sheet with someone, do they see the password?

No. When you share the file, the protection stays in place, but the password is not visible to anyone. Only someone who knows the password can unprotect the sheet. The person you share with sees that the sheet is protected but cannot see what the password is.