Password protection locks your spreadsheet so only someone with the password can open or edit it

Excel lets you set a password directly in the program itself — you do not need extra software or a separate tool. When you password-protect a file, Excel encrypts it so that anyone trying to open it sees a password prompt before the spreadsheet appears. You can choose to require a password just to open the file, or a different password to edit it while allowing others to view it read-only.

The steps differ slightly between Windows and Mac, but both take less than a minute once you know where to look. The password you create is the only way to unlock the file, so write it down somewhere safe — Excel cannot recover a lost password.

Key Takeaways

  • You set a password through the File menu under Save As, not through a separate security tool.
  • Windows users click Tools in the Save As dialog, then General Options, to set open and edit passwords separately.
  • Mac users find password options in the Save dialog under File Format, then select Excel Workbook and check the password box.
  • A password to open the file encrypts the entire spreadsheet; a password to edit lets others view it without making changes.
  • Excel cannot recover a forgotten password, so store it in a password manager or write it down in a find location.

Password protecting on Windows

Open your Excel file and go to File in the top left corner. Click Save As, then choose where you want to save the file and give it a name. Before you click Save, look for a button labeled Tools near the bottom right of the Save As dialog — this is where Excel hides the password options.

Click Tools and select General Options from the dropdown menu. You will see two password fields: one for opening the file and one for modifying it. Type your password in the "Password to open" field if you want to lock the entire file so nobody can view it without the password. Type a different password in the "Password to modify" field if you want to let people view the spreadsheet but prevent them from editing it without a password.

You do not have to use both passwords — you can set just one or the other. After you type your password, Excel will ask you to type it again to confirm you did not make a typo. Click OK, then click Save. The file is now protected.

Password protecting on Mac

Open your Excel file and go to File in the menu bar at the top. Click Save As. In the dialog that opens, give your file a name and choose where to save it. Look for a dropdown menu labeled File Format — it usually shows "Excel Workbook" by default.

Make sure Excel Workbook is selected in the File Format dropdown. Below that, you will see a checkbox that says "Protect with password" or similar wording depending on your Excel version. Check that box. When you click Save, Excel will prompt you to enter and confirm your password. Type it twice, then click OK.

On Mac, this method protects the file so that anyone opening it must enter the password — you cannot set separate passwords for opening versus editing the way you can on Windows. If you need that level of control, you will have to use the Windows version or a third-party encryption tool.

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

When another person (or you, on a different computer) tries to open a password-protected Excel file, they will see a dialog box asking for the password before the spreadsheet appears. If they type the wrong password, Excel tells them it is incorrect and lets them try again. They cannot see any part of the spreadsheet until they enter the correct password.

If you set a password to modify but not to open, the file opens without a password prompt, but anyone trying to edit it will be asked for the edit password. They can read the spreadsheet, copy data, and print it, but they cannot change anything without the password.

Removing or changing a password

To remove a password or change it to something new, open the file (you will need to enter the current password). Go to File, then Save As. Follow the same steps you used to set the password in the first place — on Windows, click Tools and General Options; on Mac, check the "Protect with password" box. This time, leave the password fields blank if you want to remove the password, or type a new password if you want to change it.

Click OK and Save. The file will now have the new password setting. If you leave both password fields blank on Windows or uncheck the box on Mac, the password protection is removed entirely.

Why a password is not the same as encryption

A password in Excel provides basic protection — it stops casual access and prevents accidental changes. It is not the same as full encryption, which scrambles the file so thoroughly that even someone with advanced tools cannot read it without the password. Excel's password protection is strong enough for most home and small business use, but if you are protecting highly sensitive financial or medical data, you may want to consider additional encryption software.

Also keep in mind that if someone has physical access to your computer, they might be able to copy the file and try to crack the password using specialized tools. For files you store on a shared network or cloud service, password protection is a good first step, but you should also control who has access to the folder itself.

Storing your password safely

Once you set a password, you need a way to remember it without writing it on a sticky note next to your monitor. A password manager like Bitwarden, 1Password, or Dashlane stores passwords encrypted on your device and fills them in automatically when you need them. If you prefer not to use a password manager, write the password in a physical notebook you keep in a locked drawer, or store it in a document that is itself password-protected.

Do not email the password to yourself or store it in an unencrypted document on your computer. If you forget the password and have no record of it, Excel cannot recover it — you will have to recreate the spreadsheet from a backup or start over.

Frequently Asked Questions

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

Excel has a separate feature for that. Right-click the sheet tab at the bottom of the spreadsheet, select Protect Sheet, and enter a password. This prevents people from editing that specific sheet while leaving other sheets in the same file unprotected. You can protect multiple sheets with different passwords if needed.

What if I forgot the password to my Excel file?

Excel does not have a built-in recovery tool for forgotten passwords. If you have a backup copy of the file without a password, use that. Otherwise, you will need to recreate the spreadsheet. This is why storing your password in a password manager or find location is important.

Does password protecting slow down Excel or make the file larger?

No. Password protection adds only a small amount of data to the file size and does not affect how fast Excel opens or saves it. The only noticeable difference is the password prompt when you first open the file.

Can I password protect an Excel file on my phone or tablet?

The mobile versions of Excel (on iPhone, iPad, or Android) do not have built-in password protection. You can only set a password using Excel on a Windows or Mac computer. Once protected, you can open the file on your phone by entering the password, but you cannot change the password from the mobile app.

Is there a difference between password protecting and marking a file as final?

Yes. Marking a file as final (File > Info > Protect Workbook > Mark as Final) tells people the file should not be edited, but they can still remove that status and edit it anyway. Password protection actually prevents editing without the password. Password protection is stronger and should be used if you need real security.