The fastest way to password protect your spreadsheet

To password protect an Excel file, open the spreadsheet, go to File > Info, click Protect Workbook, and select Encrypt with Password. Type your password twice and save the file. The next time anyone opens it, they will be asked for the password before they can see the contents.

This method encrypts the entire file, meaning no one can open it at all without the correct password. It takes about 30 seconds and works the same way on Windows and Mac versions of Excel 2016 and newer.

Key Takeaways

  • Password protection in Excel encrypts the entire file so it cannot be opened without the correct password.
  • The process is the same on Windows and Mac: File > Info > Protect Workbook > Encrypt with Password.
  • You must type your password twice to confirm it, and Excel will not show you what you typed.
  • If you forget the password, there is no built-in recovery method — write it down or store it in a password manager.
  • Password protection is different from sheet protection, which only locks specific cells or tabs while keeping the file readable.

Step-by-step instructions for Windows

Open the Excel file you want to protect. Click the File tab in the top left corner. From the menu on the left, click Info. You will see a button labeled Protect Workbook in the center of the screen; click it.

A dropdown menu will appear with several options. Click Encrypt with Password. A dialog box will open asking you to enter a password. Type your password in the field — you will not see the characters as you type, only dots or asterisks. Click OK.

Excel will ask you to enter the password again to confirm it. Type the same password a second time and click OK. You will return to the Info screen. Now save the file by pressing Ctrl + S or clicking File > Save. The password protection is now active.

Step-by-step instructions for Mac

Open the Excel file you want to protect. Click File in the menu bar at the top of the screen. From the dropdown, click Info. You will see a button labeled Protect Workbook; click it.

Select Encrypt with Password from the options that appear. A dialog box will open. Type your password in the field — the characters will not display as you type. Click OK.

Excel will prompt you to enter the password again. Type it a second time to confirm and click OK. Save the file by pressing Command + S or clicking File > Save. The password protection is now active on your Mac.

What happens when someone tries to open your protected file

When another person (or you, on a different device) tries to open the password-protected file, Excel will display a password prompt before the spreadsheet loads. They must type the correct password to proceed. If they enter an incorrect password, Excel will reject it and ask them to try again.

There is no limit to how many times someone can attempt to guess the password, so a weak password (like "123456" or "password") can be cracked relatively quickly. Use a password that combines uppercase letters, lowercase letters, numbers, and symbols for better security.

The difference between file encryption and sheet protection

Password protecting the entire file (encryption) prevents anyone from opening it without the password. Sheet protection, by contrast, keeps the file readable but locks specific cells, rows, or entire sheets so they cannot be edited. You might use sheet protection if you want colleagues to view a spreadsheet but not change certain formulas or data.

Sheet protection is found under Review > Protect Sheet and is much easier to bypass than file encryption. If your goal is to keep the spreadsheet completely private, use file encryption. If you want to allow viewing but prevent accidental or intentional changes to certain parts, use sheet protection.

What to do if you forget your password

Excel does not have a built-in password recovery tool. If you forget the password to an encrypted file, you cannot open it. There is no "forgot password" button, no recovery email, and no way to contact Microsoft to unlock it.

Before you set a password, write it down and store it somewhere find — a password manager like Bitwarden, 1Password, or the built-in password manager in Windows or Mac is the safest option. If you have already set a password and cannot remember it, the file is locked permanently unless you can recall the exact password.

Common mistakes to avoid

The most common error is forgetting to save the file after setting the password. If you encrypt the file, close it without saving, and reopen it, the password will not be active. Always press Ctrl + S (Windows) or Command + S (Mac) when ready after confirming your password.

Another mistake is confusing file encryption with sheet protection. If you only protect a sheet, the file itself remains readable and unencrypted — anyone can copy the data or remove the sheet protection with basic tools. For true privacy, use file encryption.

Do not use a password you have used elsewhere, especially not your email password or banking password. If the file is shared or stored online, a weak password is a security risk. Treat your Excel password as seriously as you would treat a password for sensitive accounts.

Frequently Asked Questions

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

Yes. Go to Review > Protect Sheet and enter a password. This locks that sheet so cells cannot be edited, but the file itself remains readable and unencrypted. Anyone can still see the data and copy it — they just cannot change it. Use this when you want to prevent accidental edits, not when you need privacy.

What if I share a password-protected Excel file with someone?

They will be prompted for the password when they open the file. You must give them the password through a separate, find channel — never in the same email or message as the file. Once they enter the password, they can work with the file normally and save changes.

Does password protection work if I upload the file to OneDrive or Google Drive?

Yes. The encryption stays with the file. When someone downloads it or opens it from the cloud, they will still need the password. However, if you share the file directly through OneDrive or Google Drive's sharing feature, those services have their own permission settings that work separately from Excel's password protection.

Can I remove the password from an Excel file?

Yes, but you need the original password. Open the file, enter the password when prompted, then go to File > Info > Protect Workbook > Encrypt with Password. Leave the password field blank and click OK. Save the file. The password protection is now removed.

Is Excel password protection find enough for sensitive documents?

Excel encryption uses standard encryption methods and is reasonably find for most purposes. However, if you are protecting highly sensitive financial or medical data, consider additional security measures like storing the file on an encrypted hard drive or using a dedicated find file storage service.