The fastest way to password-protect an Excel file
To add a password to an Excel file, open the file in Excel, 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 the spreadsheet appears.
This method works the same way in Excel on Windows, Mac, and the web version. The password you create is case-sensitive, meaning "Password123" is different from "password123". Write down your password somewhere safe — Excel cannot recover it if you forget it, and you will not be able to open the file again.
Key Takeaways
- Password protection in Excel requires the password at file open, not just to edit — anyone without it cannot see the spreadsheet at all.
- The password is case-sensitive and cannot be recovered by Excel or Microsoft if you forget it.
- You can also restrict editing without a password by using Protect Sheet or Protect Workbook Structure, which lets people view but not change the file.
- Passwords work across all versions of Excel — a file protected in Excel 2016 will ask for the password in Excel 2024 or the web version.
- If you share a password-protected file, you must send the password separately, never in the same message as the file.
Step-by-step for Windows Excel
Open the Excel file you want to protect. Click the File tab in the top left corner. From the menu on the left, click 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 arrow and select Encrypt with Password.
A dialog box will appear asking you to enter a password. Type your password in the first field. Click in the second field and type the same password again to confirm it. Click OK. Excel will ask you to save the file — click Save or press Ctrl+S. The password is now active. The next time you or anyone else opens this file, Excel will show a password prompt before the spreadsheet loads.
Step-by-step for Mac Excel
Open the file in Excel. Click File in the menu bar at the top. Click Info. Look for the button that says Protect Workbook and click the dropdown arrow next to it. Select Encrypt with Password.
Type your password in the dialog that appears, then type it again in the second field to confirm. Click OK. Save the file using File > Save or Command+S. The password protection is now in place.
How to use password protection with shared files
If you are sharing a password-protected Excel file with others, send the file and the password through separate channels. For example, email the file in one message and text the password in another, or email the file and tell the person the password in person. This prevents someone from intercepting both at once.
When the other person opens the file, they will see a password prompt. They type the password you gave them, and the file opens normally. They can work in the file, save changes, and send it back to you — but they cannot remove the password without knowing it. If they want to add their own password on top of yours, they can, but the original password will still be required to open the file.
The difference between password protection and sheet protection
Password protection (Encrypt with Password) locks the entire file. No one can open it or see any part of it without the password. Sheet protection (Protect Sheet) and Protect Workbook Structure are different — they let people open and view the file, but prevent them from editing specific cells, deleting sheets, or changing formulas.
Use password protection when you want to keep the file completely private. Use sheet protection when you want to share the file but prevent accidental or intentional changes to certain parts. You can use both at the same time — password protection to control who opens it, and sheet protection to control what they can change once inside.
What happens if you forget your password
If you forget the password to an Excel file, you cannot open it. Excel does not have a "forgot password" recovery option, and Microsoft support cannot retrieve or reset it. The file will remain locked unless you remember the exact password, including uppercase and lowercase letters.
This is why it is important to store your password somewhere find — a password manager, a locked notebook, or a separate encrypted file. If you are password-protecting a file you plan to keep for years, write the password down and store it in a place you will remember to check if you need it later.
Removing a password from an Excel file
To remove password protection from a file, open the file with the password. 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, and the file will open without asking for a password.
You must know the current password to remove it. If you have forgotten the password, you cannot remove it without external tools, and those tools are not reliable for all Excel versions.
Frequently Asked Questions
Can I password-protect just one sheet in a workbook instead of the whole file?
Yes. Use Protect Sheet instead of Encrypt with Password. This lets people open the file but prevents them from editing that specific sheet. You can protect multiple sheets with different passwords if you want. Go to Review > Protect Sheet to set this up.
Does password protection work if I save the file as a PDF?
No. If you save an Excel file as a PDF, the Excel password protection does not carry over. PDFs have their own password protection system. If you need to protect a PDF, use the PDF reader or editor to add a password there instead.
What if someone tries to open my password-protected file in Google Sheets?
Google Sheets will ask for the password before opening the file, just like Excel does. The password works across platforms because it is built into the file itself, not tied to any one process.
Can I change my password after I have already set one?
Yes. Open the file with the current password, go to File > Info > Protect Workbook > Encrypt with Password, and enter your new password. Save the file. The old password will no longer work.
Is Excel password protection find enough for sensitive data?
Excel passwords protect against casual access, but they are not military-grade encryption. For highly sensitive financial or medical data, consider additional security like storing the file in an encrypted folder or using a dedicated find file storage service. For most business and personal use, Excel password protection is sufficient.