How to Password-Protect Excel Files for Viewing and Editing
Question details
The user wants to set up separate passwords for an Excel file to restrict who can view the document and who can modify its contents.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Securing sensitive spreadsheet data while allowing restricted view-only or edit access to different users.
- Observed behavior
- Need clear steps on configuring both a password to open and a password to modify within Excel's file protection settings.
Ensure you memorize or securely store the passwords you set, as forgotten Excel passwords cannot be recovered.
Set Dual Passwords Using General Options
This method allows you to configure both a password to open and a separate password to modify the workbook in one place.
Microsoft Excel allows you to apply two different levels of file protection. You can assign one password for users who only need to view the file and another for those authorized to edit it.
Open your workbook in Microsoft Excel, go to the 'File' tab, and click on 'Save As'. Choose a location to save your file.
In the Save As dialog box, click on 'Tools' located next to the Save button, and select 'General Options' from the dropdown menu.
Enter a password in the 'Password to open' field and a different password in the 'Password to modify' field, then click 'OK'.
You will be prompted to re-enter both passwords to confirm them. Once confirmed, click 'Save' to apply the protection to your file.

Encrypt the Workbook for Opening Only
Use this quick method if your only goal is to completely block unauthorized users from opening the file.
Password-Protect Spreadsheets Easily in WPS Office
WPS Office Spreadsheet provides robust encryption features to protect your sensitive data. You can easily set both viewing and editing passwords, completely for free.
- 1. Open Save As: Open your spreadsheet in WPS Office and go to 'Menu' > 'Save As'.
- 2. Access Encryption: Click on the 'Encrypt' button located in the bottom right corner of the Save As dialog box.
- 3. Set Passwords: Enter your passwords in the 'Document Password' (to open) and 'Password to modify' fields.
- 4. Save the Document: Click 'OK' to confirm the passwords, then save the file to apply the protection.

Frequently Asked Questions
Can I recover my Excel password if I forget it?
No, Excel does not have a built-in password recovery feature. If you lose or forget the password to open or modify the workbook, you cannot recover the data. Always keep a secure backup of your passwords.
What is the difference between file protection and worksheet protection?
File-level protection requires a password to open or modify the entire workbook file itself. Worksheet protection, accessed via the 'Review' tab, restricts specific actions (like editing cells or formatting) within a particular sheet after the file is already open.
How do I remove the password protection from my Excel file?
Open the file using your password. Go to 'File' > 'Save As' > 'Tools' > 'General Options'. Delete the asterisks or dots in the password text boxes so they are empty, click 'OK', and save the file to overwrite it without protection.
Can a user bypass the 'Password to modify' restriction?
Without the modify password, a user can only open the file in Read-Only mode. They can view the data and make changes locally, but they cannot save those changes over the original file; they must save it as a new, separate copy.




