Smart Systems for Home

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

How to Password Protect an Excel Workbook or Sheet

· 6 min read · Home Tech

In this article
  1. Choose the Right Kind of Protection
  2. Require a Password to Open the Workbook
  3. Protect a Worksheet and Allow Specific Edits
  4. Protect Workbook Structure and Share Safely
  5. Windows, Mac, and Excel for the Web
  6. Common Problems and Security Limits
  7. Frequently Asked Questions

To password-protect an Excel workbook in Microsoft 365 for Windows, open it and choose File > Info > Protect Workbook > Encrypt with Password, enter a strong password, and confirm it. To protect only a sheet, choose Review > Protect Sheet and set the permissions you want. These options do different things: encryption requires a password to open the file, while sheet protection mainly limits editing.

Choose the Right Kind of Protection

Excel has several protection features, and choosing the right one depends on what you need to prevent. A password for opening a workbook encrypts its contents so someone must enter the password before Excel displays the file. Sheet protection, by contrast, helps prevent accidental or unauthorized changes to selected cells and worksheet structure. It is not a substitute for encrypting sensitive data.

  • Protect a file from being opened: use Encrypt with Password.
  • Limit edits on a worksheet: use Protect Sheet, optionally unlocking the cells people are allowed to change first.
  • Prevent sheets from being added, deleted, moved, or renamed: use Protect Workbook to protect the workbook’s structure.
  • Share a file without allowing changes: consider sharing a read-only copy or controlling access through OneDrive or SharePoint permissions as well as using Excel protection.

These controls can be combined. For example, a budget workbook could require a password to open, lock formulas on a calculation sheet, and allow users to edit only the input cells.

Require a Password to Open the Workbook

Use this method when the file itself contains information you do not want readable by someone who lacks the password. In Excel for Microsoft 365 on Windows:

  1. Open the workbook and select File > Info.
  2. Choose Protect Workbook > Encrypt with Password.
  3. Type a password, select OK, and type it again when prompted.
  4. Save the workbook. Close it and reopen it to confirm Excel asks for the password.

The password is case-sensitive. Excel does not provide a way to recover a forgotten encryption password, so store it in a reputable password manager or another secure location. Keep a separate backup of important workbooks; encryption does not protect against accidental deletion, device failure, or ransomware.

To remove the opening password, open the workbook with the current password, return to File > Info > Protect Workbook > Encrypt with Password, clear the password field, select OK, and save. If you cannot open the workbook, you cannot use this route to remove its password.

Protect a Worksheet and Allow Specific Edits

Sheet protection is useful for preserving formulas, headings, and layout while allowing users to enter information in designated cells. By default, cells are marked as locked, but that setting has no effect until you turn on sheet protection. Unlock the cells intended for input before protecting the sheet:

  1. Select the cells users should be able to edit. To select separate ranges, hold Ctrl while selecting each range.
  2. Press Ctrl+1 to open Format Cells, select the Protection tab, clear Locked, and select OK.
  3. Choose Review > Protect Sheet.
  4. Optionally enter a password, then select the actions users may perform, such as selecting unlocked cells or sorting.
  5. Select OK, confirm the password if requested, and save the workbook.

On a protected sheet, users can edit unlocked cells but cannot change locked cells unless protection is removed. Choose permissions with care: for example, allowing sorting or filtering may require setting up the relevant range or filters before protection. Test the result using a copy of the workbook or by trying the tasks a typical user needs to perform.

To stop protecting a sheet, go to Review > Unprotect Sheet and enter the password if prompted. Sheet protection is intended mainly to control editing, not to keep a determined person from accessing or extracting the worksheet’s contents.

Protect Workbook Structure and Share Safely

Workbook-structure protection limits changes to the workbook’s sheet organization. In Excel for Windows, select Review > Protect Workbook, enter a password if you want one, confirm it, and save. The feature can prevent actions such as inserting, deleting, moving, hiding, or renaming sheets. It does not encrypt the workbook or prevent people from reading its contents.

When a workbook is stored in OneDrive or SharePoint, use the service’s sharing controls to choose who can access it and whether they can edit it. Those access permissions are separate from Excel sheet protection. For sensitive files, use both appropriate sharing permissions and file encryption; avoid sending the password in the same message as the file.

Windows, Mac, and Excel for the Web

The Windows paths above apply to Excel for Microsoft 365 on Windows. In Excel for Mac, workbook encryption is available from File > Passwords; enter a password to open the workbook, then save it. Sheet protection is available from the Review tab, though the dialog and available options can vary by release. On Mac, use Command+1 rather than Ctrl+1 to open Format Cells.

Excel for the web has more limited protection controls than the desktop apps. Depending on the workbook and account, you may be able to manage sheet protection from the Review tab, but use the desktop version to set or change an opening password. If a command is missing, open the workbook in the desktop app and check that you have editing access.

Common Problems and Security Limits

  • The password prompt does not appear: you may have protected a sheet or workbook structure instead of encrypting the file. Check File > Info for the encryption setting.
  • Users cannot enter data: the intended input cells may still be locked. Unprotect the sheet, unlock those cells, then protect the sheet again.
  • You forgot a password: Microsoft cannot retrieve a forgotten workbook-encryption password. For sheet or structure protection, do not assume a recovery option exists; use an authorized backup or contact the file owner.
  • You think sheet protection hides data: it does not. Hide sheets only for convenience, not as a security measure.

Use a long, unique password rather than a familiar phrase, company name, or simple pattern. A password manager can generate and store it. Keep access limited to people who need it, and maintain a secure backup. Password protection cannot stop an authorized recipient from copying information after opening the file.

Frequently Asked Questions

Can I password-protect just one Excel sheet?
Yes. Select Review > Protect Sheet and optionally set a password. This restricts editing of the worksheet, but it does not encrypt the file or conceal its contents from someone who can open it.

What is the difference between Protect Sheet and Encrypt with Password?
Protect Sheet limits changes to a worksheet. Encrypt with Password requires the password before the workbook can be opened and read. Choose encryption when you need to restrict access to the file’s contents.

Can I recover a forgotten Excel password?
Excel does not provide a recovery method for a forgotten password used to encrypt a workbook. Keep a secure record of passwords and retain authorized backups before you need them.

Does protecting a sheet stop people from viewing formulas or data?
No. Sheet protection is primarily an editing control, not robust confidentiality. Use workbook encryption and appropriate file-sharing permissions when access to the contents must be restricted.

Can I remove a password from an Excel workbook?
If you know the opening password, open the file, clear the password under File > Info > Protect Workbook > Encrypt with Password, and save. To remove sheet protection, select Review > Unprotect Sheet and provide its password when prompted.