To password protect Excel files properly, you need to know what Excel actually encrypts — and what it does not. Salaries, customer lists, financial forecasts, supplier contracts. Whether you are sending a file to a client, storing it on a shared drive, or just keeping it on your laptop, protecting it is a smart move.
But password protection in Excel has many layers, and not all of them are equally strong. Some protect against casual peeking. Some protect against editing. Only some actually encrypt the file.
In this article, I will explain the different types of protection in Excel, how to apply them properly, and what each one actually protects against. By the end, you will know which type you need. You will also learn how to password protect Excel files the right way.

The Three Main Types of Excel Protection
Excel offers three main protection features, and they serve different purposes:
- File open password — encrypts the file so it cannot be opened without a password. This is the strongest form of protection.
- Workbook structure password — prevents adding, deleting, or renaming sheets. Does not stop editing of cell contents.
- Sheet protection — prevents editing cells on a specific sheet. Does not encrypt anything.
Most users use the wrong one. For real security, use a file open password. For preventing casual edits, use sheet protection. For preventing sheet structure changes, use workbook structure protection. The right choice depends on whether you want to password protect Excel files from being opened, edited, or restructured.
Type 1: File Open Password (Strongest)
This is the one you should use when the file itself needs protection — for example, when emailing a salary sheet or sending a client proposal.
Step-by-step:
- Open the file.
- Go to File > Info > Protect Workbook > Encrypt with Password.
- Enter a password. Confirm it.
- Save the file.
From now on, anyone opening the file must enter the password. Without it, the file is encrypted and unreadable. This is real encryption, not just a checkbox. Even tools that open Excel files cannot access the data without the password. That is why a file open password is the strongest way to password protect Excel files.
Important note: Excel offers no way to recover a forgotten password. If you lose the password, the file is gone. Write it down somewhere safe, or store it in a password manager. That is the trade-off when you password protect Excel files with encryption: the password is the only key.
Type 2: Workbook Structure Password
This prevents someone from adding, deleting, renaming, moving, or hiding sheets. Cell editing is still allowed.
Step-by-step:
- Go to Review > Protect Workbook.
- Check “Structure”.
- Enter a password.
- Click OK.
Now if someone tries to delete a sheet, right-click is disabled or shows a message. The structure is locked. But cells inside the sheets are still editable unless sheet protection is also enabled.
This is useful when you have built a workbook with carefully arranged sheets and you do not want someone accidentally deleting one. It is not a security measure — the data is not protected. It is a structural safeguard. It will password protect Excel workbooks only at the structure level, so the data itself stays editable.
Type 3: Sheet Protection
This prevents editing cells on a specific sheet. It is what most people mean when they say “protect the sheet”. In short, this is the everyday way to password protect Excel sheets against casual edits.
Step-by-step:
- Go to Review > Protect Sheet.
- Enter a password (optional — you can protect without one, but the protection can be removed by anyone).
- Choose what users can do: select cells, format cells, insert rows, sort, filter, etc.
- Click OK.
Important: sheet protection is not encryption. It stops accidental edits and casual changes. It does not stop anyone with technical skill from opening the file. In fact, sheet protection can be bypassed easily with simple tools. It is a convenience feature, not a security feature.
For sensitive data, use a file open password, not just sheet protection.
Why Sheet Protection Has Limits
Excel’s sheet protection has been criticized for years because it is easy to bypass. Anyone with a bit of VBA knowledge or the right tool can remove sheet protection without knowing the password. This is not a bug — it was designed this way. Microsoft assumes you are protecting against yourself or a colleague who does not know how to bypass it.
So use sheet protection to prevent accidental edits in shared files. Do not use it to protect sensitive data. For that, use file open password or a different tool entirely. A file open password remains the way to password protect Excel files that hold sensitive data.
Protecting Specific Cells but Allowing Others
A common pattern is to allow editing of some cells while locking the rest. For example, in a form, you want users to enter data in certain cells but not to change labels or formulas.
Step-by-step:
- Select the cells users should be able to edit.
- Right-click and choose Format Cells.
- Go to the Protection tab. Uncheck “Locked”.
- Now go to Review > Protect Sheet. Leave “Select locked cells” checked and uncheck “Select unlocked cells” if you want to guide users to only editable cells.
Now only the unlocked cells are editable. Everything else is locked. This is the standard pattern for data entry forms, templates, and dashboards.
Protection Plus Encryption: The Best of Both
For maximum protection, combine two steps:
- Encrypt with password (File > Info > Protect Workbook > Encrypt with Password) — this makes the file unreadable without the password.
- Protect the structure (Review > Protect Workbook > Structure) — this prevents deletion of sheets after opening.
With both in place, someone needs the password to open the file, and cannot easily modify the sheet structure. Used together, they password protect Excel files at two levels: opening the file and changing its structure.
Protecting a Workbook from Being Shared
Even when you password protect Excel files, there is no reliable way to prevent someone from sharing an Excel file once they have opened it. Even with a password, the person with access can save a copy, screenshot it, or print it. Excel’s built-in protections are about data security, not data sharing prevention. If sharing is a concern, consider:
- PDF with permissions
- Rights management tools
- Secure file-sharing platforms with access controls
When you password protect Excel files, Excel alone cannot prevent a determined user from sharing the file.
Protecting a Shared Workbook
If you are using co-authoring with OneDrive or SharePoint, protection behaves differently. Some protections do not work in co-authoring mode. Others work but with limitations.
In co-authoring scenarios:
- File encryption works but breaks co-authoring.
- Sheet protection works but is separate per user.
- Workbook structure protection is not always supported.
For co-authoring teams, protection is more about preventing accidental edits than about security. Communicate the ground rules with your team instead of relying only on Excel’s protection.
Put It Into Practice
Make a copy of any workbook you use at work — never practise on the original — and protect it three ways, one after another, so you can feel what each layer actually blocks.
- Encrypt the file. Go to File > Info > Protect Workbook > Encrypt with Password and set a password such as Temp#2026!Test. Close the file, reopen it, and confirm Excel asks for the password. Then remove it by saving with an empty password field.
- Protect the structure. Go to Review > Protect Workbook, set a different password, and try to delete a sheet. Excel should block you. Unprotect it again.
- Protect a sheet. Unlock a small range of input cells first (Format Cells > Protection, uncheck Locked), then protect the sheet with a password. Try typing in a locked cell, then in an unlocked cell, and notice the difference: the locked cell refuses the edit, the unlocked one accepts it.
Finally, ask yourself the recovery question: if you forgot the password, where would it be? There is no reset button and no recovery link, so the answer has to be a password manager, not a note stuck to the file. When you finish, delete the test copy. You have now used all three protection layers, seen what each one blocks, and learned why a password is only useful when it is strong and stored separately from the file.
Practical Scenario: Sending a Salary Sheet to HR
You need to send a salary report to the HR manager. It contains sensitive data.
Step 1: Encrypt with password. Go to File > Info > Encrypt with Password and set a strong password.
Step 2: Protect the workbook structure so sheets cannot be accidentally deleted.
Step 3: Save and close. Test by re-opening to ensure the password is required.
Step 4: Email the file. Send the password via WhatsApp or a separate email with a different subject line.
Now the file is safe even if it gets forwarded by mistake, which is why you password protect Excel files before sharing them. Only someone with the password can open it.
Practical Scenario: A Budget Template for a Team
You want a template where team members can input numbers but not change formulas.
Step 1: Unlock the input cells (Format Cells > Protection > uncheck Locked).
Step 2: Protect the sheet with a password. Leave “Select unlocked cells” checked but not “Insert rows” or “Format cells”.
Step 3: Share the file. Users can only edit the unlocked cells. Formulas and labels are safe.
Now the template stays consistent across the team, and no one accidentally breaks a formula.
Frequently Asked Questions
Can I recover a forgotten Excel password?
No. Excel’s encryption is strong, and there is no built-in recovery. Third-party tools exist but are not always reliable. Assume that if the password is lost, the file is lost.
Is sheet protection secure?
No. It prevents casual edits but can be bypassed with tools or VBA. For actual security, use file encryption to password protect Excel files.
Does a file open password stop someone from copying data?
No. Once someone opens the file, they can copy or share any part of it. The password protects the file itself, not its contents after opening.
Can I protect only part of a workbook?
Yes. Use sheet protection on specific sheets, or lock specific cells within a sheet. Different sheets can have different protection settings.
Does password protection work on Mac?
Yes, on Mac Excel as well, though the menu path may differ slightly. Look under Tools or File > Passwords.
Related guide: 10 Excel Keyboard Shortcuts That Save Hours
Related guide: 7 Ways to Fix a Slow Excel File (That Actually Work)
Final Thoughts
Excel gives you several protection options, but they are not equally strong. File encryption is real security. Workbook structure protection prevents structural damage. Sheet protection prevents accidental edits. Choose the one that fits your situation, and do not confuse convenience with security. Use passwords carefully, store them safely, and remember that protecting a file in Excel is mostly about protecting against accidents and casual access — not against determined attackers. For sensitive data, combine encryption with common sense: send passwords separately, use a password manager, and never share more than necessary. The main lesson is simple: when you password protect Excel, choose the method that matches the risk.










