Generally, there are two ways to protect your files by adding a password to Excel: you can protect the whole Excel file from unau­tho­rized access or you can protect select Excel sheets or even in­di­vid­ual cells from unwanted changes. With the first option, the entire file is encrypted and can only be opened by entering the password. With the second option, the password serves as read-only pro­tec­tion to ensure that data and content aren’t ma­nip­u­lat­ed or ac­ci­den­tal­ly edited. This doesn’t protect the file from being viewed by others. We'll show you how to set up both.

Password pro­tec­tion for the whole Excel file in just a few steps

The steps below detail how you can password-protect an Excel file so that it can only be opened by people who know the password.

Quick start guide: Add a password to an Excel file

  1. From the “File” menu access “Info” > “Protect Workbook” > “Encrypt with Password”.
  2. Choose a secure password.
  3. Repeat your chosen password to confirm the selection.

Step 1: To get started password-pro­tect­ing your select Excel file, click on “File” and then “Info” in Excel. Then click on “Protect Workbook” and select “Encrypt with Password”.

Business Email
Discover a new way to email
  • Write perfect emails with optional AI features
  • Add cred­i­bil­i­ty to your brand
  • Includes domain, spam filter and email for­ward­ing

Step 2: You’ll be prompted to provide a password for your document. Choose a secure password and store it in a suitable place. You can use a password manager to make it easier to manage multiple passwords. A warning pops up and this should be taken seriously: without the password, you won’t be able to access the content of your Excel file later. Make sure you don’t ac­ci­den­tal­ly switch on cap­i­tal­iza­tion (Caps Lock) on your keyboard.

Note

It’s best to refrain from using your wedding date or a pet's name as a password. If data security is important to you, choose a truly secure password.

Step 3: You’ll be prompted to repeat your password to confirm the selection. En­cryp­tion is only completed if the two passwords match. If you make a mistake, you’ll receive a message stating that the two passwords are not identical. Try again or start over.

Result: Excel advises that this workbook can now only be opened by using the correct password:

Now, the next time you open the file, you’ll be asked to enter the password. If you’ve selected a suitable password that’s neither too short nor easy to guess, your file is securely protected. Even Microsoft couldn’t crack a secure Excel password. But this also means if you forget your password, all contents of your file will be lost.

Beware: Pro­tect­ing an Excel spread­sheet with a password is not the same as making an Excel file read-only. The latter only prevents editing, not opening a file, and can be bypassed rel­a­tive­ly easily.

Tip

Want to password-protect multiple Excel files at the same time and store them in an archive? You can archive your files in a ZIP-com­pressed folder and encrypt the ZIP file.

Password-protect Excel work­sheets

Instead of password-pro­tect­ing the entire Excel spread­sheet, you can encrypt in­di­vid­ual work­sheets. However, this is less suitable for privacy and merely prevents in­ad­ver­tent changes to a worksheet’s content. The access can be con­trolled down to the level of in­di­vid­ual cells.

Quick start guide: protect Excel work­sheets with password

  1. To enable editing of select cells, mark the cells, right-click and select “Format cells”.
  2. From the “Pro­tec­tion” sub-menu remove the checkmark “Locked” and click on “Ok”.
  3. In “Review” select “Protect Sheet”.
  4. Choose a password to protect your Excel worksheet.

Step 1 (optional): Select cells

Before ac­ti­vat­ing sheet pro­tec­tion, you can specify in­di­vid­ual cells in a sheet that won’t be password-protected so that only certain cells are editable, and the rest aren’t. If you skip this step, all cells in a worksheet will be protected from edits.

Mark the cells you want to remain editable. Right-click to launch the menu and select “Format Cells”. You can also access cell for­mat­ting options by using the Excel shortcut [Ctrl] + [1].

In the next window, open the “Pro­tec­tion” tab and remove the checkmark next to “Locked” so that the selected cells aren’t locked when you protect the Excel worksheet with (or without) a password.

The changes are only activated once you activate sheet pro­tec­tion in the next step.

Step 2: Set pro­tec­tion

In your sheet, select the “Review” menu and then click on the “Protect Sheet” option.

From the dialog, you can manage user options further. By default, sheet pro­tec­tion means that contents or for­mat­ting cannot be amended, added, or removed. If you want to allow for some changes to be made to a sheet, you can set up the details here. You’ll be asked to save a password to remove sheet pro­tec­tion. If you don’t set a password, any user can remove the sheet pro­tec­tion.

Result: Now, if you or other users try to enter new data in an encrypted cell, for example adding sales data for Park Lane (see image above), Excel will reject the entry and flag up a message to alert the user that the sheet is (password) protected.

This function is not intended as a security feature, but instead prevents unwanted or ac­ci­den­tal changes to Excel work­sheets. In addition, the sheet’s content and for­mat­ting remains fully visible.

Note

Re­gard­less of workbook or sheet pro­tec­tion, Excel macros are not or only partially activated by default for security reasons. To use macros you obtained from a reliable source, you’ll need to activate Excel macros.

Removing Excel password-pro­tec­tion

After you’ve password-protected in­di­vid­ual work­sheets or entire Excel files, you can remove the password-pro­tec­tion again just as easily. However, things can get com­pli­cat­ed (or even im­pos­si­ble) if you don’t have the correct password to hand. That’s why it’s important to always store your passwords safely.

Tip

Don’t want to com­pro­mise on security? Microsoft 365 Business with set-up service from IONOS always provides the latest Office version and comes with encrypted email that’s stored in protected data centers.

Go to Main Menu