To protect a single cell in Excel, you must first unlock all cells (since they are locked by default), then lock only the specific cell you want to safeguard—but crucially, you must also protect the sheet for the lock to take effect. Without sheet protection, locking a cell does nothing.
What You'll Need
- Microsoft Excel installed (Windows, Mac, or online via Excel for the web)
- A worksheet with data you want to restrict editing on
- Excel permissions to modify the file (no read-only or shared mode restrictions)
Step-by-Step
- Open your Excel workbook and navigate to the worksheet containing the cell you want to protect.
- Press Ctrl + A (Windows) or Command + A (Mac) to select the entire sheet. This ensures you’re working with all cells.
- Right-click anywhere in the selected area and choose Format Cells from the context menu. Alternatively, go to the Home tab > Cells group > Format > Format Cells.
- In the Format Cells dialog box, switch to the Protection tab. You’ll see the Locked checkbox is checked by default. Clear (uncheck) this box to unlock all cells. Click OK.
- Now select only the specific cell (or cells, if protecting multiple) you want to safeguard. Click the cell once to highlight it. If selecting multiple non-adjacent cells, hold Ctrl (Windows) or Command (Mac) while clicking each one.
- With just your target cell(s) selected, right-click and choose Format Cells again. Go to the Protection tab and check the Locked box. Click OK.
- To enforce the lock, you must protect the sheet. Go to the Review tab on the ribbon, then click Protect Sheet.
- In the Protect Sheet dialog box, optionally set a password (recommended for security). You can also choose which actions users are allowed to perform (e.g., selecting locked/unlocked cells, sorting, using AutoFilter). Leave the defaults unless you have specific needs. Click OK.
- If you set a password, enter it again when prompted and confirm. Save your workbook to retain the protection settings.
Common Mistakes
- Skipping the step to unlock all cells first: If you lock only one cell without first unlocking the rest, Excel will lock all cells when you protect the sheet—preventing edits everywhere, not just your target.
- Protecting the sheet without setting a password: Anyone can unprotect the sheet by going to Review > Unprotect Sheet and clicking OK without entering a password. Always use a strong, unique password and store it securely.
- Editing the cell after protection: Once the sheet is protected, you won’t be able to edit the cell either—even as the file owner—unless you unprotect the sheet first. To edit, go to Review > Unprotect Sheet, enter your password, make changes, then re-protect.
- Assuming cell protection works in shared workbooks: Sheet protection is incompatible with Excel’s real-time co-authoring features. If the file is shared via OneDrive or SharePoint, you’ll need to stop sharing or use Excel’s built-in sharing permissions instead.
Tips
- Use the Allow Users to Edit Ranges feature (under Review > Protect Sheet > Allow Users to Edit Ranges) if you need to let certain users edit specific ranges without unlocking the whole sheet. Define a range, set a password, and assign it—ideal for forms or templates.
- Locking prevents editing but not copying. If you want to prevent copying, combine sheet protection with file-level restrictions (e.g., marking the file as final, using Information Rights Management in Excel Pro Plus).
- On Mac, the menu paths are nearly identical, but the ribbon labels may differ slightly (e.g., Format Cells appears under Home > Cells > Format).
- For Excel Online (free version), you can protect a sheet (via Review > Protect Sheet), but you cannot set a password. Protection is limited and easily removed by anyone with edit access.
- Consider formatting the protected cell differently (e.g., gray background) to visually signal it’s off-limits—just don’t rely on appearance alone for security.
Troubleshooting
If your cell isn’t protected, follow these checks:
- Verify sheet protection is active: Go to Review > Unprotect Sheet. If this button is grayed out, the sheet is already protected. If it’s clickable, protection is off—go back to Step 8 and re-protect.
- Confirm the cell’s Locked status: Select the cell, press Ctrl + 1 (Windows) or Command + 1 (Mac), go to the Protection tab, and ensure Locked is checked. If not, re-check it and re-protect the sheet.
- Check for worksheet-level protection overrides: If the file is part of a table (List Object), right-click the table > Table Design > ensure Header Row or Total Row options aren’t forcing edits. Tables can bypass standard protection.
- Look for merged cells or shapes: Merged cells or drawing objects (like text boxes) can interfere with protection. Unmerge cells or move/resize shapes outside the target cell.
- Disable protected view: If the file opened in Protected View (common for downloads), click Enable Editing in the yellow bar. Protection won’t apply in Protected View.
- Restart Excel: Occasionally, Excel’s protection engine glitches. Close all Excel windows, reopen the file, and re-apply protection.
Frequently Asked Questions
Does locking a cell prevent it from being deleted?
Yes—if the sheet is protected. Locking alone does nothing, but once the sheet is protected, locked cells cannot be edited, deleted, or cleared. Unlocked cells remain editable.
Can I let users edit one cell but lock all others without a password?
No. Excel requires the sheet to be protected for the lock to take effect, and without a password, anyone can unprotect the sheet and edit any cell. Use a password—even a simple one—for basic security.
Why can I still edit the cell after protecting the sheet?
Most likely, the cell wasn’t locked before protection. Double-check: select the cell, press Ctrl + 1, go to Protection, and ensure Locked is checked. Also confirm the sheet is protected (check if Unprotect Sheet is available under Review).
Does protecting a cell protect its formula?
Yes. If the cell contains a formula and is locked + sheet protected, users cannot change the formula, value, or formatting of that cell. They can only select it (if allowed in Protect Sheet settings).
Can I protect a cell in Excel on Mac?
Yes. The steps are nearly identical: unlock all cells first, lock your target cell, then go to Review > Protect Sheet. On Mac, you’ll find Protect Sheet under the Review tab in the ribbon.
What happens if I forget the password?
Excel does not provide a built-in way to recover a forgotten password. Microsoft states password recovery is not possible. Your options are: restore the file from a backup created before protection, use third-party password recovery tools (at your own risk), or recreate the sheet manually. Always back up files before protecting them.