Britpulse Insider Update Go
britpulse.uk Britpulse Insider Update Guides
Blog Business Local Politics Tech World

How to Password Protect an Excel File – Step-by-Step Guide

George Edward Thompson Davies • 2026-06-03 • Reviewed by Sofia Lindberg

Protecting sensitive data in Microsoft Excel is a common need for individuals and organizations alike. Whether you are sharing financial reports, client lists, or personal records, setting a password adds a layer of security. The process varies slightly depending on your platform and the type of protection you want.

Excel offers several protection methods: encrypting the entire workbook so it cannot be opened without a password, setting a modify password for read-only access, protecting individual sheets, and safeguarding the workbook structure. Each serves a different purpose, and understanding the distinction is important.

This guide covers step-by-step instructions for Windows, Mac, Office 365, and the online version. It also explains how to remove passwords and addresses common questions about security and recovery.

How to password protect an Excel file on Windows 10/11

Quick overview: ways to password protect an Excel file

  • Protect entire workbook (open password): Requires password to open the file. Works on Windows, Mac, Office 365.
  • Protect workbook structure: Prevents adding/deleting sheets. Password required to change structure.
  • Protect sheet (lock cells): Prevents editing of locked cells. Can allow read-only access.
  • Allow read-only with modification password: Users can open as read-only; password needed to edit/save changes.

Key insights about Excel password protection

  • Password protection in Excel is available on all modern versions (2007+) with slight UI variations.
  • You can set separate passwords for opening a file and for modifying it.
  • There is no built-in password recovery – losing your password means losing access.
  • Online version (Excel for the web) has limited protection; full features require the desktop app.
  • Sheet protection uses a password that can be cracked, but it deters casual editing.
  • Microsoft 365 allows encryption with a password of up to 255 characters.

Key facts about Excel password protection

Fact Detail
First introduced Excel 2007 with AES-128 encryption
Password case sensitivity Passwords are case-sensitive
Maximum password length Up to 255 characters
Password recovery Not possible – no “forgot password” option
Sheet password protection strength Can be bypassed with VBA or third-party tools (not recommended)
File-level encryption vs sheet protection File-level (encrypt workbook) is more secure

On Windows 10 and 11, the standard method to encrypt the workbook is to open the file, go to File > Info, select Protect Workbook, choose Encrypt with Password, enter a strong password, confirm it, and save the file. This requires a password to open the file, as noted by multiple sources including Locklizard and 1Password.

To make the file open read-only unless edited with a password, use File > Save As, open Tools > General Options, set a Password to modify, and save. This does not stop users from saving a copy, according to Locklizard.

For worksheet protection, go to Review > Protect Sheet or File > Info > Protect Workbook > Protect Current Sheet. Enter a password and choose what actions are still allowed. For workbook structure protection, go to Review > Protect Workbook and set a password.

How to password protect an Excel file on Mac

Encrypt the workbook on Mac

On Excel for Mac, open the workbook and go to File > Passwords. Enter a password in the Password to open field, confirm it, and save the workbook. This method is documented by QLIC NFP and Tufts University.

Mac-specific note

Some sources note a Password to modify field on Mac for edit restriction – check your Excel version.

Protect a worksheet on Mac

Select the worksheet, use Review > Protect Sheet (or the sheet tab options), set the allowed actions, optionally enter a password, confirm and save. Both QLIC NFP and 1Password refer to this approach.

How to password protect an Excel file in Office 365 and Online

Limitations of Excel for the web

Excel for the web does not provide native password-encryption controls. As shown in this YouTube tutorial and discussed on Microsoft Tech Community, the web app lacks the same features as the desktop version.

Important limitation

Excel for the web does not support native password encryption. To set a password, open the file in the desktop app, apply protection, then save back to OneDrive or SharePoint.

Workaround using the desktop app

If you work primarily in Office 365 online, the recommended approach is to use the Open in Excel command. Once the workbook opens in the desktop application, follow the Windows or Mac steps to set a password, then save. The file will retain the password when opened online again, but any further editing of protection settings requires the desktop app.

How to protect an Excel sheet from editing and copying

How to put password on Excel file 2007

For Excel 2007, the steps are similar to later versions. Use Review > Protect Sheet to restrict editing of locked cells. The ribbon labels may differ, but the core commands remain the same. According to Locklizard and 1Password, Excel 2007 introduced AES-128 encryption for workbook passwords.

Security note

Sheet protection is intended to prevent accidental edits, not malicious tampering. It can be bypassed with third-party tools. For higher security, use file-level encryption (Encrypt with Password).

To protect an entire workbook structure (prevent adding, deleting, renaming sheets), go to Review > Protect Workbook and set a password. This is available in all modern versions from 2007 onward.

When did Excel password protection features evolve?

  1. – Excel 2007 introduced AES-128 encryption for workbook passwords.
  2. – Improved encryption options, password length increased.
  3. – Enhanced sheet protection with more granular settings.
  4. – Introduction of “Encrypt with Password” in File > Info.
  5. – Continuous updates; online version limited to file-level encryption via download.

What is certain and what remains unclear about Excel password protection?

Established information Uncertainties / limitations
Password protection is a built-in feature in Microsoft Excel. Whether the password is recoverable – currently, Microsoft does not offer recovery.
You can set a password to open the file (encryption). Sheet passwords can be removed with third-party tools (not official).
You can set a password to modify the workbook. Online version does not fully support encryption – you must download and protect locally.
You can protect individual sheets to prevent editing. Password strength and encryption algorithm may vary by Excel version.
Passwords are case-sensitive.

Why and when should you password protect Excel files?

Password protecting an Excel file is essential for data security, especially when sharing sensitive information. File-level encryption is recommended for confidentiality. Sheet protection is useful for collaboration when you want to prevent accidental edits to formulas or formatting. However, users should be aware that sheet protection is not truly secure for malicious actors. For maximum security, combine strong passwords with encryption and avoid sharing passwords over insecure channels.

For related reading on creative techniques, see Draw a Perfect Circle – Freehand Techniques, Games and Apps.

What do official sources say about Excel password protection?

“Select File > Info. Select the Protect Workbook box and choose Encrypt with Password.”

Microsoft Support – Protect an Excel file (source)

“On the Review tab, click Protect Sheet or Protect Workbook. In the Password box, type a password…”

Microsoft Support – Require a password to open or modify a workbook (source)

What’s next for Excel security?

Microsoft continues to improve security in Excel, including better integration with Microsoft 365 security features, Information Rights Management, and possible password recovery mechanisms. Users are encouraged to use modern encryption (AES-256) where available and adopt best practices like password managers. For account-related topics, see Microsoft Hotmail Sign In.

Frequently asked questions

How to remove password from Excel file?

Open the file with the password, go to File > Info > Protect Workbook > Encrypt with Password, delete the password, and save the file.

How to unlock a protected Excel sheet without password?

There is no official method. You may need to use VBA code or third-party tools, but these are not recommended and may violate terms of use.

How to open a password protected Excel file if I forgot the password?

Microsoft cannot recover a lost password. Ensure you store passwords securely. Consider using a password manager.

Is Excel password protection secure?

File-level encryption (encrypt with password) is secure (AES-128/256). Sheet protection is weaker and can be bypassed.

Does Excel 2007 support password protection?

Yes, Excel 2007 introduced AES-128 encryption for workbook passwords and also supports sheet and structure protection.


George Edward Thompson Davies

About the author

George Edward Thompson Davies

Coverage is updated through the day with transparent source checks.