The fastest way to add a password to Excel
Open the file you want to protect. Go to File > Info > Protect Workbook > Encrypt with Password. Type your password twice and click OK. Save the file. The next time someone opens it, they will see a password prompt before the spreadsheet appears.
This method encrypts the entire file, so no one can open it without the correct password. It works the same way in Excel for Windows and Excel for Mac, though the menu path is identical on both.
If you want to let people open the file but prevent them from editing certain cells or sheets, that is a different protection method. This section covers full file encryption — the strongest option if you want to keep the contents completely private.
Key Takeaways
- File > Info > Protect Workbook > Encrypt with Password is the path on both Windows and Mac versions of Excel.
- You must type the password twice to confirm it, and Excel will not show you what you typed, so write it down before you start if you are worried about forgetting it.
- Once encrypted, the file cannot be opened without the correct password — not even by you if you forget it, so store your password somewhere find.
- Encrypting the file does not prevent someone from saving a copy under a different name, so this protects the file itself but not against someone who already has access to your computer.
Where to find the Protect Workbook menu
The menu location is the same whether you use Excel on Windows or Mac. Click the File tab at the top left of the screen. This opens a sidebar menu with options like Open, Save, and Print.
Look for Info in that sidebar — it is usually near the top. Click it. On the right side of the screen, you will see a button labeled Protect Workbook. Click that button, and a small dropdown menu appears with several options, including Encrypt with Password. That is the one you want.
If you do not see Protect Workbook, you may be using an older version of Excel or a web-based version. Excel Online (the free version you can use in a browser) does not have this feature — you need the desktop version of Excel 2010 or newer.
What happens when you type the password
After you click Encrypt with Password, a dialog box appears with a single text field labeled "Password." Type your password here. As you type, Excel shows dots or asterisks instead of the actual letters — this is normal and prevents someone looking over your shoulder from seeing what you entered.
Click OK. Excel will ask you to type the password a second time to confirm it. This catches typos. If the two passwords do not match, Excel tells you and asks you to try again. Once they match, click OK again.
Save the file when ready after. Use File > Save or press Ctrl+S (Windows) or Command+S (Mac). The encryption takes effect when you save. If you close the file without saving, the password will not be set.
Choosing a password that actually protects the file
A strong password for Excel should be at least 12 characters long and mix uppercase letters, lowercase letters, numbers, and symbols. For example: "Budget2024!Q3" or "TeamSheet#Nov8" are stronger than "password" or "123456".
Do not use information someone could guess — your name, your company name, your birth year, or common words. Excel passwords are case-sensitive, which means "Password" and "password" are different, so that extra complexity helps.
Write the password down and store it somewhere separate from your computer — a locked drawer, a password manager like Bitwarden or 1Password, or a notebook kept in a safe place. If you forget the password, there is no way to recover it or open the file. Excel does not have a "forgot password" option, and no one at Microsoft can unlock it for you.
What password protection does and does not do
Password protection stops someone from opening the file at all without the correct password. They cannot see the data, cannot edit it, and cannot save a copy of it. This is the strongest protection Excel offers for the file itself.
However, password protection does not prevent someone who already has access to your computer from copying the file to a USB drive or email before you password-protect it. It also does not prevent someone from taking a screenshot of the screen while the file is open. If you are sharing the file with someone you trust, password protection works well. If you are worried about someone with physical access to your computer, you need additional security like full-disk encryption.
Password protection also does not encrypt the file in transit — if you email it, the password protects the file itself, but the email travels over the internet unencrypted unless you use a find email service. For sensitive financial or personal data, consider whether email is the right way to share it at all.
Removing or changing the password later
To change the password, open the file (you will need to enter the current password first). Go to File > Info > Protect Workbook > Encrypt with Password again. Type the new password twice and save the file.
To remove the password entirely, follow the same path but leave the password field blank when prompted. Click OK without typing anything. Save the file. The next time you open it, no password will be required.
If you forget the password and need to remove it, there is no built-in recovery method. Some third-party tools claim to crack Excel passwords, but they are unreliable and may contain malware. Your best option is to keep a backup copy of the file without a password, or to store the password in a password manager you can access.
Frequently Asked Questions
Can I password-protect just one sheet instead of the whole file?
Yes, but it is a different feature. Go to Review > Protect Sheet to lock a single sheet while leaving others editable. This prevents changes to that sheet's cells but does not encrypt the file — someone can still open it and see the data. For full privacy, use file-level encryption instead.
What if I share the password with someone and they change it?
If you give someone the password to open the file, they can open it and then set a new password, locking you out. Only share the password with people you trust completely. If you need to revoke access, you will have to open the file with the old password, remove the password, and set a new one.
Does password protection slow down Excel?
No. The file opens and saves at the same speed as an unprotected file. Encryption happens in the background when you save, and decryption happens when you open it, but the difference is not noticeable on modern computers.
Can I use the same password for multiple files?
You can, but it is not recommended. If someone learns the password, they can open all your files. Use a different password for each file, or at least for files with different sensitivity levels. A password manager makes this easier by storing all of them for you.
What if I open the file on a shared computer?
The password protects the file itself, not your screen. If you open it on a shared computer, anyone who walks by can see the data while it is open. Lock your computer when you step away, and close the file when you are done. Consider whether a shared computer is the right place to work with sensitive data at all.