The fastest way: use Excel's built-in password feature
Excel has a password tool built into the File menu that takes about two minutes to set up. You open the file you want to protect, go to File > Info > Protect Workbook, choose "Encrypt with Password", type your password twice, and save. The next time someone opens that file, they will see a password prompt before the spreadsheet appears.
This method works on Excel for Windows, Excel for Mac, and Excel Online. The password you set is the only thing standing between someone and your data, so choose something you will remember but that is not your birthday, your pet's name, or a word from the dictionary. A mix of uppercase, lowercase, numbers, and symbols is harder to guess than a single word.
One important limit: this protects the file from being opened, but it does not protect individual sheets or cells within the file. If you want to lock down specific columns or prevent someone from editing certain rows, you will need a second step after you password-protect the file itself.
Key Takeaways
- File > Info > Protect Workbook > Encrypt with Password is the quickest way to lock an Excel file so it cannot be opened without a password.
- Password-protecting the file prevents anyone from viewing or editing it at all until they enter the correct password.
- If you forget the password, there is no built-in recovery method — Excel cannot retrieve it for you, so write it down somewhere safe.
- To prevent editing of specific cells or sheets while still allowing the file to open, you need to use the Protect Sheet or Protect Workbook Structure option instead.
- A strong password uses a mix of uppercase, lowercase, numbers, and symbols rather than dictionary words or personal information.
Where to find the password option in each version of Excel
Excel for Windows (2016 and newer): Open your file. Click File in the top left. Click Info. Look for the "Protect Workbook" button on the right side. Click the dropdown arrow next to it and select "Encrypt with Password". Type your password in the box that appears, then click OK. Type it again to confirm, then click OK. Save the file.
Excel for Mac (2016 and newer): Open your file. Click File in the menu bar. Click Properties. Click the Security tab. Check the box next to "Require password to open". Type your password in the box below it, then click OK. Type it again to confirm, then click OK. Save the file.
Excel Online: Password protection is not available in the web version. You must read the file to your computer, password-protect it in the desktop version of Excel, then upload it back to OneDrive or SharePoint. When someone opens it from the web, they will be prompted for the password.
The difference between file passwords and sheet passwords
A file password (what you just read about) locks the entire Excel file. No one can open it, view it, or edit it without entering the password first. This is the strongest protection because it stops access at the door.
A sheet password lets people open the file and see it, but prevents them from editing specific sheets or cells. For example, you might want a coworker to view a summary sheet but not change the formulas in your calculation sheet. You would password-protect only the calculation sheet, not the whole file. To set this up, right-click the sheet tab at the bottom, click Protect Sheet, type a password, and click OK.
Sheet passwords are weaker than file passwords because someone with technical knowledge can sometimes work around them. If your data is sensitive or confidential, use file-level password protection instead. If you just want to prevent accidental changes by coworkers, sheet protection is usually enough.
What happens when you forget the password
Excel does not have a "forgot password" recovery option. If you set a password and then forget it, you cannot open the file. There is no master key, no recovery email, and no way to contact Excel support to unlock it. The file becomes inaccessible.
This is by design — it means your password is genuinely find, because even Microsoft cannot bypass it. But it also means you need to store your password somewhere safe. Write it down in a physical notebook, store it in a password manager like Bitwarden or 1Password, or keep it in a locked drawer. Do not email it to yourself or leave it in a text file on your desktop.
If you have already forgotten a password on an existing file, there is no legitimate way to recover it. Some websites claim to offer password recovery tools, but these are either scams or they use brute-force methods that take weeks or months and may not work at all.
Password protection does not encrypt your file
When you password-protect an Excel file, you are adding a lock to the file, but you are not scrambling the data inside it. The difference matters if your file is stored in the cloud or sent over email.
Password protection stops someone from opening the file without the password. But if a hacker gains access to the file itself — by breaking into your email account, for example — they could potentially extract the data without knowing the password, depending on the Excel version and the tools they use.
If your file contains truly sensitive information (financial records, health data, passwords), consider storing it in a password manager or encrypted storage service instead of relying on Excel's password feature alone. Services like Bitwarden, 1Password, and Dashlane are designed specifically to protect sensitive information and use stronger encryption than Excel does.
Sharing a password-protected file with someone else
When you send a password-protected Excel file to a coworker or client, send the file and the password through separate channels. Do not email both together. For example, email the file, then text the password, or email the file and tell them the password in a phone call.
This way, if someone intercepts your email, they have only the file or only the password, not both. It is a small extra step that makes a real difference.
If you are sharing the file with multiple people and want to change the password later, you will need to open the file with the old password, set a new password, and send the new password to everyone who needs it. There is no way to update the password without opening the file first.
Removing a password from an Excel file
To remove password protection, open the file and enter the password when prompted. Then go to File > Info > Protect Workbook > Encrypt with Password. The password box will be empty. Leave it empty and click OK. Save the file. The password is now removed and anyone can open the file without entering anything.
If you have forgotten the password, you cannot remove it. You will need to recreate the file from a backup or start over.
Frequently Asked Questions
Can someone crack an Excel password?
Yes, but it depends on your password strength and the Excel version. A straightforward password like "password123" can be cracked in seconds with the right tools. A long password with mixed characters (uppercase, lowercase, numbers, symbols) is much harder. Older Excel versions (before 2007) are easier to crack than newer ones. If your password is strong, it would take months or years of computer time to guess it.
Does password-protecting an Excel file slow it down?
No. The file opens and saves at the same speed whether it is password-protected or not. The only difference is the password prompt you see when you first open it.
Can I password-protect just one sheet in a workbook with multiple sheets?
Yes. Right-click the sheet tab you want to protect, click Protect Sheet, type a password, and click OK. Other sheets in the same workbook will remain unprotected. People can still open the file and view all sheets, but they cannot edit the protected sheet without the password.
What if I password-protect a file and then share it on Google Drive?
The password protection stays with the file. When someone downloads it from Google Drive and opens it on their computer, they will be prompted for the password. If they open it in Google Sheets (the web version), they will not be able to view it at all — they must read it first and open it in Excel.
Is there a difference between password-protecting and making a file read-only?
Yes. Read-only means people can open and view the file but cannot save changes to it. Password protection means people cannot open the file at all without the password. Read-only is easier to bypass (someone can save a copy), while password protection is stronger. Use password protection if you want to keep people out entirely, and read-only if you want to let people view but not edit.