How to change a password on an Excel file you already protected

To change the password on an Excel file, you open the file with its current password, then use the same protection dialog where you set it originally. In Excel on Windows, go to File > Info > Protect Workbook > Encrypt with Password. Delete the old password from the box, type your new one, and click OK. You'll type it again to confirm. On Mac, the path is File > Properties > Security > change the password field. The file saves with the new password the next time you save it.

If you've forgotten the current password, you cannot change it through Excel itself — you'll need to use a third-party password recovery tool, which may or may not work depending on the encryption strength Excel used. Prevention is simpler than recovery: write down new passwords in a password manager like Bitwarden, 1Password, or KeePass rather than relying on memory.

Key Takeaways

  • Open the file with its current password first; you cannot change a password without opening the file.
  • On Windows, use File > Info > Protect Workbook > Encrypt with Password and replace the old password with the new one.
  • On Mac, go to File > Properties > Security and update the password field.
  • If you forget the current password, Excel has no built-in recovery — you'll need a third-party tool that may not work on newer Excel versions.
  • Store new passwords in a password manager so you don't have to remember them or write them on paper.

Step-by-step for Windows Excel

Open the file you want to change the password for. Excel will prompt you for the current password if one is set. Type it and click OK.

Once the file is open, click the File tab in the top-left corner. From the menu on the left, click Info. On the right side of the screen, you'll see a button labeled Protect Workbook with a dropdown arrow next to it. Click that dropdown and select Encrypt with Password.

A dialog box will appear with a single text field. This field still contains your old password, shown as dots. Select all the text in the field and delete it. Type your new password. Click OK. Excel will ask you to type the new password again to confirm you didn't make a typo. Type it and click OK again. The next time you save the file, it will save with the new password.

Step-by-step for Mac Excel

Open the file and enter the current password when prompted. Click the File menu at the top of the screen and select Properties. A new window will open.

In the Properties window, click the Security tab. You'll see a field labeled Password to open with dots representing your current password. Click in that field, select all the text, and delete it. Type your new password. Click OK. Mac will ask you to confirm the new password. Type it again and click OK. Save the file to explore the change.

What happens if you forget the current password

If you open an Excel file and realize you don't remember the password, Excel will not let you in. There is no "forgot password" button or recovery option built into Excel itself. You have two paths: use a password recovery tool, or accept that you cannot open the file.

Third-party password recovery tools exist — programs like PassFab for Excel or Accent Excel Password Recovery can sometimes crack older Excel passwords. These tools work by trying many password combinations very quickly. However, they are much less effective on files created in Excel 2013 or later, which use stronger encryption. Even then, recovery can take hours or days depending on password length and complexity. These tools cost money (usually $30 to $60 for a one-time license) and success is not may provide.

The practical lesson: if you create a password-protected Excel file, store the password somewhere you can retrieve it. A password manager like Bitwarden (free), 1Password ($3 per month), or KeePass (free, offline) is far more reliable than writing it down or trying to remember it.

Changing the password on a shared workbook

If your Excel file is shared with others through OneDrive, SharePoint, or Teams, the password protection works differently. Excel's password encryption protects the file on your computer, but shared files in the cloud are protected by your Microsoft account login instead. You don't set a separate password for the file itself.

If you want to change who can access a shared file, you change the sharing settings in OneDrive or SharePoint, not in Excel. Right-click the file in OneDrive, select Share, and adjust who has access. If you want to password-protect a shared file before uploading it, protect it first while it's on your computer, then upload the protected version.

Why the password prompt appears every time you open the file

Once you set a password on an Excel file, Excel will ask for it every single time you open that file — even if you open it on the same computer, in the same session, or when ready after closing it. There is no "remember this password" option. This is by design: the password is meant to stay required so that anyone who gains access to your computer cannot straightforward open the file without knowing the password.

If you find yourself typing the same password dozens of times a day, consider whether you actually need the password. If the file contains sensitive information and lives on a shared computer or network drive, the password makes sense. If it's on your personal computer and you're the only user, the password mainly creates friction. You can remove it by following the same steps above but leaving the password field empty when prompted.

Frequently Asked Questions

Can I change the password without opening the file first?

No. Excel requires you to open the file with the current password before you can change it. If you don't know the current password, you cannot change it through Excel — you would need a third-party recovery tool first.

Does changing the password affect the file's data or formatting?

No. Changing the password does not alter any content, formulas, formatting, or structure in the file. It only changes what password is required to open it. The file itself stays exactly the same.

If I change the password, do other people with the file need to know the new one?

Yes. If you've shared the file with others and they have a copy, they will need the new password to open it. You'll need to tell them the new password separately — Excel doesn't notify them automatically. If the file is shared through OneDrive or Teams, the password protection applies only to local copies; the cloud version is protected by account permissions instead.

What's the difference between password-protecting a file and password-protecting a sheet?

File protection requires a password to open the file at all. Sheet protection (found under File > Info > Protect Sheet) lets people open the file but prevents them from editing specific sheets or cells. Sheet protection is weaker and easier to remove. File protection is stronger because it encrypts the entire file.

Can I use the same password I use for other accounts?

Technically yes, but it's not recommended. If someone cracks your Excel password, you don't want them to also have a password that works on your email, banking, or other accounts. Use a unique password for each file or account. A password manager makes this straightforward — it generates and stores different passwords for you.