How to Password Protect Excel

Secure your workbooks and worksheets with passwords to prevent unauthorized access and editing

Quick Answer

To encrypt entire workbook: File → Info → Protect Workbook → Encrypt with Password → Enter password → Save file.

To protect worksheet structure: Review tab → Protect Sheet → Set password → Choose permissions → Click OK.

Understanding Excel Security Levels

Excel offers different levels of protection depending on what you need to secure:

🔒 Level 1: Workbook Encryption (Strongest)

What it protects: Entire file - users need password to open the file

Use when: File contains sensitive data that should be completely inaccessible

Security: High - Uses AES-256 encryption (same as banking)

🛡️ Level 2: Worksheet Protection (Moderate)

What it protects: Sheet structure and cells - prevents editing/formatting

Use when: You want to share file but prevent accidental changes

Security: Moderate - Can be cracked with tools but stops casual changes

📋 Level 3: Workbook Structure Protection (Light)

What it protects: Prevents adding/deleting/renaming sheets

Use when: Maintaining workbook organization is important

Security: Light - Easy to bypass but useful for organization

Method 1: Encrypt Entire Workbook (Recommended)

Strongest Protection: This encrypts the entire file. Users cannot open it without the password.

Step-by-Step Instructions:

  1. 1.Open your Excel file
  2. 2.Click FileInfo
  3. 3.Click Protect Workbook button
  4. 4.Select Encrypt with Password
  5. 5.Enter a strong password (at least 8 characters with letters, numbers, symbols)
  6. 6.Click OK
  7. 7.Re-enter the same password to confirm
  8. 8.Click OK again
  9. 9.Save the file (password protection only applies after saving)

Critical Warning: If you forget this password, Microsoft CANNOT recover it. Your file will be permanently locked.

Best For:

  • Financial documents with sensitive data
  • Personal information or confidential records
  • Files that should never be accessed without authorization
  • Maximum security requirements

Method 2: Protect Worksheet (Prevent Editing)

Worksheet protection allows users to open the file but prevents them from modifying cells, formulas, or formatting.

Step-by-Step Instructions:

  1. 1.Select the worksheet you want to protect
  2. 2.Click the Review tab
  3. 3.Click Protect Sheet
  4. 4.Check/uncheck permissions (Select locked cells, Format cells, Insert rows, etc.)
  5. 5.Enter a password (optional but recommended)
  6. 6.Click OK
  7. 7.Re-enter password to confirm
  8. 8.Click OK

Pro Tip: Before protecting, unlock specific cells you want users to edit: Select cells → Right-click → Format Cells → Protection tab → Uncheck "Locked" → OK. Then protect the sheet.

Common Permission Options:

  • Select locked cells: Users can click on protected cells (recommended)
  • Select unlocked cells: Users can click on editable cells (recommended)
  • Format cells: Prevents changing colors, fonts, borders
  • Insert rows/columns: Stops adding new rows or columns
  • Delete rows/columns: Prevents deletion
  • Sort: Blocks data sorting
  • Use AutoFilter: Disables filtering

Method 3: Protect Workbook Structure

This prevents users from adding, deleting, renaming, hiding, or moving worksheets.

Step-by-Step Instructions:

  1. 1.Click Review tab
  2. 2.Click Protect Workbook
  3. 3.Check Structure (and optionally Windows)
  4. 4.Enter password (optional)
  5. 5.Click OK

Best For:

  • Templates with specific worksheet organization
  • Preventing accidental sheet deletion
  • Maintaining report structure
  • Multi-user environments

How to Remove Password Protection

Remove Workbook Encryption:

  1. Open the file (enter password)
  2. File → Info → Protect Workbook → Encrypt with Password
  3. Delete the password (leave field blank)
  4. Click OK
  5. Save the file

Unprotect Worksheet:

  1. Review tab → Unprotect Sheet
  2. Enter password if prompted
  3. Sheet is now editable

Unprotect Workbook Structure:

  1. Review tab → Protect Workbook (click to toggle off)
  2. Enter password if prompted
  3. Structure is now unlocked

Password Security Best Practices

✓ DO This

  • ✓ Use at least 8 characters
  • ✓ Mix uppercase and lowercase
  • ✓ Include numbers and symbols
  • ✓ Use unique passwords per file
  • ✓ Store passwords in password manager
  • ✓ Write down and store in safe location
  • ✓ Test password after setting

✗ DON'T Do This

  • ✗ Use "password123" or "123456"
  • ✗ Use personal info (birthdate, name)
  • ✗ Share passwords via email/text
  • ✗ Use same password everywhere
  • ✗ Write password in file name
  • ✗ Save password inside the file
  • ✗ Rely on memory alone

Good Password Example:

ExCeL$BudG3t#2025!

Mix of upper/lower case, numbers, symbols, and memorable phrase

Important Limitations to Know

⚠️
Worksheet protection is NOT secure: It can be cracked with free tools in minutes. Use workbook encryption for real security.
⚠️
No password recovery: Microsoft cannot recover forgotten passwords for encrypted workbooks.
💡
Macro security separate: Password protection doesn't affect macro security settings. Configure those separately.
💡
Read-only recommendation: For view-only sharing, consider File → Save As → Tools → General Options → Read-only recommended.

Related Excel Tutorials

Automate Workbook Protection

Generate VBA code to automatically protect/unprotect sheets and workbooks

✓ No credit card required ✓ 5 free generations