Data Protection Issues

How to Password-Protect Excel Files for Viewing and Editing

Steven ParkerSteven Parker Nov 10, 2026 871 views

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.

How to Password Protect Excel Files for Viewing and Editing
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.
Before you start

Ensure you memorize or securely store the passwords you set, as forgotten Excel passwords cannot be recovered.

Solution 1Recommended

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.

1
Open the Save As dialog

Open your workbook in Microsoft Excel, go to the 'File' tab, and click on 'Save As'. Choose a location to save your file.

2
Access General Options

In the Save As dialog box, click on 'Tools' located next to the Save button, and select 'General Options' from the dropdown menu.

3
Enter the passwords

Enter a password in the 'Password to open' field and a different password in the 'Password to modify' field, then click 'OK'.

4
Confirm and save

You will be prompted to re-enter both passwords to confirm them. Once confirmed, click 'Save' to apply the protection to your file.

Set Dual Passwords Using General Options
Access Levels: Users with only the open password will be able to read the data but cannot make changes to the original file. They will be prompted to open the file as Read-Only.
Secure Your Spreadsheets with WPS Office

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. 1. Open Save As: Open your spreadsheet in WPS Office and go to 'Menu' > 'Save As'.
  2. 2. Access Encryption: Click on the 'Encrypt' button located in the bottom right corner of the Save As dialog box.
  3. 3. Set Passwords: Enter your passwords in the 'Document Password' (to open) and 'Password to modify' fields.
  4. 4. Save the Document: Click 'OK' to confirm the passwords, then save the file to apply the protection.
Easily set 'Password to open' and 'Password to modify' for any spreadsheet.Fully compatible with Microsoft Excel formats (.xlsx, .xls).Lightweight, free to use, and features a highly familiar user interface.
microsoft office alternative - wps office

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.