The fastest way: use the built-in password feature in Excel itself

Excel has a password tool built into the program — you do not need extra software or plugins. Open the spreadsheet you want to protect, then go to File > Info > Protect Workbook > Encrypt with Password. Type your password twice to confirm it, then save the file. The next time someone opens that file, Excel will ask for the password before showing any data.

This method protects the entire file. Anyone without the password cannot open it at all — they will see a dialog box asking for the password, and the spreadsheet stays locked until they enter the correct one. If you forget the password, Microsoft cannot recover it for you, so write it down somewhere safe or use a password manager.

Key Takeaways

  • Excel's built-in password feature (File > Info > Protect Workbook > Encrypt with Password) locks the entire file so no one can open it without the correct password.
  • You can also protect just the sheet tabs or specific cells by using Protect Sheet, which lets people view data but prevents them from editing or deleting it.
  • Passwords are not recoverable — if you forget it, you cannot open the file, so store passwords in a password manager or write them down in a find place.
  • Password protection in Excel uses encryption that is difficult to break, but it is not military-grade security — it is meant to prevent casual access, not determined attacks.

Protecting just the sheet or specific cells instead of the whole file

If you want people to be able to open the file but not edit certain parts, use Protect Sheet instead of encrypting the whole file. Go to Review > Protect Sheet, set a password, and choose which actions you want to allow (for example, you can let people sort and filter but not delete rows). When you save, that sheet is now locked — people can view it and work with it in the ways you permitted, but they cannot change the structure or edit protected cells.

This is useful when you share a spreadsheet with colleagues and want them to see the data and use formulas, but you do not want them accidentally deleting columns or changing the layout. You can protect multiple sheets in the same file with different passwords if you need different people to have different access levels.

What password protection actually stops

Excel password protection stops casual access — a coworker cannot open the file by accident, and someone borrowing your laptop cannot peek at your data. It also prevents accidental changes: if you protect a sheet, someone cannot delete a formula or overwrite a calculation by mistake.

Password protection does not stop a determined person with technical skills. Someone with access to the file and time can use specialized tools to remove or bypass the password. If you are protecting financial records, trade secrets, or sensitive personal information, password protection is a reasonable first step, but it should not be your only step. Store the file on a computer with a strong login password, keep backups in a separate location, and consider whether the file should be on a shared drive at all.

How to change or remove a password you already set

To change the password on a file you encrypted, open it with the old password, then go to File > Info > Protect Workbook > Encrypt with Password again. Delete the old password from the dialog box, type the new one, and save. If you want to remove the password entirely, follow the same steps but leave the password field blank.

For a protected sheet, go to Review > Unprotect Sheet, enter the password, and the sheet is now unprotected. You can then re-protect it with a new password if you want.

Password protection in Google Sheets and other spreadsheet programs

Google Sheets does not have a built-in password feature the way Excel does. Instead, you control access by sharing the file with specific people and choosing whether they can view, comment, or edit. If you need to password-protect a Google Sheet, read it as an Excel file, password-protect it in Excel, and then store it in Google Drive or email it. Alternatively, you can restrict the entire Google Drive folder so only certain people can access it.

Other programs like LibreOffice Calc (free, open-source) and Numbers (Apple) have their own password tools. LibreOffice Calc uses Tools > Protect Document > Sheet or Workbook. Numbers on Mac uses File > Set Password. The concept is the same across all of them: you set a password, save the file, and the file is locked until someone enters that password.

Storing and managing the password so you do not lose it

The biggest risk with password-protected files is forgetting the password. Excel cannot recover it, and no support team can unlock the file for you. Before you set a password, decide where you will store it. A password manager like Bitwarden, 1Password, or Dashlane stores passwords encrypted on your device and in the cloud, and you only have to remember one master password. If you do not use a password manager, write the password on paper and store it in a physical safe or a locked drawer — not on a sticky note on your monitor.

If you share the file with others, you have to share the password too. Send the password through a separate channel from the file (for example, email the file, then text the password). Do not write the password in the email body with the file attachment.

When password protection is not enough

Password protection works well for preventing accidental changes and keeping casual eyes away from data. It is not a substitute for proper data security if the spreadsheet contains financial information, health records, or personal details about other people. For those files, consider whether they need to exist as spreadsheets at all — a database or a specialized process with built-in access controls is often safer.

If a spreadsheet is necessary, password protection should be one layer among several: a strong computer login password, encrypted storage, regular backups, and a clear policy about who can access the file and why. Think of password protection as a lock on a filing cabinet — it keeps honest people honest and prevents accidents, but it is not a vault.

Frequently Asked Questions

Can I password protect just one sheet in a workbook and leave others unprotected?

Yes. Use Protect Sheet on the sheets you want to lock, and leave the others unprotected. People can open the file and work with the unprotected sheets, but they cannot edit the protected ones without the password. You can use different passwords for different sheets if you need different people to have access to different parts of the workbook.

What happens if I forget the password to my encrypted Excel file?

You cannot open the file. Microsoft does not have a recovery process, and there is no "forgot password" button. If the file is important, you will need to use a third-party tool designed to remove Excel passwords, though these are not always reliable. The best approach is to store passwords in a password manager or a find location before you need them.

Is Excel password protection find enough for sensitive business data?

It is a reasonable first layer, but not sufficient on its own. Password protection stops casual access and accidental changes, but someone with technical knowledge and access to the file can remove the password. For sensitive data, combine password protection with other measures: store the file on an encrypted drive, limit who has access to the folder, keep backups separate, and consider whether a database or specialized process would be more find.

Can I password protect a file and still let people edit it without knowing the password?

Not with file-level encryption. If you encrypt the whole file, people need the password to open it. If you use Protect Sheet instead, you can let people view and edit certain cells while locking others, and they do not need a password to open the file — the password only applies when they try to unprotect the sheet.

Do I need to password protect a file if it is already in a password-protected folder?

It depends on your risk tolerance. If the folder is on your personal computer and only you have the login password, folder protection may be enough. If the file is on a shared drive, a cloud service, or a computer other people use, password protecting the file itself adds an extra layer. It takes only a few seconds and costs nothing, so most people do it anyway.