Yes, you can password protect an Excel file in a few different ways

Excel lets you lock a file so that someone needs a password to open it, or to make changes to it. You can set this protection in Excel itself — it takes about 30 seconds. You can also password-protect the file using your operating system, or use a third-party tool to encrypt it. The method you choose depends on how much security you need and who you're sharing the file with.

The built-in Excel method works on both Windows and Mac, and the person opening the file needs only Excel or a free viewer — they don't need special software. If you want stronger encryption or need to protect files across your whole computer, the operating system method is more powerful but requires the other person to have the same setup.

Key Takeaways

  • Excel's built-in password protection takes 30 seconds and works on both Windows and Mac versions.
  • You can set a password to open the file, a password to edit it, or both at the same time.
  • Windows users can also encrypt files using BitLocker or File Explorer; Mac users can use FileVault or create an encrypted disk image.
  • If you forget the password, there is no official way to recover it — Excel does not have a password reset feature.
  • Password protection in Excel does not hide the contents from someone who knows the password; it only prevents opening or editing without one.

How to password protect an Excel file in Excel itself

Open the file you want to protect. Go to File in the top menu, then click Info. Look for a button that says Protect Workbook (on Windows) or Protect (on Mac). A dropdown menu will appear with options including Encrypt with Password.

Click Encrypt with Password. A dialog box will ask you to enter a password. Type it in, then click OK. Excel will ask you to type the password again to confirm it. Once you do, save the file. The next time someone tries to open it, Excel will ask for the password before showing the spreadsheet.

If you want to set a password that lets people open the file but not edit it, use Protect Sheet or Protect Workbook Structure instead. These options let you choose which parts of the spreadsheet people can change. You can also set both an open password and an edit password on the same file — one person might need a password just to see it, and another password is required to make changes.

Password protection on Windows using BitLocker or File Explorer

If you want to encrypt the entire file at the operating system level, Windows offers two built-in tools. BitLocker encrypts your whole hard drive or a specific folder, and File Explorer lets you encrypt individual files. Both methods are stronger than Excel's password protection because they use military-grade encryption.

To encrypt a file in File Explorer, right-click the Excel file, select Properties, then click Advanced. Check the box that says Encrypt contents to find data, then click OK twice. The file is now encrypted with your Windows login. Anyone else who tries to open it on your computer will be blocked unless they have your Windows password.

BitLocker works similarly but encrypts an entire folder or drive. You can turn it on by going to Settings > System > About, then scrolling down to Device encryption or BitLocker. Note that BitLocker is available only on Windows Pro, Enterprise, or Education editions — not on Windows Home.

Password protection on Mac using FileVault or encrypted disk images

FileVault encrypts your entire Mac hard drive, so all files on it are protected. Turn it on by going to System Settings > Privacy & Security > FileVault, then click Turn On. You'll be asked to save a recovery key in case you forget your Mac password. Once FileVault is on, any Excel file stored on your Mac is encrypted.

If you want to encrypt just one file without turning on FileVault for your whole drive, create an encrypted disk image. Open Disk Utility (search for it in Spotlight), go to File > New Image > Blank Image, and choose a size large enough for your Excel file. When prompted, set the encryption to 128-bit AES or 256-bit AES and enter a password. Save the image, then drag your Excel file into it. The disk image acts like a folder that requires a password to open.

What happens when someone tries to open a password-protected file

When a person tries to open an Excel file you've password-protected, they see a dialog box asking for the password before the file opens. If they enter the wrong password, Excel tells them it's incorrect and asks them to try again. They can try as many times as they want — Excel doesn't lock them out after a certain number of wrong attempts.

If the file is protected with an edit password but not an open password, the file opens normally, but Excel shows a message asking if they want to edit or view only. If they click Edit, they'll be asked for the password. If they click View Only, they can see the spreadsheet but can't change anything.

Important limits of Excel password protection

Excel passwords are not unbreakable. Older Excel files (2007 and earlier) use weaker encryption, and password-cracking tools exist for them. Newer files (2010 and later) use stronger encryption, but determined people with the right software can still crack them given enough time. If you need military-grade security, use operating system encryption like BitLocker or FileVault instead.

Also, if you forget the password, there is no way to recover it. Excel does not have a password reset feature, and Microsoft cannot unlock the file for you. Write down your password somewhere safe, or use a password manager to store it. If you lose it, the file is locked permanently.

Frequently Asked Questions

Can I password protect just one sheet in an Excel workbook?

Yes. Go to Review > Protect Sheet (Windows) or Tools > Protect Sheet (Mac). You can set a password so people can't edit that sheet, but other sheets in the same workbook remain unprotected. You can protect multiple sheets individually with different passwords if you want.

What if I password protect a file and then forget the password?

There is no official way to recover it. Excel does not have a password reset or recovery feature. Some third-party password-cracking tools exist, but they are slow and unreliable, especially for newer Excel files. The best approach is to store your password in a password manager or write it down in a find location.

Does password protecting an Excel file hide the data from someone who knows the password?

No. Password protection only prevents opening or editing the file without the password. Once someone enters the correct password, they can see and use all the data in the spreadsheet. If you need to hide specific data, use Excel's built-in features like hiding columns or rows, or use a separate file for sensitive information.

Can I open a password-protected Excel file on my phone or tablet?

Yes, if you use Excel for iOS or Android. When you try to open the file, the app will ask for the password. The password must be the same one you set on the desktop version. Some other spreadsheet apps like Google Sheets or Numbers may not support Excel password protection, so the file might not open in those apps.

Is Excel password protection the same as encrypting a file?

Not exactly. Excel password protection prevents opening or editing without a password, but it uses encryption to do so. Operating system encryption like BitLocker or FileVault is stronger because it uses military-grade encryption standards. For most everyday use, Excel password protection is enough; for highly sensitive data, use operating system encryption.