When you share a complex spreadsheet with colleagues or clients, the last thing you want is for someone to accidentally overwrite a crucial formula or delete important data. By learning how to lock cells in Excel, you can allow users to input data into specific areas while keeping the rest of your sheet completely protected.
Step 1: Unlock the Cells You Want People to Edit
By default, every single cell in a Microsoft Excel spreadsheet is “locked.” However, this lock does not actually do anything until you protect the sheet. Therefore, the first step is to unlock the cells where you want people to type.
- Select the cell or range of cells you want users to be able to edit. You can hold the Ctrl key to select multiple non-adjacent cells.
- Right-click the selected cells and choose Format Cells… from the context menu.
- In the window that appears, navigate to the Protection tab on the far right.
- Untick the box that says Locked.
- Click OK.
Step 2: Protect the Sheet
Now that your input cells are unlocked, you need to activate the protection for the rest of the spreadsheet. This will enforce the lock on all the cells you didn’t highlight in Step 1.
- Go to the Review tab on the top ribbon.
- Click on Protect Sheet.
- A dialogue box will appear. Ensure the box next to Protect worksheet and contents of locked cells is ticked.
- (Optional) Enter a password. If you add a password, no one will be able to turn off the protection without it. If you leave it blank, anyone can click “Unprotect Sheet” to remove the lock.
- By default, users are allowed to “Select locked cells” and “Select unlocked cells”. You can leave these ticked.
- Click OK. If you entered a password, you will be asked to confirm it.
Frequently Asked Questions
How do I unprotect the sheet later?
To make changes to your locked formulas, simply go back to the Review tab and click Unprotect Sheet. You will need to enter your password if you set one.
What happens if I forget my Excel password?
Unfortunately, Microsoft does not provide a way to recover a lost sheet protection password. It is highly recommended to store your passwords in a secure password manager to prevent permanent data lockouts.