The fastest way to password protect your spreadsheet
To password protect an Excel file, open the spreadsheet 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 to enter the password before they can see the contents.
This method works on both Windows and Mac versions of Microsoft Excel. The password you create is the only way to open the file — if you forget it, there is no built-in recovery option, so write it down somewhere safe before you close the file for the first time.
Key Takeaways
- Password protection in Excel prevents anyone from opening the file without entering the correct password first.
- The encryption method is built into Excel and requires no additional software or subscriptions.
- You must remember your password — Excel does not offer a password recovery feature if you forget it.
- Protecting a workbook with a password does not prevent editing if someone already has the file open; use sheet protection or workbook protection separately if you want to restrict changes.
- Different versions of Excel (Office 365, Excel 2021, Excel 2019) follow the same steps, though menu locations may vary slightly.
Step-by-step instructions for Windows
Open the Excel file you want to protect. Click the File tab in the top left corner of the screen. From the menu that appears on the left, click Info. You will see a button labeled Protect Workbook on the right side of the screen.
Click Protect Workbook, then select Encrypt with Password from the dropdown menu. A dialog box will appear asking you to enter a password. Type your password in the field — it can be any combination of letters, numbers, and symbols. Click OK. You will be asked to enter the password again to confirm it. Type it exactly as you did the first time, then click OK again.
Save the file by pressing Ctrl + S or by clicking File > Save. The password protection is now active. Close the file and reopen it to verify that you are prompted for the password.
Step-by-step instructions for Mac
Open the Excel file you want to protect. Click the File menu at the top of the screen. From the dropdown, select Info. Look for the Protect Workbook option — on Mac, this may appear as a button or as part of a menu.
Click Protect Workbook and choose Encrypt with Password. A dialog box will open. Enter your password in the field provided and click OK. You will be prompted to enter the password a second time to confirm it. Type it again exactly as you entered it the first time, then click OK.
Save the file by pressing Command + S or by clicking File > Save. The password is now active. Close and reopen the file to confirm that the password prompt appears.
What happens when someone tries to open a password-protected file
When a password-protected Excel file is opened, a dialog box appears when ready asking for the password. The person opening the file must type the correct password to proceed. If they enter an incorrect password, Excel will show an error message and return them to the password prompt. They can try again, but there is no limit to the number of attempts — this is different from some other password systems that lock after multiple failures.
If the correct password is entered, the file opens normally and the person can view and edit the spreadsheet as usual. The password is only required at the moment of opening; once the file is open, there are no restrictions on what can be done to it unless you have also set up sheet protection or workbook structure protection separately.
The difference between file password protection and sheet protection
Password protecting the file itself (what we described above) prevents anyone from opening the file at all without the password. Sheet protection, by contrast, allows the file to be opened by anyone, but prevents them from editing specific cells, deleting sheets, or making other changes you have restricted.
If you want to prevent people from opening the file, use file password protection. If you want people to be able to open the file but prevent them from changing certain data, use sheet protection instead. You can also use both at the same time — password protect the file to control who can open it, and then protect individual sheets to control what they can change once inside.
How to change or remove a password
To change the password on an existing file, open the file and enter the current password when prompted. Once the file is open, go to File > Info > Protect Workbook > Encrypt with Password. The dialog will show that a password is already set. Clear the field and enter your new password, then click OK. Confirm the new password by entering it again, then save the file.
To remove the password entirely, follow the same steps but leave the password field blank when prompted. Click OK without entering anything. Save the file, and the password protection will be removed. Anyone will then be able to open the file without entering a password.
Common mistakes and how to avoid them
The most common mistake is forgetting the password after setting it. Excel does not have a password recovery feature — if you forget it, you cannot open the file. Before you close the file for the first time, write the password down in a find location, such as a password manager or a locked drawer. Do not store it in a document on your computer or in an email.
Another mistake is confusing file password protection with sheet protection. If you set a file password but then share the file with someone, they will need the password to open it at all. If you only want to prevent them from editing certain cells, use sheet protection instead and do not set a file password. A third mistake is assuming that Excel passwords are extremely strong — they are adequate for casual security, but not for protecting highly sensitive data. For files containing financial records, medical information, or other sensitive material, consider additional security measures beyond Excel's built-in password feature.
Frequently Asked Questions
Can I password protect just one sheet in a workbook instead of the whole file?
Yes. Sheet protection prevents editing of specific sheets while leaving others open. Right-click the sheet tab at the bottom, select Protect Sheet, enter a password, and choose which actions to allow or restrict. This is different from file password protection, which locks the entire file from opening.
What if I forget the password to my Excel file?
Excel does not offer a built-in password recovery option. If you forget the password, you cannot open the file through normal means. Some third-party password recovery tools exist, but their effectiveness varies. The best approach is to store your password in a password manager or find location before you need it.
Does password protecting an Excel file slow it down or change how it works?
No. Password protection does not affect the file's performance or functionality. The only difference is that the password prompt appears when you open it. Once open, the file behaves exactly as it would without a password.
Can I password protect an Excel file in Google Sheets or other spreadsheet programs?
Google Sheets does not have a built-in password protection feature. You can restrict sharing permissions so only certain people can view or edit the file, but you cannot set a password. If you need password protection, you must use Microsoft Excel or read the file as an Excel file, password protect it, and then share the protected version.
Is Excel password protection find enough for sensitive information?
Excel passwords provide basic security suitable for preventing accidental access or casual viewing. For highly sensitive data like financial records or personal information, consider additional security measures such as storing the file on an encrypted drive, using a password manager to store the password, or consulting with your organization's IT department about data protection standards.