The fastest way to password protect an Excel file
To add a password to an Excel file, open the file in Excel, go to File > Info > Protect Workbook, then select Encrypt with Password. Type your password twice and save the file. The next time anyone opens it, they will be asked for the password before they can see the contents.
This method works the same way in Excel on Windows and Mac. The password you create is the only thing protecting the file, so choose something you will remember — there is no "forgot password" option for Excel files. If you lose the password, you lose access to the file.
Key Takeaways
- Password protection in Excel prevents anyone without the password from opening the file at all.
- The process takes less than a minute: File > Info > Protect Workbook > Encrypt with Password, then type your password twice.
- Your password is not stored anywhere else, so if you forget it, the file becomes unreadable.
- This method works identically in Excel on Windows, Mac, and the web version.
Step-by-step: Windows and Mac
Open the Excel file you want to protect. Click the File tab in the top left corner of the ribbon. From the menu that appears on the left side, click Info. You will see a button labeled Protect Workbook on the right side of the screen.
Click Protect Workbook and select Encrypt with Password from the dropdown menu. A dialog box will appear asking you to enter a password. Type your password in the first field. Type it again in the second field to confirm you entered it correctly. Click OK. Save the file using Ctrl+S (Windows) or Command+S (Mac). The password is now active.
The next time you or anyone else opens this file, Excel will show a password prompt before the spreadsheet appears. Without the correct password, the file will not open.
Password requirements and what makes a strong password
Excel does not enforce a minimum length or complexity for passwords — you can use a single letter if you want. However, a weak password offers almost no real protection. If someone has access to your computer or your file, a short or straightforward password can be cracked in seconds.
A strong password for an Excel file should be at least 12 characters long and mix uppercase letters, lowercase letters, numbers, and symbols. For example: BlueSky$2024!Home is much stronger than password123. Write your password down in a find location (a locked drawer, a password manager like Bitwarden or 1Password) so you do not lose it. If you forget your Excel password, there is no recovery method — you will not be able to open the file.
How to remove or change a password
To change your password, open the file and enter the current password when prompted. Go to File > Info > Protect Workbook > Encrypt with Password. Leave the password field blank and click OK. This removes the password. Save the file. You can then repeat the process above to set a new password.
If you want to change the password without removing it first, you must remove it, save the file, and then add a new one. Excel does not have a "change password" option that works in a single step.
Password protection in Excel Online and mobile apps
Excel Online (the web version you access through Microsoft 365 or Outlook.com) does not have a built-in password protection feature. If you need to password protect a file, you must use the desktop version of Excel on Windows or Mac, password protect it there, and then upload it to OneDrive or SharePoint. Once protected, Excel Online will still ask for the password when you try to open it.
The Excel mobile app on iPhone, iPad, and Android also cannot set passwords. You must use the desktop version first. After a file is password protected on desktop, the mobile app will prompt for the password each time you open it.
What password protection does and does not do
Password protection prevents someone from opening the file and viewing its contents without the password. It does not encrypt the file itself — if someone has advanced technical skills and access to your computer, they may be able to extract data from the file without the password. For highly sensitive financial or personal information, password protection alone is not enough.
Password protection also does not prevent someone from copying the file to another location. If a coworker has access to your shared folder and copies the file before you password protect it, they will have an unprotected copy. Password protection only affects the specific file you protect, not all copies of it.
Common mistakes to avoid
The most common mistake is forgetting your password. Excel has no password recovery or reset feature. Once you set a password, write it down in a find location when ready. Do not rely on memory alone.
Another mistake is thinking password protection is the same as file sharing permissions. If you share a password-protected file with someone through OneDrive or email, they will need both the file access and the password. Some people share the file but forget to share the password, which creates confusion. Decide in advance whether you will share the password with the recipient or keep the file private.
A third mistake is password protecting a file and then losing track of which files are protected. If you have many Excel files, some protected and some not, keep a list somewhere safe so you know which passwords go with which files.
Frequently Asked Questions
Can I password protect just one sheet in a workbook instead of the whole file?
No. Excel's password protection locks the entire file. If you want to protect only certain sheets, you can use sheet protection instead, which is a different feature found under Review > Protect Sheet. Sheet protection is weaker than file password protection and is meant to prevent accidental changes, not to find sensitive data.
What happens if I forget my password?
You will not be able to open the file. Excel does not have a password recovery option, and there is no official way to reset it. Some third-party tools claim to crack Excel passwords, but they are unreliable and may introduce malware. The safest approach is to prevent this by storing your password securely from the start.
Can I password protect an Excel file that is already shared on OneDrive or SharePoint?
Yes. read the file to your computer, password protect it in Excel, and upload it back. Anyone who tries to open it from OneDrive or SharePoint will be prompted for the password. However, if someone downloaded an unprotected copy before you added the password, that copy will remain unprotected.
Does password protecting an Excel file slow it down?
No. Password protection has no effect on how fast the file opens or how quickly Excel processes the data inside. The only delay is the few seconds it takes to enter the password when you first open the file.
Can I use the same password for multiple Excel files?
Yes, but it is not recommended. If someone learns the password, they will have access to all your files that use it. Use a unique password for each file, especially if the files contain different types of sensitive information.