How to Change a Protected Cell in Excel
In this article
To change a locked cell in Excel, you have to remove the protection first — locked cells cannot be edited while sheet protection is on, no matter which trick you try. The quickest path is Review > Unprotect Sheet, which works instantly if no password was set; if a password exists, you need that password or the co-author needs to unlock it. There are legitimate, built-in ways to edit or unlock the cell: unprotecting the sheet, unlocking specific cells before re-protecting, or, when the workbook is stored on a network or shared server, contacting whoever set the protection.
One thing to be clear about up front: this guide covers removing protection you have the right to remove — your own file, or a file whose owner asked you to edit it. Excel protection is not a security boundary against someone else's data, and this guide does not cover cracking passwords.
What You'll Need
- Microsoft Excel on Windows, Mac, or the web, or a compatible spreadsheet app
- The password for the sheet protection, if one was set
- Permission to edit the file, if it is stored on a shared drive, OneDrive, or SharePoint
- A moment to check whether the whole workbook is protected, not just the sheet
Step-by-Step
- Confirm the file is not read-only. If the file opened with a yellow bar saying PROTECTED VIEW or READ-ONLY, click Enable Editing on the yellow bar first. Protection that comes from the file being read-only is a Windows or cloud permission issue, not Excel's cell lock, and the steps below will not help until that is resolved.
- Click the cell and try to type. When a locked cell is protected, Excel shows a dialog saying the cell or chart you are trying to change is on a protected sheet. That confirms you are dealing with sheet protection rather than a formula error or a locked workbook structure.
- Go to the Review tab. On the ribbon, find the Protect group. If the sheet is protected you will see Unprotect Sheet; if it is not, you will see Protect Sheet. Menu labels and the exact position of the button differ slightly between Excel versions, platforms, and regions, so look for the word Unprotect.
- Click Unprotect Sheet. If no password was applied when the sheet was protected, the sheet unlocks immediately and you can now edit any cell. This is the most common case for templates that were locked informally.
- Enter the password if prompted. Type it exactly, including capitals, and click OK. If you do not have the password, stop here and see Troubleshooting — there is no supported way to bypass it, and guessing wastes time.
- Make your edit. Change the value, formula, or formatting as needed. You can now re-protect the sheet afterward if the file is meant to stay locked for other users.
- Re-protect the sheet if appropriate. Go back to Review > Protect Sheet, tick the actions you want to allow (selecting locked cells and selecting unlocked cells are the usual minimums), set a password if one is required, and click OK. Leaving a sheet unprotected that was deliberately locked can let others overwrite formulas and structure.
If you need to edit only a few cells repeatedly, a better long-term fix is to unlock those specific cells rather than unprotect the whole sheet each time. Here is how:
- Unprotect the sheet as above.
- Select the cells you want editable, or select the whole sheet with Ctrl+A if most of it should stay locked and only some should be free.
- Press Ctrl+1 on Windows (Cmd+1 on Mac) to open Format Cells, or right-click and choose Format Cells.
- Open the Protection tab. Clear the Locked checkbox for the cells you want people to edit. Note that this tab is only meaningful while the sheet is protected.
- Click OK, then go to Review > Protect Sheet again. Now the unlocked cells stay editable and the rest are locked.
If the sheet protection button is greyed out entirely, the workbook structure is probably protected. Go to Review > Protect Workbook and click it to remove workbook-level protection (with its password, if set). This is a different lock from cell locking, and it is the one that stops people adding, deleting, or renaming sheets.
Common Mistakes
- Confusing workbook protection with sheet protection. Protect Workbook locks the structure; Protect Sheet locks cells. Check both before assuming a file is broken.
- Unlocking cells while the sheet is still protected. Clearing the Locked checkbox has no effect until you unprotect and re-protect the sheet.
- Losing the password. Store the sheet password somewhere safe, such as a password manager. There is no official recovery path, and the only supported fix is restoring an unprotected copy from version history or a backup.
- Re-protecting without checking allowed actions. If you forget to allow row and column insertion or sorting, users will still be blocked even on unlocked cells.
- Assuming a password is present. Many files are protected with no password at all; try unprotecting first before hunting for one.
Tips
- Before unprotecting, note which cells were unlocked so you can restore the same setup later. A quick way is to copy the sheet to a scratch workbook first.
- Use OneDrive or SharePoint version history to recover an earlier unprotected version if you need to undo a protection change.
- When sharing a template, protect only the cells with formulas and leave input cells unlocked — that is more user-friendly than locking everything.
- On Excel for the web, protection options are more limited than in the desktop app; if you cannot find Unprotect Sheet, open the file in the desktop version.
- If the file is shared with several people, ask the owner to grant edit permission rather than unprotecting it yourself, so the intended structure survives.
Troubleshooting
If Unprotect Sheet seems to do nothing, check whether the cell is actually in a protected sheet or whether the workbook is read-only. A read-only file looks editable until you type, then refuses changes.
If you are prompted for a password you do not have, the honest answer is that Excel cannot open it without that password. Options are to ask the person who protected the file, restore an earlier copy from backup or version history, or request an unprotected copy. Do not rely on tricks or third-party tools that claim to remove passwords — they are unsupported and may damage the file.
If the cell still will not accept input after unprotecting, check for data validation or a circular reference. A cell with a validation rule can reject values that look fine, and a circular reference can freeze recalculation. Try a plain number in a different cell to isolate the problem.
If the sheet unprotects but the value reverted on save, the workbook may be saved to a location you cannot write to, or someone else may have overwritten your change. Save a copy locally and check the file's permissions.
Frequently Asked Questions
Can I edit a protected cell without the password?
Only if no password was set. Review > Unprotect Sheet unlocks it immediately in that case. If a password exists, Excel will not allow editing without it, and the supported route is asking the owner or restoring a backup.
Why is Unprotect Sheet greyed out?
Usually because the whole workbook structure is protected, or the sheet is read-only. Check Review > Protect Workbook, and confirm the file is not opened in read-only mode from a shared location.
Does unprotecting ruin the file for other users?
Not if you re-protect afterward. If you leave it unprotected, anyone with access can change formulas and structure, so re-apply protection when you are done.
Can I make just a few cells editable?
Yes. Unprotect the sheet, select the cells, open Format Cells > Protection, clear Locked, then protect the sheet again. Only those cells will accept input.
Is protecting a sheet secure?
No. Sheet protection prevents accidental edits and enforces structure for cooperating users, but it is not encrypted security. Treat it as a handy guardrail, not a confidential lock.