0
0
Excelspreadsheet~5 mins

Cell locking in Excel - Step-by-Step Guide

Choose your learning style9 modes available
Introduction
Cell locking helps protect specific cells in your Excel sheet so others cannot change them. This is useful when you want to keep important data safe while allowing edits elsewhere.
When you want to prevent accidental changes to formulas in your budget sheet
When sharing a report and you want users to only enter data in certain cells
When creating a form where only input fields should be editable
When protecting headers or labels from being modified
When you want to lock cells but still allow sorting or filtering on the sheet
Steps
Step 1: Select the cells you want to allow users to edit
- Excel worksheet
The chosen cells are highlighted
💡 By default, all cells are locked, so you unlock the editable ones first
Step 2: Right-click the selected cells and choose 'Format Cells'
- Context menu
The Format Cells dialog box opens
Step 3: Click the 'Protection' tab
- Format Cells dialog box
Protection options appear
Step 4: Uncheck the 'Locked' checkbox
- Protection tab
Selected cells are set to be unlocked when sheet protection is applied
Step 5: Click 'OK' to close the dialog
- Format Cells dialog box
Cell formatting is updated
Step 6: Go to the 'Review' tab and click 'Protect Sheet'
- Ribbon on the Review tab
The Protect Sheet dialog box opens
Step 7: Enter a password if you want (optional) and make sure 'Protect worksheet and contents of locked cells' is checked
- Protect Sheet dialog box
Sheet protection settings are ready
Step 8: Click 'OK' to apply protection
- Protect Sheet dialog box
Locked cells cannot be edited; unlocked cells remain editable
Before vs After
Before
All cells are editable, including formulas and headers
After
Only unlocked cells can be edited; locked cells like formulas and headers are protected from changes
Settings Reference
Locked
📍 Format Cells dialog > Protection tab
Determines if a cell is locked when sheet protection is enabled
Default: Checked
Protect Sheet
📍 Review tab > Protect Sheet button
Enables protection on the sheet to enforce locked cell restrictions
Default: No password, all locked cells protected
Common Mistakes
Not unlocking the cells you want editable before protecting the sheet
Because all cells are locked by default, protection will block editing everywhere
First unlock the cells you want users to edit, then protect the sheet
Forgetting to apply sheet protection after unlocking cells
Unlocking cells alone does not prevent editing unless the sheet is protected
After unlocking cells, always use 'Protect Sheet' to enforce locking
Using a password but forgetting it
You cannot unprotect the sheet without the password, risking loss of access
Use a password only if you can remember it or store it safely
Summary
Cell locking protects important cells from being changed by others.
By default, all cells are locked; unlock only the cells you want editable before protecting the sheet.
Sheet protection must be enabled to enforce locking, optionally with a password.