The fastest way to password-protect an Excel file

Open the file you want to protect in Excel. Go to File in the top left, then select Info. Look for the button labeled Protect Workbook — it usually appears in the right panel under a lock icon. Click it and choose 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 that password before the spreadsheet appears.

That entire process takes about 30 seconds. The password you create should be something you can remember but that others cannot guess — avoid birthdays, names, or common words. Write it down somewhere safe if you think you might forget it, because Excel cannot recover a lost password.

Key Takeaways

  • Password protection in Excel works through File > Info > Protect Workbook > Encrypt with Password, then save the file.
  • The password you set is the only way to open the file — if you forget it, the file becomes permanently locked and unreadable.
  • This method encrypts the entire file, so anyone without the password cannot see any of the data inside.
  • You can also restrict editing without a password by using Protect Sheet, which lets people view the file but prevents changes to specific cells.

Where to find Protect Workbook on different Excel versions

On Excel for Windows, the path is File > Info > Protect Workbook > Encrypt with Password. The button appears on the right side of the screen once you click Info.

On Excel for Mac, go to Tools in the menu bar at the top, then select Protect Workbook. A small window will open asking you to enter and confirm your password. Click OK and save the file.

On Excel Online (the web version), the option is in File > Info > Protect Workbook. The interface is the same as Windows, though the file saves automatically once you set the password.

The difference between password-protecting and restricting edits

When you encrypt a file with a password, nobody can open it without that password. The entire spreadsheet stays hidden until they type the correct one. This is the strongest protection if you want to keep the data completely private.

Protect Sheet is different — it lets people open and view the file, but prevents them from changing specific cells or the sheet structure. You set a password for this too, but someone could still see all your data; they just cannot edit it. Use Protect Sheet when you want to share a spreadsheet with colleagues who should see the numbers but not change them. Use Encrypt with Password when you want to keep the file itself secret.

What happens when you forget the password

Excel does not have a "forgot password" recovery option. If you set a password and forget it, the file is permanently locked. You cannot open it, and there is no way to reset or bypass the password. Microsoft cannot unlock it for you, and no third-party tool can reliably crack modern Excel encryption.

This is why writing down your password in a safe place — a physical notebook, a password manager, or a locked drawer — is worth the small effort. If the file is important, store the password somewhere separate from the file itself.

Saving and sharing a password-protected file

After you set the password and click OK, save the file as you normally would using Ctrl+S (Windows) or Command+S (Mac). The password takes effect when ready. The next time anyone — including you — opens that file, Excel will ask for the password before showing the spreadsheet.

When you share the file with someone else, you need to tell them the password separately. Do not include it in the email with the file. A better approach is to send the file through one message and the password through a different one, or tell them the password in person or over the phone.

Removing a password from a file you already protected

Open the password-protected file and enter the password when prompted. Once the file is open, go to File > Info > Protect Workbook > Encrypt with Password again. This time, leave the password field blank and click OK. Save the file. The password is now removed, and the file will open without asking for one.

You can only remove a password if you know it. If you forgot the password, you cannot open the file to remove it.

Common mistakes that weaken your protection

Using a straightforward password like "123456" or "password" defeats the purpose of protection. Anyone trying common passwords will get in quickly. A stronger password mixes uppercase and lowercase letters, numbers, and symbols — something like "BlueSky$2024" is much harder to guess than "blue".

Storing the password in the same location as the file also weakens protection. If someone gains access to your computer or email, they can find both the file and the password in the same place. Keep the password written down separately, or use a password manager that stores it encrypted.

Telling multiple people the password means you lose control of who has access. If you need different people to have different levels of access, consider using Protect Sheet for some users and password encryption for others, or create separate versions of the file.

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. Right-click the sheet tab at the bottom, select Protect Sheet, and set a password. This locks that specific sheet while leaving others editable. People can still open the file and see the other sheets, but they cannot change the protected one without the password.

What if I set a password but then want to change it to something else?

Open the file with the old password, go to File > Info > Protect Workbook > Encrypt with Password, and type the new password. Save the file. The old password no longer works — only the new one will open the file.

Does password protection work if I save the file as a different format, like CSV or PDF?

No. If you save an Excel file as CSV or PDF, the password protection is lost. The new file will have no password. Always keep the original Excel file (.xlsx) if you want to maintain password protection.

Can someone crack an Excel password?

Modern Excel encryption (2007 and later) is very difficult to crack without specialized tools, and even then it takes significant time. Older Excel versions had weaker encryption. For sensitive data, password protection is reasonably strong, but it is not military-grade security. If you need maximum security, consider additional measures like storing the file on an encrypted drive.

Will the password protect the file if I email it or upload it to cloud storage?

Yes. The password protection stays with the file no matter where it is stored or sent. The file itself is encrypted, so the password is required to open it whether it is on your computer, in an email attachment, or in cloud storage like OneDrive or Google Drive.