Smart Systems for Home

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

How to Insert Password in Excel: Step-by-Step Guide

· 5 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

To insert a password in Excel, open the workbook, go to File > Info > Protect Workbook > Encrypt with Password, type a password, and save. That's the short answer for the desktop app. The rest of this guide covers the exact clicks, the difference between the desktop and mobile versions, what the password actually protects, and how to fix the most common problems.

What You'll Need

  • Microsoft Excel installed on a Windows PC or Mac (the desktop app is required for this feature; Excel for the web does not offer password encryption).
  • The workbook you want to protect, saved in a modern format such as .xlsx or .xlsm.
  • A password you can remember or store safely. Microsoft cannot recover it for you.

Step-by-Step

  1. Open the workbook in the Excel desktop app. Password encryption is not available in Excel for the web, so use the installed program.
  2. Go to File > Info. The Info pane shows the workbook's properties and protection options.
  3. Click Protect Workbook, then choose Encrypt with Password. A small dialog box appears asking for a password. Menu labels can differ slightly by Excel version, device and region, but this path has been stable for years.
  4. Type your password in the Password box. Use something you can remember exactly, including capital letters and symbols. Passwords are case-sensitive.
  5. Click OK. Excel asks you to confirm the password. Re-type it exactly and click OK again.
  6. Save the file with Ctrl+S (Windows) or Command+S (Mac). The password only takes effect once the workbook is saved. If you close without saving, the protection is lost.
  7. Test it. Close the workbook completely, then reopen it. Excel should prompt for the password before showing any content. If it opens without a prompt, the save did not complete; repeat steps 2–6.

To remove the password later, follow the same path (File > Info > Protect Workbook > Encrypt with Password), delete the dots in the password box, and save. Excel will not ask for the old password to remove it, but anyone opening the file will need it until you save the change.

Common Mistakes

  • Forgetting to save. The most common reason a password "doesn't work" is that the file was closed without saving after encryption.
  • Assuming it protects everything. Encrypt with Password prevents opening the file, but it does not stop someone who already has the file open from editing cells. For that, use Protect Sheet or Protect Workbook under the Review tab.
  • Using Excel for the web. The browser version does not include Encrypt with Password. You must use the desktop app to set it.
  • Typing the password with Caps Lock on during setup, then failing to reproduce it later. Passwords are case-sensitive.
  • Expecting Microsoft to recover it. Microsoft support cannot retrieve or bypass a forgotten workbook password. There is no official recovery tool.
  • Confusing workbook protection with file encryption. Protect Workbook (Structure) stops people adding or deleting sheets; Encrypt with Password stops the file opening at all. They are different features.

Tips

  • Store the password in a password manager rather than a sticky note. If you lose it, the file is effectively gone.
  • Use a long passphrase rather than a short word. Excel supports long passwords, and length matters more than complexity.
  • Keep an unencrypted backup of important workbooks in a secure location before you encrypt, in case you mistype the password during setup.
  • If you share the file, send the password through a different channel (for example, a messaging app rather than the same email).
  • Remember that encryption protects the file at rest. Once someone opens it with the password, they can copy the contents; it is not a substitute for access controls on shared drives.

Troubleshooting

If the password prompt does not appear, first check that you saved after encrypting and that you are opening the same file, not an older copy or a synced version from cloud storage. Close Excel completely, reopen it, and try again. If the file is on OneDrive or SharePoint, make sure the local copy has finished syncing; a stale copy may not carry the encryption.

If Excel says the password is incorrect, check Caps Lock and your keyboard layout. Try typing the password into a plain text field first to confirm the characters. If you are certain the password is right but Excel rejects it, the file may have been re-saved by another program or an older version without encryption.

If the Encrypt with Password option is greyed out, you are likely in Excel for the web or in a protected view. Close and reopen the file from a trusted location, or open it in the desktop app. If the workbook is marked as final or read-only, clear that status under File > Info before encrypting.

If you have forgotten the password, there is no official Microsoft recovery method. Restore an earlier unencrypted backup if one exists. Third-party password-removal tools exist but are not endorsed by Microsoft and may not work with modern encryption; treat them with caution and never use them on files you do not own. If the workbook is business-critical, contact your IT administrator, who may have a backup or a managed recovery process.

Frequently Asked Questions

Can I password-protect an Excel file on my phone?

The Excel mobile app does not offer the Encrypt with Password option. Set the password on a Windows PC or Mac using the desktop app, then open the protected file on your phone; the mobile app will prompt for the password.

Does the password stop people from editing the file?

No. Encrypt with Password controls opening the file. To restrict editing, use Review > Protect Sheet or Protect Workbook, which can be set with or without a password.

Can Microsoft recover a forgotten Excel password?

No. Microsoft support cannot retrieve or bypass a forgotten workbook password. Keep a backup and store the password safely.

What is the difference between Encrypt with Password and Protect Workbook?

Encrypt with Password requires a password to open the file at all. Protect Workbook (Structure) prevents changes to the workbook's structure, such as adding, deleting or renaming sheets, but does not stop the file opening.

Will the password work if I open the file in Google Sheets or another app?

Encryption is applied by Excel and is designed to be read by Excel and compatible Microsoft Office apps. Other spreadsheet programs may not open an encrypted .xlsx file at all, or may ask for the password using their own prompt. For sharing outside Office, consider exporting to PDF with a password instead.

Can I remove the password later?

Yes. Open the file with the password, go to File > Info > Protect Workbook > Encrypt with Password, clear the password box, and save. The file will then open without a prompt.