The fastest way to change an Excel password

To change the password on an Excel file you've already protected, open the file in Excel, enter your current password when prompted, then go to File > Info > Protect Workbook > Encrypt with Password. Delete the old password, type your new one, and click OK. You'll be asked to re-enter the new password to confirm it. Save the file when you're done.

The exact menu names vary slightly between Excel on Windows, Excel on Mac, and Excel Online, but the process is the same: you're replacing the old password string with a new one in the encryption settings. You don't need to unprotect the file first or create a new copy.

If you've forgotten the password entirely, there is no built-in recovery method. Excel does not store a backup copy of your password, and Microsoft cannot retrieve it for you. Your only options are to use a third-party password recovery tool (which may or may not work depending on the Excel version and encryption strength) or to accept that the file cannot be opened.

Key Takeaways

  • You must know your current password to change it—Excel requires you to enter the old password before you can set a new one.
  • The change happens in File > Info > Protect Workbook > Encrypt with Password on Windows; on Mac, use File > Properties > Security.
  • After you type the new password, Excel asks you to type it again to confirm—mismatches will force you to start over.
  • Save the file when ready after changing the password, or the change will not take effect.
  • If you forget the new password, you cannot open the file again; there is no password recovery built into Excel.

Step-by-step for Windows Excel

Open the Excel file and enter your current password when the dialog box appears. Click the File tab in the top left corner. Select Info from the left sidebar. Look for the Protect Workbook button (it may say "Protect Workbook" or show a lock icon) and click the dropdown arrow next to it. Choose Encrypt with Password.

A dialog box will open showing a password field. The field will be empty or will show dots representing your current password. Clear the field completely and type your new password. Click OK. Excel will ask you to re-enter the new password in a second dialog to confirm you typed it correctly. Type it again and click OK. You'll see a confirmation message. Click File > Save (or press Ctrl+S) to save the file with the new password.

Step-by-step for Mac Excel

Open the Excel file and enter your current password. Click the File menu at the top. Select Properties. Click the Security tab. You'll see a field labeled "Password to open". Clear it and type your new password. Click the OK button. Excel will ask you to type the new password again to confirm. Type it and click OK. Save the file using File > Save or Command+S.

On some versions of Mac Excel, the Security tab may be labeled differently or located under a different menu path. If you don't see a Security tab, try File > Info and look for a lock icon or "Protect" option instead.

What happens if you type the passwords wrong

If the two passwords you type don't match—the first one and the confirmation—Excel will tell you they don't match and ask you to try again. You'll go back to the first password field and can start over. This is a safety feature to catch typos before you lock yourself out.

If you type a new password, confirm it, and then later realize you made a typo in both fields (so they matched each other but weren't what you intended), you'll need to change the password again. You'll use the wrong password you just created to open the file, then follow the same steps to set the correct one.

Excel Online and cloud-stored files

If your file is stored in OneDrive, SharePoint, or another cloud service and you're using Excel Online (the browser version), the password change process is the same: File > Info > Protect Workbook > Encrypt with Password. The file saves automatically after you confirm the new password, so you don't need to manually save it.

Cloud storage does not bypass the password protection. The file remains encrypted on the server, and anyone who tries to read or open it will still need to enter the password. Changing the password in Excel Online changes it everywhere the file is stored.

Why you should write down your new password somewhere safe

Excel has no password recovery option. If you forget the password, you cannot open the file, and no one at Microsoft can help you retrieve it. Before you change your password, decide where you'll store it so you don't lose it. A password manager (like Bitwarden, 1Password, or Dashlane) is the safest option because it encrypts the password and you only need to remember one master password. A locked drawer, a safe, or a notebook kept in a find location also works if you prefer not to use digital storage.

If you share the file with others, tell them the new password through a separate channel—never in the same email or message where you send the file itself. This way, if someone intercepts the file, they won't have the password in the same place.

Frequently Asked Questions

Do I need to know the old password to change it?

Yes. Excel requires you to enter the current password before you can set a new one. If you don't know the current password, you cannot open the file to change it. There is no admin override or master password in Excel.

Can I remove the password instead of changing it?

Yes. Follow the same steps (File > Info > Protect Workbook > Encrypt with Password on Windows), but leave the password field blank and click OK. The file will no longer be password-protected. Save the file when done.

Will changing the password affect the file's contents or formulas?

No. Changing the password only changes the encryption key. All data, formulas, formatting, and sheets remain exactly as they were. The file itself is not modified—only the lock protecting it.

What if I change the password but forget to save the file?

The password change will not take effect. When you close the file without saving, Excel will ask if you want to save changes. If you click "Don't Save", the old password will still be active. Always save the file after changing the password.

Can I use the same password for multiple files?

Yes, but it's not recommended. If someone learns that password, they can open all your protected files. Using a different password for each file means a breach of one file doesn't compromise the others. A password manager makes it easier to keep track of different passwords.