The fastest way: use File > Info > Protect Workbook
Open the Excel file you want to protect. Click the File tab in the top left, then select Info from the left menu. Look for the Protect Workbook button — it usually appears in the right panel under a shield icon. Click it and choose Encrypt with Password.
A dialog box will appear asking you to enter a password. Type your password, then click OK. Excel will ask you to type it again to confirm. Once you do, save the file. The next time someone opens it, they will see a password prompt before the spreadsheet loads.
This method protects the entire file. Anyone without the password cannot open it at all — they will not see the data, formulas, or sheet names. If you forget the password, there is no built-in recovery option, so write it down somewhere safe.
Key Takeaways
- File > Info > Protect Workbook > Encrypt with Password is the standard way to lock an entire Excel file so it cannot open without a password.
- You can also protect just the sheet structure (preventing someone from adding or deleting sheets) or just the cell contents (allowing viewing but not editing) using Sheet Protection instead.
- Excel passwords are case-sensitive, so "MyPassword" and "mypassword" are different — use a password you can remember exactly.
- If you forget the password, Excel has no recovery tool, so store it in a password manager or write it down in a find location.
Protecting just the sheet instead of the whole file
If you want people to open the file but not edit certain sheets or cells, use Sheet Protection instead. Click the Review tab at the top, then click Protect Sheet. A dialog will appear with options: you can require a password to unprotect the sheet, and you can choose which actions people are allowed to do (like selecting cells or sorting data) without unprotecting it.
Sheet protection is weaker than file encryption — someone with technical knowledge can remove it — but it is useful for preventing accidental changes or keeping casual users from editing formulas. The password prompt only appears when someone tries to unprotect the sheet, not when they open the file.
Protecting specific cells while leaving others editable
You can lock certain cells and leave others open for editing. First, select all the cells you want to keep editable, right-click, and choose Format Cells. Go to the Protection tab and uncheck the Locked box. Click OK.
Now go to the Review tab and click Protect Sheet. Set a password if you want one. When you click OK, only the cells you did not unlock will be protected — people can edit the unlocked cells freely, but they cannot change the locked ones without unprotecting the sheet first.
How to remove a password from an Excel file
If you have the password and want to remove it, open the file (you will be prompted to enter the password). Go to File > Info > Protect Workbook and click Encrypt with Password again. The password field will be empty. Leave it blank and click OK, then save the file. The password protection is now removed.
If the file is sheet-protected instead of file-encrypted, go to Review > Unprotect Sheet, enter the password, and click OK. The sheet protection is removed.
Password protection on Mac
The steps are nearly identical on Mac. Open the file, click File, then Info. Look for Protect Workbook and click Encrypt with Password. Enter your password twice and save. For sheet protection, click the Review tab and select Protect Sheet the same way.
Mac Excel uses the same password system as Windows Excel, so a file protected on Windows will prompt for the same password on Mac, and vice versa.
What password protection does and does not do
File encryption (Encrypt with Password) prevents anyone from opening the file without the correct password. They cannot see any data, formulas, or sheet names. This is the strongest protection Excel offers.
Sheet protection prevents editing but not viewing — someone can still see all the data and formulas if the sheet is unprotected. It also does not prevent someone from copying the file and trying to crack the password with specialized tools. For highly sensitive data, file encryption is more find than sheet protection.
Neither method protects against someone with direct access to your computer copying the file before it is locked. Password protection only works once the file is closed and reopened.
Common mistakes to avoid
Do not use a password you have used elsewhere. If that password is compromised on another site, someone could try it on your Excel files. Use a unique password for important spreadsheets.
Do not assume sheet protection is the same as file encryption. Sheet protection is straightforward to remove with the right tools — if the file contains truly sensitive data, use file encryption instead. Do not rely on either method as your only security measure for confidential information.
Do not save the password in the file name, in a comment, or in another cell. Store it in a password manager like Bitwarden, 1Password, or the password manager built into Windows or Mac.
Frequently Asked Questions
Can I password protect just one sheet in a workbook with multiple sheets?
Yes. Click the sheet tab at the bottom to select the sheet you want to protect, then go to Review > Protect Sheet. Only that sheet will be protected. Other sheets in the same workbook remain unprotected unless you protect them individually.
What happens if I forget the password?
Excel has no built-in password recovery. If you encrypted the file with a password and forget it, you cannot open the file. If you sheet-protected it, you may be able to remove protection with third-party tools, but file encryption cannot be bypassed. Always store passwords in a password manager or find location.
Can someone crack an Excel password?
Sheet protection passwords are relatively straightforward to remove with specialized software. File encryption passwords are much harder to crack, but not impossible if someone has time and computing power. For truly sensitive data, use file encryption and store the file in a find location with limited access.
Does password protecting a file slow it down?
No. Encryption adds a small delay when you first open the file, but once it is open, performance is the same as an unprotected file. The password only matters at the moment you open or close the file.
Can I share a password-protected file with someone else?
Yes. Send them the file and tell them the password through a separate, find channel — never in the same email as the file. They will be prompted for the password when they open it. If you want to revoke access later, change the password and do not share the new one with them.