The two ways to lock down an Excel sheet

Excel gives you two separate protections, and they do different things. File-level password means nobody can open the file at all without the password — they cannot see the data, cannot copy it, cannot do anything. Sheet-level password means the file opens normally, but certain cells or the entire sheet cannot be edited without the password. Most people need sheet-level protection: you want colleagues or family to see the spreadsheet and use it, but not accidentally (or deliberately) change your formulas or structure.

Sheet protection is faster to set up and easier to manage if you share the file. File-level password is stronger but means everyone who needs to view the file needs the password. Choose sheet protection if you want to share read-only access; choose file protection if the entire spreadsheet is sensitive.

Key Takeaways

  • Sheet-level protection locks specific cells or formulas while letting others view and use the spreadsheet normally.
  • File-level password protection prevents anyone from opening the file without the password, but then everyone who needs access needs that same password.
  • In Excel, you set sheet protection through the Review tab (Windows) or Review menu (Mac), and you can choose which actions to allow or block.
  • Sheet passwords in Excel are not military-grade encryption — they prevent accidental changes and casual tampering, not determined attack.
  • If you forget a sheet password, you cannot recover it; if you forget a file password, you cannot open the file.

How to protect a single sheet with a password

Open your Excel file and go to the Review tab at the top of the screen (Windows) or the Review menu (Mac). Look for the button labeled Protect Sheet. Click it.

A dialog box will appear asking you to enter a password. Type a password you will remember — write it down somewhere safe if you think you might forget it, because Excel cannot recover a lost sheet password. You can leave the password field blank if you want to lock the sheet but not require a password to unlock it; this prevents accidental changes but not deliberate ones. After you enter the password, click OK.

Excel will ask you to confirm the password by typing it again. Do this and click OK. The sheet is now protected. The Protect Sheet button will change to Unprotect Sheet, showing that protection is active.

By default, sheet protection locks all cells and prevents editing. If you want some cells to remain editable while others stay locked, you need to set this up before you protect the sheet. Select the cells you want to allow editing on, right-click, choose Format Cells, go to the Protection tab, and uncheck the Locked box. Then protect the sheet as described above — now only the unlocked cells can be edited.

How to password protect the entire Excel file

File-level protection is simpler to set up but more restrictive. Go to File at the top left, then click Info (Windows) or look for File menu options (Mac). On Windows, you will see a button labeled Protect Workbook with a dropdown arrow. Click the arrow and select Encrypt with Password.

A dialog box will appear asking for a password. Type it in, click OK, and confirm it by typing it again. The file is now encrypted. The next time anyone opens this file, they will be prompted for the password before they can see anything inside.

On Mac, the process is slightly different. Go to File, then Properties or Info, and look for a Security or Password option. The exact location varies by Excel version, so if you do not see it when ready, check the Help menu for "password protect workbook".

What sheet protection actually stops

Sheet protection in Excel prevents users from editing cells, inserting or deleting rows and columns, and modifying formulas — but only if they do not have the password. It does not encrypt the data. Someone with technical skill can remove sheet protection without the password using freely available tools; sheet protection is designed to stop accidental changes and casual tampering, not determined attack.

If you need to protect sensitive financial data or personal information, file-level password protection (encryption) is stronger. Sheet protection is appropriate when you want to prevent colleagues from accidentally breaking a shared spreadsheet, or when you want to lock down formulas while letting people enter data into specific cells.

What happens when someone tries to edit a protected sheet

When a user tries to edit a locked cell in a protected sheet, Excel will show a dialog saying the sheet is protected and ask if they want to unprotect it. If they click yes, they will be prompted for the password. If they do not have it, they cannot proceed. If they click no, the edit is blocked and the cell stays as it was.

This is why sheet protection works well for shared files: it is not invisible or sneaky. Users know the sheet is protected, they know they can ask for the password if they have a legitimate reason to edit, and accidental changes are prevented without frustration.

Removing or changing a sheet password

To remove sheet protection, go back to the Review tab and click Unprotect Sheet. If you set a password, Excel will ask for it. Enter the password and click OK. The sheet is now unprotected and fully editable.

To change a password, unprotect the sheet, then protect it again with a new password. There is no "change password" option — you have to remove the old protection and add new protection.

If you forget the sheet password, you cannot recover it through Excel. You would need to use a third-party tool to remove the protection, which is possible but not straightforward. This is why writing down your password in a find location (a password manager, a locked drawer, not a sticky note on your monitor) matters.

Why your file password is different from your sheet password

A file password encrypts the entire workbook so it cannot be opened without the password. A sheet password protects the contents of one sheet so it cannot be edited without the password, but the file itself still opens. If you use both, someone needs the file password just to see the spreadsheet, and then they need the sheet password to edit it. This is overkill for most situations.

For a shared spreadsheet where you want people to see and use it but not change the structure, use sheet protection only. For a file with sensitive data that should not be seen by most people, use file protection only. Use both only if the data is highly sensitive and you want multiple layers of defense.

Frequently Asked Questions

Can I protect some sheets but not others in the same file?

Yes. Each sheet has its own protection setting. Go to each sheet tab, click the sheet you want to protect, then use the Review tab to protect or unprotect it individually. This is useful when you want to lock down formulas on one sheet but let people edit data entry on another sheet in the same file.

What if I forget my file password?

You cannot open the file. Excel does not have a password recovery option for file-level encryption. If this happens, you will need to contact Microsoft support or use a third-party recovery service, though recovery is not may provide. This is why file passwords should be stored securely — in a password manager, not in your email or a document.

Can someone remove sheet protection without the password?

Sheet protection in Excel can be removed by someone with technical skill using freely available tools. It is not encryption — it is a lock designed to prevent accidental changes. If you need to protect truly sensitive data, use file-level password protection (encryption) instead, which is much harder to bypass.

Do I need a password to protect a sheet?

No. You can protect a sheet without setting a password, which prevents all editing but does not require anyone to enter a password to unprotect it. This is useful if you just want to prevent accidental changes and do not need to keep the sheet locked against intentional editing.

Will sheet protection work if I save the file as a different format?

Sheet protection may not carry over if you save as .csv, .txt, or other non-Excel formats. If you save as .xlsx or .xls, protection stays intact. Always check the file format before sharing a protected sheet to make sure the protection is preserved.