The fastest way to password-protect your Excel file

Open the file you want to protect in Excel. Click File in the top left, then select Info. Look for a button labeled Protect Workbook — on Windows it appears in the right panel; on Mac it's under a dropdown menu. Click it and choose Encrypt with Password. Type your password twice to confirm it, then click OK. Save the file. The next time anyone opens it, they'll be asked for the password before the spreadsheet appears.

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.

Key Takeaways

  • Excel's built-in encryption locks the entire file — no one can open it without your password.
  • The process is the same on Windows and Mac: File > Info > Protect Workbook > Encrypt with Password.
  • You must enter your password twice; if you forget it, you cannot recover the file without professional help.
  • Passwords should be at least 8 characters and mix letters, numbers, and symbols for real security.
  • If you only want to prevent editing (not opening), use "Protect Sheet" instead, which allows viewing but blocks changes.

Step-by-step for Windows

Start with your Excel file open. Click the File tab at the top left of the ribbon. In the left sidebar, click Info. On the right side of the screen, you'll see a button that says Protect Workbook with a dropdown arrow next to it. Click that dropdown and select Encrypt with Password.

A dialog box will appear asking you to enter a password. Type it carefully — you won't see the characters as you type. Click OK. Excel will ask you to enter the password again to confirm. Type it the same way and click OK again. Now save your file by pressing Ctrl+S or clicking File > Save. The password is now active.

Step-by-step for Mac

Open your Excel file. Click File in the menu bar at the top of the screen. Scroll down and click Info. A submenu will appear. Look for Protect Workbook and hover over it to see the options. Click Encrypt with Password.

A password dialog will pop up. Enter your password and click OK. Excel will ask you to type it again to confirm. After you confirm, save the file by pressing Command+S or using File > Save. The password protection is now in place.

The difference between file password and sheet password

File password (Encrypt with Password) locks the entire Excel file. No one can open it, view it, or edit it without entering the correct password first. This is the strongest option if you want to keep the spreadsheet completely private.

Sheet password (Protect Sheet) is different — it lets people open and view the file, but prevents them from editing specific sheets or cells. You might use this if you want colleagues to see data but not change formulas or certain columns. To set a sheet password, click File > Info > Protect Workbook > Protect Current Sheet (Windows) or File > Info > Protect Workbook > Protect Sheet (Mac).

What happens when someone tries to open a password-protected file

When a person tries to open your encrypted Excel file, they'll see a password prompt before the spreadsheet loads. They must type the correct password to proceed. If they enter the wrong password, Excel will tell them it's incorrect and ask them to try again. They can attempt as many times as they want, but without the right password, they cannot access the file.

This works the same way whether the file is opened from email, a shared drive, or a local computer. The encryption is built into the file itself, so the protection travels with it wherever it goes.

Choosing a strong password you won't forget

A strong password for an Excel file should be at least 8 characters long and include a mix of uppercase letters, lowercase letters, numbers, and symbols like ! or #. For example: Budget2024!Q3 or Sales#Report99. Avoid using your name, birthdate, or common words that appear in dictionaries.

Write your password down and store it somewhere find — a locked drawer, a password manager like Bitwarden or 1Password, or a find note app. If you forget the password, there is no recovery option. Microsoft cannot unlock the file for you, and professional recovery services are expensive. The file will be permanently inaccessible.

Removing or changing a password

To change your password, open the file (you'll need to enter the current password). Go to File > Info > Protect Workbook > Encrypt with Password. Leave the password field blank and click OK. This removes the password. Save the file. Now you can set a new password using the same steps as before.

If you want to remove the password entirely without setting a new one, follow the same process but leave both password fields empty when prompted.

Frequently Asked Questions

What if I forget the password to my Excel file?

There is no built-in recovery method. Microsoft does not store your password and cannot unlock the file. You would need to hire a professional data recovery service, which can be costly and is not always successful. This is why storing your password securely is important.

Can I password-protect just one sheet instead of the whole file?

Yes. Use Protect Sheet instead of Encrypt with Password. This lets people open the file but prevents them from editing that specific sheet. Go to File > Info > Protect Workbook > Protect Current Sheet (Windows) or File > Info > Protect Workbook > Protect Sheet (Mac).

Does password protection work if I share the file via email or cloud storage?

Yes. The encryption is part of the file itself. Whether someone receives it by email, downloads it from OneDrive, or accesses it from Google Drive, they will still need the password to open it. The protection does not depend on how the file is shared.

Can someone break the password if they have the file?

Excel passwords can be cracked with specialized software, though it takes longer with strong passwords. If your file contains highly sensitive information, password protection is a basic layer of security but not absolute protection. For extremely sensitive data, consider additional measures like storing the file on an encrypted drive.

Will the password work if I convert the file to a different format?

If you save an encrypted Excel file as a different format (like CSV or PDF), the password protection may be lost depending on the format. Keep sensitive files in Excel format (.xlsx or .xls) to maintain the encryption.