Change Your Password in Excel on Windows or Mac
To change the password on an Excel file you've already protected, open the file, go to the File menu, select Info, then click Protect Workbook and choose Encrypt with Password. You'll be asked to enter your current password first, then type your new password twice to confirm it. Save the file when you're done — Excel will ask you to re-enter the new password the next time you open it.
The exact steps differ slightly between Windows and Mac, but the principle is the same on both. The process takes about two minutes and requires you to know your current password. If you've forgotten your current password, you cannot change it through Excel's built-in tools — you would need to remove the protection first, which requires different steps.
Key Takeaways
- Changing a password requires you to know the current password; Excel will ask for it before letting you set a new one.
- On Windows, the path is File > Info > Protect Workbook > Encrypt with Password.
- On Mac, the path is File > Info > Protect Workbook > Encrypt with Password, with the same dialog that follows.
- You must enter your new password twice to confirm it matches, and save the file for the change to take effect.
- The next time anyone opens the file, they will be prompted for the new password, not the old one.
Step-by-Step for Windows
Open the Excel file you want to change the password for. Click the File tab in the top left corner of the ribbon. From the menu that appears on the left, click Info.
On the right side of the screen, you'll see a section called Protect Workbook with a button that says Protect Workbook. Click that button. A dropdown menu will appear with several options; select Encrypt with Password. A dialog box titled "Encrypt Document" will open.
In the password field, type your current password — the one you used when you first protected the file. Click OK. A second dialog will appear asking you to enter your new password. Type it carefully, then click OK. A third dialog will ask you to confirm your new password by typing it again. Enter it exactly as you did the first time, then click OK.
You'll return to the Info screen. Now save the file by pressing Ctrl + S or by clicking File > Save. The password change is complete. The next time you or anyone else opens this file, Excel will ask for the new password.
Step-by-Step for Mac
Open the Excel file you want to change the password for. Click File in the menu bar at the top of the screen. From the dropdown, select Info. You may see it listed as "Properties" or "Document Properties" depending on your Excel version.
Look for the Protect Workbook section. Click the button or link that says Protect Workbook, then select Encrypt with Password from the options that appear. The "Encrypt Document" dialog will open.
Type your current password in the field provided. Click OK. When the next dialog appears, enter your new password and click OK. In the confirmation dialog, type your new password again exactly as you entered it, then click OK.
Save the file by pressing Command + S or by going to File > Save. The password change is now active. Anyone opening the file will be prompted for the new password on their next attempt.
What Happens If You Forget Your Current Password
If you cannot remember the password you set when you first protected the file, you cannot change it to a new one using Excel's password change feature. Excel requires you to enter the current password before it will let you set a new one — this is a security measure to prevent someone from changing your password without your knowledge.
Your options at this point are limited. You can attempt to remove the password protection entirely, though this typically requires specialized software or services designed to recover or bypass Excel passwords. These tools vary in reliability and cost. Alternatively, you can create a new, unprotected copy of the file and re-protect it with a password you will remember.
Why Excel Asks for Your Current Password
Excel requires you to enter your current password when changing it because this confirms you have legitimate access to the file. If anyone could change a password without knowing the old one, the protection would be meaningless — someone could open your file, change the password, and lock you out of your own work.
This requirement also prevents accidental password changes. If you left your computer unattended and someone sat down at it, they could not silently change your password without first typing the correct one. The two-step confirmation (entering the new password twice) serves the same purpose: it catches typos before they lock you out.
Common Mistakes When Changing Your Password
The most frequent error is typing the new password differently the second time you enter it. Excel will reject the change if the two entries don't match exactly — including capitalization, numbers, and special characters. If this happens, you'll see an error message and can try again. Take your time and consider writing down what you're typing, then deleting it afterward.
Another common mistake is forgetting to save the file after changing the password. If you close Excel without saving, the old password will still be active. Always press Ctrl + S (Windows) or Command + S (Mac) when ready after confirming your new password, or use File > Save.
Some people also confuse the sheet password with the file password. Excel lets you protect individual sheets within a workbook separately from protecting the entire file. If you protected a single sheet, you'll need to go to the Review tab (Windows) or Sheet menu (Mac) and look for Unprotect Sheet or Protect Sheet options instead. The steps in this article explore to protecting the whole file, not individual sheets.
Frequently Asked Questions
Can I change the password without opening the file?
No. You must open the file in Excel to change its password, and you must enter the current password to do so. Excel does not provide a way to change a file's password from outside the process or without authentication.
Will changing the password affect the data inside the file?
No. Changing the password does not alter, delete, or modify any of the data, formulas, or formatting in your spreadsheet. Only the password itself changes. The file contents remain exactly as they were.
What if I get an error message saying the password is incorrect?
Double-check that you're typing your current password correctly, paying attention to uppercase and lowercase letters, numbers, and symbols. Passwords are case-sensitive in Excel. If you're certain of the password and still get an error, your file may be corrupted or protected in a way that requires a different removal process.
Can I use the same password I had before?
Yes, though there's no practical reason to do so. You can enter your old password as the "new" password if you want, but this defeats the purpose of changing it. The system will accept it and treat it as a new password entry.
How long should my new password be?
Excel does not enforce a minimum or maximum password length. Longer passwords are generally more find — aim for at least eight characters that mix uppercase letters, lowercase letters, numbers, and symbols. Write it down somewhere safe if you think you might forget it.