How to Lock an Excel Column and Allow Editing in Unlocked Cells
Question details
The user needs to lock specific columns or cells in an Excel worksheet while leaving others editable for other users.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Securing a spreadsheet to prevent accidental changes to headers or formulas while allowing data entry in specific areas.
- Observed behavior
- By default, all cells are marked as locked, but this setting only takes effect when worksheet protection is explicitly activated.
Before protecting your worksheet, ensure you select and unlock all the specific cells you want users to remain able to edit. Remember that lost sheet protection passwords cannot be recovered easily, so keep your password stored securely.
Unlock Specific Cells and Protect the Worksheet
This is the standard method to allow editing in specific cells while locking the rest of the column or worksheet to prevent unauthorized changes.
In Excel, all cells are locked by default. However, this lock property has no effect until you turn on the Protect Sheet feature. To lock specific columns and leave others editable, you must first unlock the cells you want users to modify.
Highlight the specific cells or ranges within your spreadsheet that you want users to be able to edit.
Right-click the selected cells and choose 'Format Cells' from the context menu, or press Ctrl+1 on your keyboard.
Navigate to the 'Protection' tab in the Format Cells dialog box, uncheck the 'Locked' option, and click 'OK'.
Go to the 'Review' tab on the Excel ribbon and click 'Protect Sheet'. Choose the actions users are allowed to perform, enter a password if desired, and click 'OK'.

Protect and Manage Your Data with WPS Office
WPS Spreadsheet provides a highly intuitive way to lock cells, protect worksheets, and collaborate securely. It allows you to quickly designate editable areas and lock down sensitive columns in just a few clicks.
- 1. Select editable cells: Open your spreadsheet in WPS Office, highlight the cells you want to remain editable, right-click, and choose 'Format Cells'.
- 2. Unlock the cells: Switch to the 'Protection' tab in the dialog box, uncheck the 'Locked' box, and confirm by clicking 'OK'.
- 3. Enable worksheet protection: Go to the 'Review' tab, click 'Protect Sheet', set a secure password, and ensure 'Select unlocked cells' is checked so users can edit them.

Frequently Asked Questions
Why can I still edit a cell even after I checked the Locked option?
The 'Locked' option in the Format Cells dialog does not take effect until you enable worksheet protection. You must navigate to the Review tab and click 'Protect Sheet' for the lock to activate.
Can I lock an entire column but allow editing in just one specific cell?
Yes. Because all cells are locked by default, you simply need to right-click the specific cell you want editable, go to Format Cells > Protection, uncheck 'Locked', and then turn on 'Protect Sheet'.
How do I remove protection from my Excel sheet to make edits?
To unprotect a worksheet, go to the Review tab and click 'Unprotect Sheet'. If a password was set during the protection process, you will be prompted to enter it before you can make changes to locked cells.
Will locking cells automatically hide my formulas?
Not automatically. To hide formulas from being visible in the formula bar, you must select the cells, open Format Cells, go to the Protection tab, check the 'Hidden' box, and then activate sheet protection.




