Password protection locks a sheet so others see the data but cannot change it without your password

When you protect a sheet with a password in Excel, you decide which actions stay blocked. Someone can open the file and read what is there, but they cannot edit cells, delete rows, insert columns, or make other changes unless they enter your password. The sheet stays visible — you are not hiding it — but it becomes read-only to anyone without the password.

This is different from password-protecting the entire file. Sheet protection locks down what people can do within a single worksheet, while file protection locks the file itself. You can protect multiple sheets in the same workbook with different passwords, or protect some sheets and leave others open to editing.

Key Takeaways

  • Sheet protection in Excel prevents editing, deleting, and inserting rows or columns, but the data remains visible to anyone who opens the file.
  • You set the password when you protect the sheet, and Excel does not store it anywhere — if you forget it, you cannot remove the protection without recreating the sheet.
  • You can allow specific actions (like sorting or filtering) while blocking others (like changing cell values), giving you fine control over what stays locked.
  • Sheet protection works the same way in Excel for Windows, Excel for Mac, and Excel Online, though the menu path differs slightly.

How to protect a sheet in Excel for Windows

Open the workbook and click the sheet tab at the bottom that you want to protect. Go to the Review tab in the ribbon at the top. Click Protect Sheet — it is in the middle section of the ribbon, next to a padlock icon.

A dialog box opens. Type your password in the first field. Type it again in the second field to confirm. Below that, you see a checklist of actions you want to allow even when the sheet is protected — things like "Select locked cells", "Sort", and "Use AutoFilter". By default, most of these are unchecked, which means they stay blocked. Check only the boxes for actions you want people to be able to do. Click OK.

Excel applies the protection when ready. The sheet tab now shows a small padlock icon. Anyone who tries to edit a cell will see a message saying the sheet is protected and asking for a password.

How to protect a sheet in Excel for Mac

Click the sheet tab you want to protect. Go to the Review tab. Click Protect Sheet in the toolbar. The dialog works the same way as Windows — enter your password twice, choose which actions to allow, and click OK.

If you do not see the Review tab, click the menu icon (three dots) at the far right of the ribbon and look for it there. Some versions of Excel for Mac hide less-used tabs by default.

How to protect a sheet in Excel Online

Excel Online does not offer sheet protection through the interface the way the desktop versions do. If you need to protect a sheet and you are using Excel Online, read the file to your computer, protect it in the desktop version of Excel, and upload it back. The protection will stay in place when you open it in Excel Online, and others will not be able to edit the protected sheet.

Alternatively, you can use Excel Online's Share button to give people view-only access to the entire file, which prevents any editing at all — but this is not the same as sheet protection, since you cannot allow editing on some sheets while blocking it on others.

What happens when someone tries to edit a protected sheet

When a person clicks on a cell in your protected sheet and tries to type, Excel shows a dialog that says "The sheet is protected and some objects on it cannot be modified." It offers a button to enter the password. If they type the wrong password, they get an error message and the sheet stays locked. If they enter the correct password, the protection lifts temporarily — but only for that session. The next time they open the file, the sheet is protected again.

Some actions fail silently. If you blocked sorting and someone tries to sort a column, nothing happens and no message appears. This is by design — it prevents the sheet from looking broken to people who do not know it is protected.

What you cannot do with sheet protection

Sheet protection does not encrypt your data or hide it. Anyone who opens the file can see every cell, every formula, and every value. They just cannot change it without the password. If you need to hide sensitive information, you have to delete it from the sheet or use a different method like hiding columns or rows before you protect the sheet.

Sheet protection also does not prevent someone from copying the data. A person can select all cells, copy them, and paste them into a new sheet or workbook. Protection only stops them from editing the original sheet.

How to unprotect a sheet if you remember the password

Go to the Review tab and click Unprotect Sheet (the button changes name once a sheet is protected). Excel asks for the password. Type it and click OK. The protection is removed and the padlock icon disappears from the sheet tab.

If you forget the password, there is no built-in way to remove the protection. Excel does not store the password anywhere and does not have a recovery option. Your only choice is to recreate the sheet by copying the data to a new sheet and setting it up again. This is why it is important to store your password somewhere safe — a password manager is the best option.

Frequently Asked Questions

Can I protect a sheet but allow people to edit certain cells?

Yes, but it requires an extra step. Before you protect the sheet, select the cells you want people to be able to edit, right-click, choose Format Cells, go to the Protection tab, and uncheck Locked. Then protect the sheet normally. Now only the unlocked cells can be edited; the rest stay locked.

What if I protect a sheet and then forget the password?

Excel does not have a password recovery tool for sheet protection. You cannot remove the protection without the password. Your only option is to copy the data to a new sheet and recreate the formatting and formulas. Store passwords in a password manager to avoid this situation.

Does sheet protection work if someone saves the file as a different format?

It depends on the format. If someone saves as .xlsx (the standard Excel format), the protection stays. If they save as .csv or .txt, the protection is lost because those formats do not support it. The file itself is not locked — only the sheet structure is protected.

Can I protect multiple sheets with the same password?

Yes. Protect each sheet one at a time, entering the same password for each one. You can also use different passwords for different sheets if you want different people to have access to different sheets.

Does sheet protection prevent someone from deleting the entire sheet?

No. Sheet protection only locks the contents of the sheet, not the sheet itself. Someone can right-click the sheet tab and delete the whole sheet without entering a password. If you need to prevent that, you have to protect the workbook structure instead, which is a different setting found in the Review tab under Protect Workbook.