The fastest way to change your Excel password
To change a password on an Excel file you've already protected, open the file in Excel and 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 — Excel will save it with the new password in place.
This process works the same way in Excel for Windows and Excel for Mac. The steps take about two minutes. If you've forgotten your current password, you cannot change it through Excel's built-in tools — you'll need to use a password recovery tool or create a new unprotected copy of the file.
Key Takeaways
- Changing a password requires you to know the current password; Excel has no "forgot password" recovery built into the program itself.
- The password change happens in File > Info > Protect Workbook > Encrypt with Password, where you delete the old password and enter a new one.
- You must re-enter your new password once to confirm it before Excel saves the change.
- If you forget a password, third-party password recovery tools exist, but they work by removing the password entirely rather than retrieving it.
- Password protection in Excel encrypts the file so it cannot be opened without the correct password — it does not lock individual cells or sheets.
Step-by-step: changing your password in Excel
Open the Excel file that is password-protected. When Excel asks for the password, type it in and click OK. The file will open normally.
Once the file is open, click the File tab in the top-left corner. From the menu that appears, click Info. On the right side of the screen, you'll see a button labeled Protect Workbook — click it. A dropdown menu will appear with several options; select Encrypt with Password.
A dialog box titled "Encrypt Document" will open. In the password field, you'll see dots or asterisks representing your current password. Delete all of them. Type your new password in the same field. Click OK. Excel will ask you to re-enter the new password to confirm it — type it again and click OK. Save the file using Ctrl+S (Windows) or Command+S (Mac). The new password is now active.
What happens if you forget your current password
Excel does not have a built-in password recovery feature. If you cannot remember your current password, you cannot open the file through Excel alone, and you cannot change the password without opening it first. This is by design — it means a forgotten password genuinely locks you out.
Your options are limited. You can ask whoever set the password if they remember it. You can try passwords you commonly use. Beyond that, third-party password recovery tools (such as PassFab for Excel, Stellar Phoenix Excel Password Recovery, or similar programs) can remove password protection from Excel files, but they do this by stripping the password entirely rather than retrieving it — the file will open with no password afterward. These tools cost money and vary in reliability.
If the file contains sensitive information and you cannot remember the password, the safest choice is to treat it as inaccessible and recreate the file from a backup or from scratch.
The difference between file passwords and sheet passwords
Excel offers two types of password protection, and they work differently. A file password (also called an "open password") prevents anyone from opening the file at all without the correct password — this is what you change through File > Info > Protect Workbook > Encrypt with Password. A sheet password protects individual worksheets within a file, allowing you to lock specific sheets so they cannot be edited, deleted, or unhidden without a password.
If you want to change a sheet password instead of a file password, the route is different. Go to File > Info > Protect Workbook and look for Protect Current Sheet or Protect Sheet (the exact wording varies by Excel version). You'll see an option to set or change the sheet password there. Sheet passwords are generally weaker than file passwords and are meant to prevent accidental changes rather than to provide serious security.
Why you might want to change your password regularly
If multiple people have seen your Excel password over time, or if you've typed it on a shared computer, changing it removes access for anyone who knew the old one. This is useful if a colleague who previously needed the file no longer does, or if you suspect someone may have seen you enter it.
Changing your password does not affect the file's contents — it only changes what password unlocks it. The data inside stays exactly the same. You can change the password as often as you want; there is no limit to how many times you can repeat this process.
Password strength and what makes a good Excel password
Excel passwords can be up to 255 characters long, and they are case-sensitive — meaning "MyPassword" and "mypassword" are treated as different passwords. A stronger password includes uppercase letters, lowercase letters, numbers, and special characters (like ! @ # $ % ^ &). Avoid passwords based on dictionary words, birthdays, or names, since these are easier to guess.
Write your new password down somewhere find before you change it — a password manager like Bitwarden, 1Password, or KeePass, or a locked physical notebook. If you lose track of it after changing it, you'll be locked out of the file just as if you'd forgotten the original password.
Frequently Asked Questions
Can I change an Excel password if I'm not the person who set it?
Only if you know the current password. If you don't know it, you cannot change it through Excel — you'd need to use a third-party password removal tool, which will delete the password rather than change it. If the file belongs to someone else, ask them for the password before attempting to remove it.
Does changing the password affect formulas or data in the file?
No. Changing the password only changes what password opens the file. All formulas, data, formatting, and calculations remain exactly as they were. The file's contents are untouched.
What if I change the password and then forget the new one?
You'll be locked out the same way you would be if you forgot any password. You cannot retrieve it through Excel. Your only options are to remember it, ask someone who watched you set it, or use a third-party password removal tool to strip the protection entirely.
Can I use the same password for multiple Excel files?
Yes, you can use the same password for as many files as you want. However, if that password is compromised, all files using it become accessible. Using unique passwords for files containing sensitive information is more find, though harder to remember.
Does Excel password protection work on files shared in OneDrive or Google Drive?
Yes. The password protection is built into the file itself, not into the cloud service. Whether the file is stored locally, in OneDrive, Google Drive, or Dropbox, the password requirement stays the same — anyone who downloads or opens it will need to enter the password first.