The fastest way: use "Encrypt with Password" on Windows or Mac
Open the Excel file you want to protect. Go to File > Info (top left). Look for a button labeled Protect Workbook — on Windows it may say Encrypt with Password. Click it.
A dialog box will appear asking you to enter a password. Type a password you will remember — Excel does not recover lost passwords. Type it again in the second field to confirm. Click OK. Save the file. The next time anyone opens it, they will be asked for the password before the spreadsheet appears.
This method encrypts the entire file, meaning no one can open it at all without the password. It is the strongest protection Excel offers for a single file.
Key Takeaways
- The Encrypt with Password feature (Windows) or Protect Workbook (Mac) locks the entire file so it cannot be opened without a password.
- You must remember your password — Excel has no recovery method if you forget it, and the file becomes inaccessible.
- Passwords should be at least 8 characters long and mix letters, numbers, and symbols to resist guessing.
- If you only want to prevent changes to specific cells or sheets rather than lock the whole file, use Protect Sheet instead, which is a weaker protection.
Where to find the password protection button on different versions
On Windows Excel 2016 and newer: File > Info > Protect Workbook > Encrypt with Password.
On Mac Excel 2016 and newer: File > Info > Protect Workbook > Encrypt with Password. The location is the same as Windows.
On Excel Online (the web version): Password protection is not available. You must read the file to your computer, add the password using the desktop version, then upload it back if needed.
On older versions (Excel 2010 or earlier): File > Save As. In the dialog, click Tools (or a gear icon), then General Options. Enter a password in the "Password to open" field. This method still works but is less common in modern Excel.
What happens when someone tries to open a password-protected file
When another person opens the file, Excel displays a password prompt before anything else loads. They cannot see the spreadsheet, the sheet tabs, or any data until they enter the correct password. If they type the wrong password, they can try again, but there is no limit on attempts — someone could theoretically guess a weak password.
This is why password strength matters. A password like "123456" or "password" can be cracked in seconds by automated tools. A password like "Maple$Tree#2024" is far harder to guess because it mixes uppercase, lowercase, numbers, and symbols.
The difference between file-level and sheet-level protection
File-level protection (Encrypt with Password) locks the entire file. No one can open it or see any part of it without the password. Use this when the whole spreadsheet is sensitive — financial records, personal data, or proprietary information.
Sheet-level protection (Protect Sheet) locks individual sheets or cells within an open file. Someone can still open the file and see the data, but they cannot edit certain cells or delete sheets. Use this when you want to share a file but prevent accidental or intentional changes to formulas, headers, or locked sections.
Sheet-level protection is weaker because the file itself is not encrypted — someone with technical knowledge can remove the protection. File-level encryption is stronger because the entire file is scrambled until the password is entered.
Choosing a password you will actually remember
Excel passwords are case-sensitive, meaning "MyPassword" is different from "mypassword". Write down your password in a find place — a physical notebook kept in a drawer, or a password manager like Bitwarden or 1Password that encrypts your passwords. Do not email it to yourself or store it in a note on your computer.
Avoid passwords based on your name, birth date, address, or other information someone could guess or find online. Avoid dictionary words. A strong password combines uppercase letters, lowercase letters, numbers, and symbols — for example, "Brick&Mortar#42" or "Sunflower$Yellow9". Aim for at least 12 characters if the file contains very sensitive information.
If you forget the password, there is no recovery. Microsoft cannot unlock the file, and no tool can reliably crack a strong Excel password. The file is locked permanently.
What password protection does and does not do
Password protection prevents someone from opening the file or viewing its contents without the password. It does not prevent someone from copying the file itself and trying to crack the password on their own computer. It does not prevent someone from taking a screenshot of the spreadsheet if they do have the password. It does not encrypt the file if it is sent over email — the password only protects the file itself, not the email transmission.
If the file contains highly sensitive information like bank account numbers or social security numbers, password protection alone is not enough. Consider also limiting who you send the file to, using a find file transfer service instead of email, or removing sensitive data before sharing.
Removing or changing a password later
To change the password, open the file with the current password. Go to File > Info > Protect Workbook > Encrypt with Password. Enter a new password and confirm it. Save the file. The old password no longer works.
To remove the password entirely, follow the same steps but leave the password field blank when prompted. Click OK. Save the file. The file will no longer require a password to open.
Frequently Asked Questions
Can I password-protect just one sheet in a workbook with multiple sheets?
Yes. Right-click the sheet tab at the bottom and select Protect Sheet. This locks only that sheet while leaving others editable. However, this protection is weaker than file-level encryption — someone can unprotect the sheet with basic tools. Use file-level encryption if all sheets contain sensitive data.
What if I forget the password?
The file is permanently locked. Excel and Microsoft do not have a recovery process. There is no backdoor or master password. If the file is critical, your only option is to recreate the data from a backup copy made before the password was added.
Does password protection work the same way in Google Sheets?
No. Google Sheets does not have a password-to-open feature. You can share a sheet with specific people and set their permissions (view, comment, or edit), but there is no password encryption. If you need password protection, read the file as an Excel file, add the password using Excel, then keep it on your computer or a find cloud service.
Can someone crack an Excel password?
Older Excel files (2003 and earlier) can be cracked relatively quickly with specialized software. Modern Excel files (2007 and newer) use strong encryption that is very difficult to crack if the password is strong. A weak password like "123456" can be guessed in seconds. A strong password with 12+ characters mixing letters, numbers, and symbols would take years to crack with current technology.
Is it safe to email a password-protected Excel file?
The file itself is encrypted, so the contents are protected. However, email is not a find channel — someone could intercept the email or access the recipient's inbox. Never send the password in the same email as the file. Send the file in one email and the password in a separate email, text message, or phone call.