The fastest way to password protect your 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. Click it and choose Encrypt with Password. Type your password twice to confirm it, then click OK. Save the file. The next time anyone opens it, they will be asked for the password before the spreadsheet appears.

This method encrypts the entire file, meaning someone cannot open it at all without the correct password. It is the strongest protection Excel offers and works the same way on Windows and Mac.

Key Takeaways

  • Password protection in Excel encrypts the entire file so it cannot be opened without the password — this is different from protecting just the sheet or cells.
  • The Encrypt with Password option is found under File > Info > Protect Workbook on both Windows and Mac versions.
  • You must type the password twice to confirm it, and Excel will not show you the password as you type.
  • If you forget the password, there is no built-in recovery method — write it down or store it in a password manager before you close the file.

Step-by-step for Windows Excel

Start with the Excel file open on your screen. Click File in the upper left corner. The menu will slide out from the left side. Select Info from the list — it is usually near the top. On the right side of the screen, you will see several buttons. Find and click Protect Workbook. A small dropdown menu will appear with two options: Encrypt with Password and Restrict Access. Click Encrypt with Password.

A dialog box titled Encrypt Document will open. Type your password in the field labeled Password. The text will appear as dots or asterisks so nobody looking over your shoulder can see what you type. Click OK. A second dialog box will appear asking you to Reenter password. Type the same password again. Click OK. You will return to your spreadsheet. Now save the file by pressing Ctrl+S or going to File > Save. The protection is now active.

Step-by-step for Mac Excel

Open your Excel file on Mac. Click File in the menu bar at the top of the screen. Select Info from the dropdown. On the right side, you will see a button labeled Protect Workbook. Click it. A menu will appear with options including Encrypt with Password. Click that option.

The Encrypt Document dialog will open. Type your password in the first field. As on Windows, the password will display as dots. Click OK. A confirmation dialog will ask you to enter the password again. Type it exactly as you did the first time and click OK. Save the file by pressing Command+S or using File > Save. Your file is now password protected.

What happens when someone tries to open your protected file

When you or anyone else tries to open a password-protected Excel file, a dialog box appears before the spreadsheet loads. It says Password with a single text field. The person must type the correct password and click OK. If they type the wrong password, Excel shows an error message and returns to the password prompt. They can try again, but there is no limit on attempts — someone could theoretically guess repeatedly.

If the correct password is entered, the file opens normally and the person can edit, view, and save it just like any other Excel file. The password protection does not restrict what they can do inside the file — it only controls whether they can open it in the first place.

The difference between file protection and sheet protection

Password protecting the entire file (what this article covers) is different from protecting individual sheets or cells. When you protect the file with a password, nobody can open it without that password. When you protect a sheet or cells, the file opens normally, but certain cells or features are locked and cannot be edited without a password.

File protection is stronger because it hides the entire spreadsheet. Sheet protection is useful when you want people to see and work with most of the file but prevent them from changing specific cells, formulas, or sheet structure. Choose file protection if the whole spreadsheet is sensitive. Choose sheet protection if you want to share the file but lock certain parts.

How to change or remove the password later

To change your password, open the protected file and enter the current password when prompted. Once the file is open, go to File > Info > Protect Workbook > Encrypt with Password again. You will see a dialog asking for the current password. Type it. Then type your new password twice in the next dialog. Save the file.

To remove the password entirely, follow the same steps but leave the password field blank when prompted for the new password. Click OK without typing anything. Save the file. The file will no longer require a password to open. Anyone can now access it without restriction.

What to do if you forget your password

Excel does not have a built-in password recovery tool. If you forget the password to a file you encrypted, you cannot open it. There is no official way to reset it or bypass it. Some third-party tools claim to crack Excel passwords, but they are unreliable, may contain malware, and do not work on newer Excel files with strong encryption.

The best approach is to write down your password and store it somewhere safe before you close the file for the first time. A password manager like Bitwarden, 1Password, or KeePass can store passwords securely and generate strong ones. If you have already forgotten the password and the file is important, your only realistic option is to recreate the spreadsheet from a backup or source data.

Frequently Asked Questions

Can I password protect just one sheet instead of the whole file?

Yes. Right-click the sheet tab at the bottom of Excel and select Protect Sheet. This locks that sheet's cells and structure but leaves the file itself openable. The file will open normally, but people cannot edit the protected sheet without the password. This is different from encrypting the entire file.

Does password protection work if I share the file via email or cloud storage?

Yes. The password protection stays with the file no matter how you send it. When someone downloads or opens the file, they will be prompted for the password. The protection is built into the file itself, not dependent on where it is stored.

Can I open a password-protected Excel file in Google Sheets or other programs?

No. Google Sheets, LibreOffice, and other spreadsheet programs cannot open password-encrypted Excel files. You must use Microsoft Excel or Excel Online to access them. If you need to share with people using other programs, you will have to remove the password first.

Is Excel password protection find enough for sensitive financial or medical data?

Excel passwords provide basic protection against casual access, but they are not military-grade encryption. For highly sensitive data like medical records or financial statements, consider storing the file in a dedicated find vault, using full-disk encryption on your computer, or using specialized software designed for that data type. Password protection alone is reasonable for most business spreadsheets but may not meet compliance requirements for regulated industries.

What if I want to let someone edit the file but not see certain cells?

Use sheet protection instead of file encryption. Protect the sheet with a password, then right-click the cells you want to hide and select Format Cells > Protection > check Hidden. When the sheet is protected, those cells will not display. The person can still edit other cells without needing the password, but they cannot see or modify the hidden ones.