Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Password Protect Excel File: Step-by-Step

· 4 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Protecting an Excel file with a password prevents unauthorized users from opening or modifying your data. This guide walks you through the built-in encryption and sheet protection features in Microsoft Excel (2016, 2019, 2021, and Microsoft 365) for both Windows and Mac. You'll need access to the Excel file you want to protect and, ideally, a strong password you can remember or store securely.

What You'll Need

  • Microsoft Excel installed (Windows or Mac).
  • The Excel file you want to protect.
  • A strong password (mix of letters, numbers, and symbols).
  • A secure place to store the password (like a password manager).

Step-by-Step

Method 1: Password to Open (File Encryption)

  1. Open the file in Excel.
  2. Click File > Info.
  3. Click Protect Workbook and select Encrypt with Password.
  4. In the dialog box, type your password. Important: If you forget the password, there is no way to recover it. Make sure you remember it or store it safely.
  5. Click OK. Excel will ask you to re-enter the password to confirm. Do so and click OK.
  6. Click Save (or press Ctrl+S / Cmd+S). The file is now encrypted. Anyone who opens it will be prompted for the password.

Method 2: Password to Modify (Read-Only Recommended)

  1. Go to File > Save As.
  2. Choose where to save the file (e.g., This PC, OneDrive).
  3. In the Save As dialog, click Tools (near the Save button) and select General Options.
  4. Under Password to modify, enter a password. Optionally, set a Password to open as well.
  5. Click OK, confirm the password, then click Save. If prompted to replace the existing file, click Yes.

Method 3: Protect a Specific Sheet (Structure or Cells)

  1. Right-click the sheet tab at the bottom and select Protect Sheet.
  2. Enter a password (optional).
  3. Choose what users can do: typically, leave only Select locked cells and Select unlocked cells checked.
  4. Click OK and re-enter the password.
  5. To prevent users from adding, moving, or deleting sheets, go to Review > Protect Workbook (Structure) and set a password.

Common Mistakes

  • Forgetting the password: Excel's encryption is strong; there is no built-in recovery. Always store passwords in a password manager.
  • Using a weak password: Simple passwords like "1234" are easily cracked. Use at least 12 characters with mixed case, numbers, and symbols.
  • Confusing "Password to modify" with encryption: The modify password only prevents accidental edits; it does not encrypt the file. For true security, use Encrypt with Password.
  • Not saving after protection: If you don't save, the password isn't applied.
  • Protecting only a sheet when you need whole-file security: Sheet protection is easily bypassed; use file encryption for sensitive data.

Tips

  • Use a passphrase like "CorrectHorseBatteryStaple" but with numbers and symbols for better security.
  • Keep a backup of the file without the password in a secure location (e.g., an encrypted USB drive) in case you forget it.
  • If you share the file, send the password separately (e.g., via a different channel like a text message).
  • For maximum security, use Encrypt with Password (Method 1) because it uses AES-256 encryption, which is industry-standard.
  • On Mac, the steps are similar: File > Passwords > Set Password.

Troubleshooting

  • Password not working when opening: Check that Caps Lock is off and that you're typing the exact password. If you recently changed it, ensure you saved the file after the change.
  • Can't find "Encrypt with Password": This option is only available in the desktop version of Excel, not in Excel Online. Open the file in the desktop app.
  • File still opens without password: You may have used "Password to modify" instead of encryption. The file opens in read-only mode; users can click "Read Only" to bypass. Use Method 1 for true encryption.
  • Forgot the password: Unfortunately, there is no official way to recover it. Try any password you might have used. If you have a backup, use that. For future, use a password manager.

Frequently Asked Questions

Can I remove a password from an Excel file?

Yes. Open the file (enter the password), go to File > Info > Protect Workbook > Encrypt with Password, delete the password, click OK, and save.

Does Excel password protection work on Mac?

Yes, Excel for Mac supports password protection. The steps are slightly different: File > Passwords > Set Password.

Is Excel encryption secure?

Modern versions of Excel use AES-256 encryption, which is considered strong. However, the security depends on the password strength. A weak password can be brute-forced.

Can I password protect only certain cells?

Yes. First, unlock the cells you want users to edit (right-click > Format Cells > Protection > uncheck Locked). Then protect the sheet with a password. Users can only edit the unlocked cells.

What happens if I forget the password to modify?

You can still open the file in read-only mode, but you cannot save changes without the password. There is no recovery for the modify password either.

Does protecting a workbook prevent copying data?

No. Password protection prevents opening or modifying, but if someone has the password, they can copy data. For copy protection, you'd need more advanced DRM or convert to PDF with restrictions.