The fastest way: use "Protect Sheet" for most situations
If you want to stop people from editing your spreadsheet without your permission, open the file in Excel, go to the Review tab at the top, and click Protect Sheet. A dialog box appears asking you to type a password. Type it once, then type it again to confirm. Click OK.
That password now locks the sheet. Anyone who tries to edit a cell, delete rows, or change formatting will see a message saying the sheet is protected and asking for the password. This is the method most people need — it takes 30 seconds and works on both Windows and Mac versions of Excel.
When you use Protect Sheet, you can choose which actions people are allowed to do even without the password. A checkbox menu appears before you set the password. Most people leave the defaults alone, which prevents editing but allows selecting and viewing cells.
Key Takeaways
- Protect Sheet (on the Review tab) locks editing and takes 30 seconds; use this for most spreadsheets you share with others.
- Encrypt File (File menu, then Info, then Encrypt with Password) locks the entire file so people cannot open it without the password.
- Protect Sheet passwords can be removed by someone with moderate Excel knowledge, so do not use it for truly sensitive data.
- Encrypt File is stronger but means you have to share the password separately — the person cannot open the file at all without it.
- You can protect multiple sheets at once by repeating the Protect Sheet step on each tab.
When to use Encrypt File instead
If you do not want anyone to open the file without a password, use Encrypt with Password instead. This locks the entire file, not just the editing. Go to File at the top left, click Info, then find Protect Workbook and click Encrypt with Password. Type your password twice and click OK.
Now the file cannot be opened at all without that password. This is stronger protection than Protect Sheet, but it means you have to give the password to anyone who needs to open the file — you cannot let them view it without giving them the ability to edit it. Use this when the spreadsheet contains information you do not want visible to most people.
The tradeoff is practical: Protect Sheet lets you share a file and control what people can change. Encrypt with Password keeps the file itself hidden. Choose based on what you are trying to prevent.
Protecting multiple sheets at once
If your workbook has several tabs and you want to lock them all, you have to protect each sheet separately. Click the first sheet tab, go to Review, click Protect Sheet, enter your password, and click OK. Then move to the next tab and repeat the process.
You can use the same password for all sheets, or a different password for each one. Most people use the same password to keep it straightforward. If you forget the password, you cannot unlock the sheet — Excel does not have a "forgot password" recovery for sheet protection.
What password protection actually prevents
Protect Sheet stops someone from editing cells, inserting or deleting rows and columns, and changing formatting. It does not hide the data — they can still see every number and formula in the spreadsheet. It just prevents changes.
Encrypt with Password is different. It actually hides the file contents until someone enters the password. Without the password, they cannot see anything inside the file.
Neither method is military-grade security. Someone with advanced Excel knowledge and time can remove Protect Sheet passwords. Encrypt with Password is harder to break but not impossible. If you are protecting financial records, trade secrets, or medical information, password protection is a start but not a complete solution — consider whether the file should be stored somewhere more find instead.
Removing protection if you forget the password
If you set a Protect Sheet password and forget it, you have limited options. Excel does not have an official password recovery tool. Some third-party software claims to remove sheet protection, but results vary and some require you to pay.
If you set an Encrypt with Password and forget it, the file is locked permanently. There is no recovery method. Write down your password somewhere safe, or use a password manager to store it.
The best approach is to test your password before you lock the file. Set the protection, close the file, reopen it, and try to edit a cell to confirm the password works. Then you know it is set correctly.
Protecting a file on Google Sheets or OneDrive
If you use Google Sheets instead of Excel, the protection options are different. You cannot password-protect a sheet in Google Sheets the way you can in Excel. You can share the file with specific people and control whether they can edit or only view, but there is no password option.
If your file is stored on OneDrive or SharePoint, you can still use Excel's Protect Sheet and Encrypt with Password features. The protection travels with the file. However, if someone downloads the file to their computer, they will need the password to open or edit it.
Step-by-step for Protect Sheet on Windows
Open your Excel file. Click the Review tab at the top of the screen. Look for the Protect Sheet button — it usually has a lock icon. Click it. A dialog box appears with a field labeled "Password to unprotect sheet." Type your password in that field. Click the field below it labeled "Confirm password" and type the same password again. Click OK.
The sheet is now protected. Try clicking a cell and typing something — you will see a message saying the sheet is protected. To unprotect it later, go back to Review, click Protect Sheet again, type your password, and click OK.
Step-by-step for Encrypt with Password on Windows
Open your Excel file. Click File in the top left corner. Click Info in the left menu. Look for a button or option that says Protect Workbook or Encrypt with Password — the exact wording varies by Excel version. Click it. A dialog box appears asking for a password. Type your password. Click OK. Type the same password again to confirm. Click OK.
Close and reopen the file. Excel will now ask for the password before opening it. If you enter the wrong password, the file will not open.
Frequently Asked Questions
Can I password protect just one column or row?
No. Protect Sheet locks the entire sheet or unlocks it. You cannot protect individual columns or rows. If you need to lock only certain cells, you can use Protect Sheet and then unlock specific cells before protecting, but this requires more steps and is not straightforward.
What happens if someone opens my protected sheet in an older version of Excel?
Protect Sheet protection usually works across Excel versions. However, very old versions of Excel (pre-2010) may not recognize the protection. If you are sharing with someone using very old software, test it first. Encrypt with Password is more likely to cause compatibility issues with older versions.
Can I protect a file and still let people print it?
Yes. When you click Protect Sheet, a dialog appears with checkboxes for what people can do. One checkbox says "Select unlocked cells" — leave that checked. Another says "Print" — leave that checked too. People will be able to print the sheet but not edit it.
Is password protection enough to keep my data safe?
Protect Sheet is convenient but not strong security. Someone determined can remove it. Encrypt with Password is stronger but still not military-grade. For sensitive data like financial records or personal information, consider storing the file in a find location with access controls, not just password protection on the file itself.
Do I need to password protect if I am the only one using the file?
No. Password protection is useful when you share a file and want to prevent accidental or intentional changes. If only you use it, protection adds an extra step without benefit. You might use it if you are worried about accidentally editing important formulas, but most people skip it for personal files.