How to Change a Password in Excel: Step-by-Step
In this article
To change the password that protects an Excel workbook, open the file with its current password, go to File > Info > Protect Workbook > Encrypt with Password, type the new password in the box that appears, confirm it, and save. The same dialog is also where you remove a password entirely: clear the box and save. The steps below are for Excel on Windows and Mac desktop; the mobile Excel apps can open password-protected files but do not offer a way to set or change a workbook password, so use a computer for this.
What You'll Need
- The workbook file, saved somewhere you can write to (not a read-only network share or email attachment opened in Protected View).
- The current password, if the file is already encrypted. Without it, Excel cannot open the file to let you change anything.
- Excel for Windows or Mac, desktop version. The exact menu labels can differ slightly by version, device and region, but the File > Info route has been stable for years.
Step-by-Step
- Open the workbook in Excel. Double-click the file so Excel starts normally. If the file is already encrypted, Excel shows a password prompt first: type the current password and click OK. If you only have the file open in a preview pane or browser view, download it and open it in the desktop app instead.
- Make sure the file is editable. If the title bar says Read-Only or Protected View, click Enable Editing on the yellow bar. You cannot save a new password to a read-only copy. If the file sits on a shared drive, copy it to your desktop first, change the password there, then copy it back.
- Go to File > Info. Click File in the top-left corner, then Info in the left-hand menu. This is the backstage view where document protection lives.
- Click Protect Workbook. In the Info pane you will see a Protect Workbook button. Click it to open a small dropdown.
- Choose Encrypt with Password. A dialog box appears with a single password field. If the workbook already has a password, the field may show dots or be blank depending on version; either way, typing replaces the old password.
- Type the new password and click OK. Passwords are case-sensitive, so decide on the exact capitalization before you type. Use something you can remember or store in a password manager; Excel does not offer a recovery option.
- Confirm the password. Excel asks you to re-enter it. Type the identical string and click OK. If the two entries do not match, you get an error and must start the password step again.
- Save the file. Press Ctrl+S (Windows) or Cmd+S (Mac), or use File > Save. The new password does not take effect until the file is saved. If Excel prompts about file format, keep the existing format unless you have a reason to change it.
- Test it. Close the workbook completely, then reopen it. Excel should ask for the new password. If it opens without asking, the save did not complete or you saved a different copy; repeat from step 3 on the correct file.
To remove a password rather than change it, follow the same path to Encrypt with Password, delete everything in the field, click OK, and save. The workbook then opens without a prompt.
Common Mistakes
- Changing the password on a copy. If you opened an email attachment or a downloaded duplicate, you may be editing a temporary file. Check the full path in the title bar before saving.
- Forgetting that passwords are case-sensitive. Report2024 and report2024 are different passwords. Type carefully, especially on a laptop keyboard with Caps Lock on.
- Assuming sheet protection is the same thing. The password under Review > Protect Sheet stops edits to a worksheet; it does not encrypt the file. Changing the workbook password does not change sheet passwords, and vice versa.
- Not saving after the dialog closes. The password dialog can look like it has done the job, but until the file is saved the old password still applies.
- Using the mobile app and expecting a password option. The Excel mobile apps do not include Encrypt with Password. Use a desktop computer.
Tips
- Store the password in a password manager before you save. Excel offers no reset, hint or recovery email for workbook passwords.
- If several people need the file, consider a shared location with permissions instead of a password, or send the password through a different channel than the file itself.
- Keep a backup of the workbook before changing protection, in case you mistype the confirmation.
- For files you share often, note in the file name or a separate note that a password is required, so recipients are not surprised.
- If you use Excel for Microsoft 365, keep the app updated; older versions may show slightly different wording in the Protect Workbook menu.
Troubleshooting
- The Protect Workbook button is greyed out. The file is probably read-only or in Protected View. Click Enable Editing, or copy the file to a local folder and reopen it.
- Excel rejects the confirmation. The two entries did not match. Clear the field and retype both, watching for stray spaces at the start or end.
- The old password still works after saving. You likely saved a different copy or the save failed silently. Use File > Save As to a new name, then test that file.
- You forgot the current password. Excel cannot open the file without it, and there is no built-in recovery. Restore an unprotected backup if you have one; otherwise the encrypted contents are not accessible through normal Excel features.
- The password prompt never appears. Check whether the file is actually the one you saved, and whether it is stored in a location that syncs an older version (for example a cloud folder that has not finished uploading).
Frequently Asked Questions
Can I change an Excel password without knowing the old one?
No. If the workbook is encrypted, Excel needs the current password to open it before any change can be made. There is no official reset.
Does changing the workbook password also unprotect my worksheets?
No. Workbook encryption and sheet protection are separate. Sheet passwords are managed under Review > Protect Sheet.
Can I set a password in the Excel mobile app?
The mobile apps can open password-protected files but do not provide the Encrypt with Password option. Use Excel on a Windows or Mac computer.
What happens if I clear the password box?
The encryption is removed when you save. Anyone who can open the file can then read it without a prompt.
Is the password stored in the file itself?
Excel uses the password to encrypt the file; the password itself is not stored in readable form. That is why a forgotten password cannot be looked up.
Will a password stop someone from editing the file?
It stops them from opening it at all. If you only want to restrict editing, use sheet or workbook protection instead, which is a different feature.