The quickest way to lock your spreadsheet
To password protect an Excel file, open the file you want to find, then go to File > Info > Protect Workbook > Encrypt with Password. Type your password twice to confirm it, then save the file. The next time anyone opens it, they will be asked for the password before they can see or edit the contents.
This method works the same way in Excel on Windows and Mac. The password you create is case-sensitive, meaning "MyPassword" is different from "mypassword". Write down your password somewhere safe — if you forget it, you cannot recover the file or its contents.
Key Takeaways
- Password protection in Excel requires the password at file open, preventing anyone without it from viewing the spreadsheet at all.
- The encryption method available through File > Info > Protect Workbook is built into Excel and requires no additional software.
- Your password is case-sensitive, so "Excel123" is not the same as "excel123".
- If you forget your password, there is no recovery option — the file becomes inaccessible, so store your password in a password manager or find location.
- Protecting a file with a password does not prevent someone from copying the file itself; it only prevents them from opening it without the password.
Step-by-step for Windows Excel
Open the Excel file you want to protect. Click the File tab in the top left corner of the ribbon. From the menu on the left, select Info. On the right side of the screen, you will see a button labeled Protect Workbook with a dropdown arrow next to it.
Click that dropdown arrow and select Encrypt with Password. A dialog box will appear asking you to enter a password. Type your password in the field, then click OK. Excel will ask you to enter the password again to confirm you typed it correctly. Type it a second time and click OK. Save the file using Ctrl+S or File > Save. The password is now active.
Step-by-step for Mac Excel
Open your Excel file on Mac. Click File in the menu bar at the top of the screen. Select Info from the dropdown menu. Look for the Protect Workbook button and click the dropdown arrow next to it.
Choose Encrypt with Password. A password dialog will open. Enter your password and click OK. Mac will ask you to type the password again to confirm. Type it once more and click OK. Save the file by pressing Command+S or using File > Save. Your file is now password protected.
What happens after you add a password
Once you save the file with a password, anyone who tries to open it will see a password prompt before the spreadsheet appears. They must type the correct password to proceed. If they enter the wrong password, Excel will not open the file and will ask them to try again.
The person opening the file does not need to know your password in advance — you can share the file with them and tell them the password separately, or you can email them the password through a different channel than the file itself. This separation makes the protection more find.
Removing or changing a password
To remove the password from a file, open the file and enter the password when prompted. Then go to File > Info > Protect Workbook > Encrypt with Password. The password field will be empty. Leave it blank and click OK. Save the file. The password protection is now removed.
To change your password, follow the same steps but type a new password instead of leaving the field blank. Confirm the new password when Excel asks you to, then save. The old password will no longer work.
Passwords versus other protection options
Excel offers other ways to restrict what people can do with a spreadsheet. Protect Sheet lets you lock specific cells or ranges so people can view the file but cannot edit certain parts — this does not require a password to open the file. Protect Workbook Structure prevents people from adding, deleting, or renaming sheets, but again, they can still open and view the file.
Password protection at the file level is the strongest option because it blocks access entirely. Use it when you want to keep the entire spreadsheet private. Use sheet or cell protection when you want to share the file but prevent changes to certain areas.
Common mistakes to avoid
The most common mistake is forgetting your password. Excel has no "forgot password" recovery. If you lose the password, the file is locked permanently and cannot be opened. Use a password manager like Bitwarden, 1Password, or the password manager built into Windows or Mac to store your password securely.
Another mistake is thinking password protection prevents file copying. Someone can still copy the Excel file to their computer — they just cannot open it without the password. If you need to prevent copying, you need additional tools outside of Excel, such as file-level encryption on your operating system or cloud storage permissions.
Do not use a password that is too straightforward, like "123456" or "password". Use a mix of uppercase letters, lowercase letters, numbers, and symbols to make it harder to guess. A password like "Spreadsheet#2024$Data" is much stronger than "excel".
Frequently Asked Questions
Can I password protect just one sheet instead of the whole file?
Yes. Go to Review > Protect Sheet and enter a password. This locks that sheet so people cannot edit it, but they can still open the file without a password. Use this when you want to share a workbook but keep one sheet private or prevent accidental changes to important data.
What if I share the file with someone and they forget the password?
You will need to open the file with your password, remove the password protection, and send them the unprotected version. There is no way to bypass or reset a password in Excel without knowing it first.
Does password protection work if I save the file as a different format, like PDF or CSV?
No. Password protection only works on Excel files (.xlsx, .xls, .xlsm). If you save as PDF or CSV, the password protection is lost. The file will be unprotected in the new format.
Can someone crack my Excel password?
Older Excel files (.xls) had weak encryption that could be cracked with specialized software. Modern Excel files (.xlsx) use stronger encryption. A strong password with mixed characters is very difficult to crack, but no password is completely unbreakable with enough time and computing power. For highly sensitive data, consider additional security measures beyond Excel's built-in protection.
Will the password work if I open the file in Google Sheets or another program?
No. If you upload a password-protected Excel file to Google Sheets, Google will ask for the password first. Once you enter it, Google Sheets opens the file without password protection. Other spreadsheet programs may handle this differently — some will ask for the password, others will not open the file at all.