How to Recover a Forgotten Password for an Office 2021 Excel Workbook
Question details
The user has forgotten the password to an important Office 2021 Excel workbook and needs to find a way to recover access to the data.

- Product
- Microsoft Excel 2021
- Device & OS
- not provided
- Scenario
- Trying to open a password-protected Excel workbook without knowing the encryption password.
- Observed behavior
- The file cannot be opened because the password is forgotten, and Microsoft security policies prevent bypassing the password.
Before attempting data recovery, ensure that Caps Lock was not accidentally turned on when setting the password, as Excel passwords are case-sensitive, and try any common password variations you might have used.
Restore from a OneDrive or SharePoint Version History
Since Microsoft cannot recover encrypted passwords, restoring a previous, unencrypted version from your cloud storage is the most reliable recovery method.
Microsoft's security protections are designed to prevent unauthorized access. This means there is no supported feature or Microsoft support service that can recover a forgotten password for you. However, if your file was synced to OneDrive or SharePoint before the encryption was applied, you can restore an older version of the document.
Open your web browser and sign in to your OneDrive or SharePoint online account where the Excel file is saved.
Navigate to the folder containing your locked Excel workbook.
Right-click the Excel file and select 'Version history' from the context menu.
Look for a version of the file saved before you added the password protection. Click the three dots next to that version and select 'Restore' to recover your data.

Recover Using Windows File History
If you utilize local backups via Windows File History, you can restore a previous iteration of the workbook from your local drive.
Prevent Data Loss with WPS Office's Cloud Features
While forgotten encrypted passwords cannot be bypassed in Microsoft Office, you can prevent permanent data loss by switching to WPS Office. It provides robust cloud backups, built-in file recovery, and seamless compatibility with Microsoft Excel formats, all within a free and lightweight suite.
- 1. Download and Install: Download WPS Office Free from the official website and follow the easy installation instructions.
- 2. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing .xlsx files with complete format compatibility.
- 3. Enable Cloud Backup: Sign in to activate WPS Cloud and turn on Auto-Backup, ensuring your version history is always securely saved.

Frequently Asked Questions
Can Microsoft support reset my Excel workbook password?
No. Microsoft support cannot reset or recover forgotten passwords for encrypted Office files. Strict privacy and security protocols prevent them from accessing or bypassing user-defined encryption.
Are third-party password cracking tools safe to use?
No, using third-party password cracking tools is strongly discouraged. These tools often contain malware, compromise your system's data security, and violate Microsoft's policies against bypassing security protections.
Does changing the file extension bypass the Excel password?
No. Changing the file extension (for example, from .xlsx to .zip) will not remove the workbook's encryption password. You must rely on backups or version history to recover your data.
How can I prevent losing access to password-protected files in the future?
To avoid losing access to encrypted files, always store your passwords securely using a trusted password manager, and regularly save copies of your important workbooks in a cloud storage service like OneDrive or WPS Cloud to utilize automatic version history.




