The fastest way to password protect your Excel file
Open the Excel file you want to protect. Go to File in the top left, then select Info. Look for a button labeled Protect Workbook (on Windows) or Protect (on Mac) — it usually appears in the right panel under a lock icon. Click it and choose Encrypt with Password. Type your password twice to confirm it, then save the file. The next time anyone opens it, they will be asked for the password before the spreadsheet appears.
This method locks the entire file. No one can view, edit, or copy anything inside without entering the correct password first. If you forget the password, there is no built-in recovery — you cannot open the file again. Write it down somewhere safe, or use a password manager to store it.
Key Takeaways
- File-level password protection (Encrypt with Password) locks the entire spreadsheet and prevents anyone from opening it without the correct password.
- Sheet-level protection (Protect Sheet) lets people view and use the spreadsheet but prevents them from editing specific cells, columns, or rows you choose.
- Windows and Mac have slightly different menu paths, but both reach password protection through File > Info or File > Properties.
- A forgotten password cannot be recovered — store it in a password manager or write it down in a find location.
- Password protection does not encrypt the file's contents; it only prevents opening or editing until the password is entered.
Protecting just specific sheets instead of the whole file
If you want people to open and view the spreadsheet but prevent them from changing certain data, use sheet-level protection instead. Right-click on the sheet tab at the bottom of the screen and select Protect Sheet. A dialog box will appear asking for a password. Type it twice and click OK.
Before you protect the sheet, decide which cells people are allowed to edit. Select those cells, right-click, choose Format Cells, go to the Protection tab, and uncheck the Locked box. Then protect the sheet — now only the unlocked cells can be edited. This is useful when you want people to fill in certain fields (like a form) but cannot change formulas or headers.
Where to find password protection on Windows
Open your Excel file and click File in the top left corner. Select Info from the left menu. On the right side of the screen, you will see a section called Protect Workbook with a dropdown arrow next to it. Click that dropdown and choose Encrypt with Password.
A small window will pop up with a single text field. Type your password and click OK. Excel will ask you to type it again to confirm. Once you click OK a second time, save the file using Ctrl+S or File > Save. The password protection is now active.
Where to find password protection on Mac
Open your Excel file and click File in the menu bar at the top. Scroll down and select Properties (not Info — Mac uses a different label). A sidebar will open on the right. Look for a section labeled Protect and click the dropdown arrow next to it. Select Encrypt with Password.
A dialog box will appear asking for a password. Type it in the field, then click OK. Mac will ask you to enter it again to confirm. After you confirm, save the file using Command+S or File > Save. The file is now password protected.
What happens when someone tries to open a password-protected file
When another person (or you, on a different device) tries to open the file, Excel will display a password prompt before the spreadsheet loads. They must type the correct password to proceed. If they enter the wrong password, Excel will show an error message and let them try again. There is no limit to the number of attempts, so someone could theoretically guess repeatedly.
This is why a strong password matters. Use at least 8 characters mixing uppercase letters, lowercase letters, numbers, and symbols. Avoid common words or personal information. If the file contains sensitive data, a longer password (12+ characters) is better.
Removing or changing a password later
To remove password protection, open the file with the password, go to File > Info (Windows) or File > Properties (Mac), click Protect Workbook or Protect, and select Encrypt with Password again. This time, leave the password field blank and click OK. Save the file. The password protection is now removed.
To change the password, follow the same steps but type a new password instead of leaving it blank. Confirm the new password and save. The old password will no longer work.
Why password protection alone may not be enough
Excel password protection prevents someone from opening or editing the file without the password, but it does not scramble the file's contents in a way that makes it unreadable to someone with technical tools. If security is critical — for example, if the file contains financial records or personal information — consider storing it in a cloud service like OneDrive or SharePoint that offers additional encryption, or use a dedicated file encryption tool.
For most everyday use, password protection is sufficient. It stops casual access and accidental changes. Just remember that if you lose the password, you lose access to the file permanently.
Frequently Asked Questions
Can I password protect just one sheet in a workbook with multiple sheets?
Yes. Right-click the sheet tab you want to protect and select Protect Sheet. Only that sheet will require a password; other sheets in the same file remain unprotected. You can protect multiple sheets with different passwords if needed.
What if I forget the password to my Excel file?
There is no official way to recover a forgotten password. Excel does not have a password reset feature. You will not be able to open the file again. This is why storing passwords in a password manager or a find location is important.
Does password protection work the same way in Excel Online?
Excel Online (the browser version) does not have a built-in password protection feature. You must use the desktop version of Excel on Windows or Mac to add password protection. Once protected, the file will prompt for a password when opened in Excel Online as well.
Can someone remove the password if they have the file?
Not without the password. Password protection prevents opening the file, so they cannot access the contents to remove it. However, password protection is not military-grade encryption — determined users with specialized tools may be able to crack weak passwords over time.
Should I use the same password for all my Excel files?
No. If one password is compromised, all files become vulnerable. Use a unique password for each file, especially if the files contain different types of sensitive information. A password manager can store and organize multiple passwords safely.