How to Password Protect an Excel File: Easy How-to Guide
Feb 23, 2026
To password-protect an Excel file, go to File > Info > Protect Workbook > Encrypt with Password. This ensures no one can open the document without the correct credentials. If you only need to lock an Excel sheet to prevent editing while keeping the data visible, use the Review > Protect Sheet option. This guide explores every level of Excel security, from locking cells and hiding formulas to making files read-only, ensuring your sensitive financial data remains confidential. Whether you are using Windows or Mac, protecting your spreadsheets takes less than 30 seconds and is a critical step for secure file sharing and data integrity.
- Lock an Excel File in 30 Seconds
- Types of Excel Protection
- Comparison of Protection Levels
- Other Ways to Protect an Excel File
- Can You Lock Excel Files Online?
- How to Remove or Change a Password in Excel
- What Happens If I Lose My Password?
- Common Problems and Fixes
- Best Security Practices When Sharing Excel Files
- Frequently Asked Questions
Lock an Excel File in 30 Seconds
Here’s the fastest way to use built-in Microsoft Excel password protection. This method encrypts the entire document, requiring users to enter a password to use it.
For Windows:
-
Open the Excel file.
-
Click File → Info.
-
Select Protect Workbook.
-
Choose Encrypt with Password.

-
In the password box, type a strong password.
-
Select OK.

-
In the re-enter password box, re-enter the same password to confirm
-
Press OK.

For Mac:
-
Open the spreadsheet in Microsoft Excel.
-
Click Review → Protect.
-
Choose Protect Workbook.
-
Select Encrypt.
-
Type a password in the password box.
-
Confirm in the reenter password box.
-
Click Save.
Types of Excel Protection
Microsoft Excel offers several ways to protect your spreadsheets. Each option controls a different level of access. Hence, the right one depends on what you want users to do with the file. Additionally, only encryption truly locks the file.
File Password (Full Security)
This is real password protection. The entire Excel workbook is encrypted, and no one can open it unless they enter a password.
Best for:
- sensitive information
- financial records
- personal data
- confidential work documents
Protect Workbook Structure
The Protect workbook box prevents users from changing the workbookis organization. They can still open the file and read data, but can't rename, move, delete, or add new sheets.
Worksheet Protection
Knowing how to lock Excel sheet permissions is vital for collaboration. The file opens normally, but editing is restricted. You can password-protect Excel sheet from viewing certain elements by hiding rows or columns before locking.
Comparison of Protection Levels
Use this table to quickly identify how to add password to excel features based on your specific needs.
| If You Want to... | Use This Feature | Security Level |
|---|---|---|
| Stop anyone from opening the file | Encrypt with Password | High |
| Prevent sheet deletion or renaming | Protect Workbook | Medium |
| Prevent value editing in a sheet | Worksheet Protection | Medium |
| Lock formulas only | Cell Protection | Low |
| Allow viewing but discourage changes | Read-only Mode | Low |
Other Ways to Protect an Excel File
Below are more ways to protect your Excel depending on what level of control or security you need.
Protect Workbook Structure
- Open the spreadsheet.
- Go to Review.
- Click Protect Workbook.

- Tick Structure under "protect workbook for."
- Enter a password.

- Confirm password and save.
Protect a Worksheet
This controls editing inside a worksheet while keeping the file visible.
-
Open the sheet.
-
Click Review → Protect Sheet.
-
Enter a password in the password box.
-
Select permissions (select cells, sort, filter).
-
Click OK.

-
Re-enter the password and confirm.
Make File Read-Only
Light protection for shared Excel spreadsheets.
-
Click File → Save As.
-
Choose your location and click More Options.

-
Click Tools (near the Save button).
-
Select General Options.

-
Enter a password under Password to modify.
-
Click OK, confirm the password, and save.

Can You Lock Excel Files Online?
Currently, you cannot encrypt a file or apply new password protection directly in the browser version of Excel. You must use the desktop application to apply encryption. Once encrypted, the file will remain protected when opened in Excel Online, though some editing features may be limited.
How to Remove or Change a Password in Excel
You can remove or update password protection as long as you still have access to the Excel file and know the current password.
Remove Password From an Encrypted File
- Open the Excel workbook and enter the password.
- Go to File → Info → Protect Workbook → Encrypt with Password.
- Delete the text inside the password box and click OK.
- Save the document.
Change the Password
You can always update your Excel password by following these steps:
-
Open the spreadsheet.
-
Enter the current password.
-
Go to Protect Workbook → Encrypt with Password.
-
Type the new password in the password box.
-
In the re-enter password box, confirm.
-
Click save.
Remove Worksheet or Workbook Protection
If you used worksheet protection or protect workbook instead of encryption:
-
Open the sheet.
-
Go to Review.
-
Select Unprotect Sheet or Unprotect Workbook.
-
Enter password.
-
Click OK.
What Happens If I Lose My Password?
It is important to note that Microsoft cannot retrieve your password if you forget it. Unlike a web account, where you can "reset" via email, Excel encryption is local. If you lose the password, the data is generally considered unrecoverable. For this reason, always keep your passwords in a secure password manager like Dashlane or 1Password.
Common Problems and Fixes
Below are the most common issues users encounter when they lock Excel file access.
Password Option Greyed Out
This is usually caused by read-only or shared access. Save the file locally and reopen it to enable protection options.
File Still Editable
You likely used worksheet protection instead of encryption. Excel password-protect functions differently at the sheet level than the file level. Use File → Info → Protect Workbook for total lockdown.
Best Security Practices When Sharing Excel Files
Use these habits to keep sensitive information safe when protecting your Excel documents and sharing them with other users.
- Use a strong password: Avoid simple numbers.
- Share credentials separately: Never send the password in the same email as the file.
- Store in a password manager: Prevents data loss from forgotten passwords.
- Encrypt sensitive data: Don't rely on simple sheet locking for financial records.
Final Thoughts
Now you know how to password-protect an Excel file and which protection level to use for each situation. Microsoft Excel provides multiple tools, and choosing the right one determines whether users can only view, edit, or not open the file at all.
For real protection of sensitive information, always encrypt the Excel workbook and store the credentials safely. For collaboration, combine sheet permissions with controlled access so users can work without risking the data.
Used correctly, Excel security prevents mistakes and limits unauthorized changes and access.
FAQ
Can someone bypass an Excel password?
If the file uses Encrypt with Password, the encryption prevents users from opening the document without the correct password. It is very difficult to bypass without specialized brute-force software.
What is the difference between Protect Sheet and Encrypt?
Protect Sheet controls editing inside the worksheet. Encrypt with Password locks the entire file, so users must enter a password before access is allowed.
How do I password protect Excel on Mac?
Open the spreadsheet → Review → Protect → Encrypt → enter password → confirm → save.
How do I lock Excel sheet from editing?
Go to the Review tab, select Protect Sheet, enter a password, and choose which actions (like selecting or formatting) you want to allow users to perform.
Related Articles
How to Remove Duplicates in Google Sheets Without Using Apps Script
A Reference Isn't Valid Excel Error | How to Fix this Excel Error?
Want to Make Excel Work for You? Try out 5 Amazing Excel Templates & 5 Unique Lessons
We hate SPAM. We will never sell your information, for any reason.
