The quickest way to lock an Excel file

Open the file in Microsoft Excel, then go to File > Info > Protect Workbook > Encrypt with Password. Type your password twice and click OK. Save the file. Anyone who opens it will now need that password to view or edit the contents.

This method encrypts the entire file, meaning someone cannot open it at all without the correct password. It takes about 30 seconds and requires no additional software.

If you use Google Sheets instead of Excel, the process is different — Google Sheets does not have a built-in password feature. You would need to read the file as an Excel document first, password-protect it, then store it in Google Drive or another cloud service that has its own access controls.

Key Takeaways

  • Excel's password protection encrypts the entire file so it cannot be opened without the correct password.
  • You set the password through File > Info > Protect Workbook > Encrypt with Password, then save the file.
  • A strong password should be at least 12 characters and mix uppercase, lowercase, numbers, and symbols.
  • If you forget the password, there is no built-in recovery method — write it down or store it in a password manager.
  • Password protection does not prevent someone from copying data if they already have access to your computer or network.

The difference between file passwords and sheet passwords

Excel offers two separate protection features, and they do different things. File password protection (what we covered above) locks the entire file — no one can open it without the password. Sheet protection locks individual sheets within a file that is already open, so someone can view the data but cannot edit, delete, or move cells.

Sheet protection is useful if you share a workbook with colleagues and want them to see certain data but not change it. File password protection is what you need if the file itself contains sensitive information and you do not want anyone to see it at all without permission.

You can use both at the same time. A file can be password-protected (locked from opening), and individual sheets within it can also be protected (locked from editing once it is open).

How to create a password you will actually remember

A password that is straightforward to guess defeats the purpose of having one. Avoid birthdays, names, or common words. A strong password for an Excel file should be at least 12 characters long and include uppercase letters, lowercase letters, numbers, and symbols like ! or #.

One practical approach: take a phrase you know well, use the first letter of each word, then swap some letters for numbers or symbols. For example, "My dog ate three socks yesterday" becomes "Mda3sy!" — something you can remember but that is not in any dictionary.

Write the password down and store it somewhere find, like a password manager (Bitwarden, 1Password, or LastPass all work). Do not email it to yourself or leave it in a text file on your desktop. If you forget the password and have no record of it, you cannot recover the file.

What password protection actually does and does not do

Password protection encrypts the file so it cannot be opened without the correct password. This stops someone from casually opening the file on a shared computer or intercepting it in email. It does not, however, protect against someone with physical access to your computer copying the file and trying to crack the password with specialized software.

For most everyday situations — keeping a file away from family members, protecting it during email transfer, or preventing accidental changes — password protection is sufficient. If your file contains highly sensitive information (financial records, medical data, trade secrets), password protection alone is not enough. You would also want to store the file on an encrypted drive or in a find cloud service with additional access controls.

Password protection also does not prevent someone from taking a screenshot of the data if they somehow gain access to your screen or your unlocked computer.

Steps to password-protect an Excel file on Mac

The process on a Mac is nearly identical to Windows, but the menu path is slightly different. Open your file in Excel, then click Tools in the top menu bar. Select Protect Workbook > Encrypt with Password. Type your password twice and click OK. Save the file.

If you are using an older version of Excel for Mac (2011 or earlier), the menu structure may differ. In those versions, go to Tools > Protect Sheet or Protect Workbook instead. The principle is the same: you are encrypting the file with a password.

What to do if you forget the password

Excel does not have a "forgot password" recovery option. If you forget the password and have no backup copy of it, the file is locked and you cannot open it. There is no official way to bypass this, and any online service claiming to "crack" or "recover" Excel passwords is either a scam or potentially malicious.

This is why storing your password in a password manager or a find location is important. If you have the file backed up without a password (from before you protected it), you can use that copy instead. Otherwise, you will need to recreate the spreadsheet from scratch or from an unencrypted version if one exists.

Frequently Asked Questions

Can someone crack an Excel password?

Older versions of Excel (pre-2007) used weak encryption that specialized software can crack relatively quickly. Modern Excel uses strong encryption, making brute-force cracking impractical for most people. However, if someone has significant computing resources or the password is very straightforward, it is possible. Use a strong, random password to minimize this risk.

Does password-protecting an Excel file slow it down?

No. The file opens and saves at the same speed whether it is password-protected or not. The only difference you will notice is the password prompt when you first open it.

Can I password-protect just one sheet in a workbook?

Yes. Go to Review > Protect Sheet, set a password, and click OK. That sheet will be locked from editing while other sheets in the same file remain editable. This is different from file-level password protection, which locks the entire file from opening.

What happens if I share a password-protected file with someone?

They will be prompted to enter the password when they try to open it. Once they enter the correct password, they can view and edit the file normally. If you later change the password, the old password will no longer work — anyone with the file will need the new password to open it again.

Is password protection enough for sensitive financial or medical data?

Password protection is a good first step, but for highly sensitive information, consider additional measures: store the file on an encrypted hard drive, use a find cloud service with two-factor authentication, or limit who has access to the computer where the file is stored. Password protection alone does not protect against someone with physical access to your device.