How to Protect Excel Formulas Without Locking All Data Entry Cells
Question details
The user needs to prevent changes to Excel formulas while still allowing data entry in other specific cells.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Creating a shared spreadsheet where users must input data without accidentally modifying or deleting existing formulas.
- Observed behavior
- Standard worksheet protection locks all cells by default, completely preventing data entry unless specific cells are configured properly beforehand.
Before applying protection, clearly identify which cells are meant for user input and which contain formulas that need to be secured.
Unlock Input Cells and Protect the Worksheet
Since all cells in Excel are locked by default, you must unlock the specific data entry cells before turning on worksheet protection.
Worksheet protection in Excel relies on two cell properties: 'Locked' and 'Hidden'. By default, all cells have the 'Locked' property enabled, but this has no effect until worksheet protection is activated. To allow data entry in specific areas, you must remove the locked status from those cells prior to protecting the sheet.
Highlight all the cells or ranges where you want users to be able to enter or edit data.
Right-click the highlighted cells and choose 'Format Cells' from the context menu, or press the 'Ctrl+1' keyboard shortcut.
Navigate to the 'Protection' tab in the Format Cells dialog window. Uncheck the 'Locked' checkbox and click 'OK'.
Go to the 'Review' tab on the Excel ribbon and click 'Protect Sheet'.
Ensure 'Select unlocked cells' is checked. Optionally, enter a password to prevent unauthorized unprotection, then click 'OK'.

Protect Your Formulas Safely with WPS Spreadsheet
WPS Spreadsheet provides intuitive and robust sheet protection features, allowing you to easily lock formulas and unlock input cells for safe data entry.
- 1. Select Data Cells: Open your spreadsheet in WPS Office and highlight the cells intended for data entry.
- 2. Unlock Cells: Right-click, choose 'Format Cells', go to the 'Protection' tab, and uncheck 'Locked'.
- 3. Protect Sheet: Navigate to the 'Review' tab on the ribbon and click 'Protect Sheet'.
- 4. Confirm Protection: Set an optional password, ensure 'Select unlocked cells' is permitted, and click 'OK'.

Frequently Asked Questions
Can I protect formulas without using a password?
Yes, you can leave the password field blank when activating 'Protect Sheet'. The formulas will be locked from accidental edits, but any user will be able to turn off the protection by simply clicking 'Unprotect Sheet' on the Review tab.
Why are my unlocked cells still protected?
This usually happens if you forgot to uncheck the 'Locked' box in the 'Format Cells' menu before protecting the sheet, or if you selected the wrong range of cells. You must unprotect the sheet, correct the cell properties, and then reapply protection.
How can I hide the formulas so they don't appear in the formula bar?
Select the cells containing the formulas, open the 'Format Cells' dialog (Ctrl+1), go to the 'Protection' tab, and check the 'Hidden' box. Once you apply worksheet protection, the formula bar will appear blank when these cells are selected.
Will these protection settings work if I share the file with other spreadsheet software?
Yes, cell locking and worksheet protection are standard features. Settings applied in Excel or WPS Office are fully compatible and will carry over seamlessly when shared with users of different spreadsheet applications.




