Updated on December 5, 2026
You can lock an Excel file by opening File > Info > Protect Workbook > Encrypt with Password, entering a strong password, and saving the workbook. Excel supports three distinct lock levels: full file encryption (requires a password just to open), workbook structure lock (prevents adding or deleting tabs), and worksheet/cell protection (allows viewing while blocking edits). Below are exact steps for Windows, Mac, and troubleshooting.
Comparison: Excel File Lock vs Sheet Lock vs Cell Lock
Choosing the right Excel protection level prevents accidental formula overwrites without blocking teammates from reading reports, whereas full AES encryption locks unauthorized users out of opening the file altogether.
| Protection Type | Where To Find It | What It Blocks | Best Use Case |
|---|---|---|---|
| Encrypt with Password | File > Info > Protect Workbook | Opening the .xlsx file | Confidential payroll, tax, or HR files |
| Protect Current Sheet | Review > Protect Sheet | Editing cells or formulas | Shared templates & dashboards |
| Protect Workbook Structure | Review > Protect Workbook | Adding, renaming, or hiding tabs | Multi-tab financial models |
| Read-Only Recommended | File > Save As > Tools > General Options | Accidental saves (prompts Read-Only) | Casual internal distribution |
Method 1: Lock An Entire Excel File With A Password
Encrypting an Excel workbook applies AES encryption so nobody can open or preview the spreadsheet without entering your exact password.
1. Open your spreadsheet in Microsoft Excel and click File in the top-left corner.
2. Select Info > Protect Workbook > Encrypt with Password. (On Mac, open Review > Passwords or File > Passwords.)
3. Type a strong password, click OK, re-enter it to confirm, and press Ctrl + S to save. Microsoft cannot recover lost encryption passwords—see Microsoft’s official Excel file protection guide for backup best practices.
Method 2: Lock Specific Sheets Or Cells From Editing
If coworkers need to view numbers or fill in specific input cells without breaking formulas, use Protect Sheet under the Review tab instead of full file encryption.
1. Select any input cells you want users to edit, right-click > Format Cells > Protection, and uncheck Locked.
2. Go to Review > Protect Sheet, enter an optional password, and check only the actions you want to allow (such as Select unlocked cells).
Working on spreadsheets? Pair this with our guides on using Caps Lock and UPPER formulas in Excel, fast online calculators, turning off Fn Lock on HP laptops, and locking mobile apps for privacy.
Frequently Asked Questions
Can I recover a forgotten Excel file password?
No. Microsoft Excel uses strong AES encryption for Encrypt with Password files and has no built-in password recovery tool. Always store a backup copy in a password manager.
How do I remove a password from an Excel file?
Open the file with the current password, go to File > Info > Protect Workbook > Encrypt with Password, delete the password text box so it is blank, click OK, and save.





![MX Player Custom Codec [AC3, DTS, MLP, TrueHD, and more] MX Player Custom Codec](https://techmenza.com/wp-content/uploads/2021/10/MX-Player-Custom-Codec-100x70.jpg)


