How to Protect Excel Worksheets While Allowing Specific Formatting Changes
Question details
Use worksheet protection to restrict general changes while selectively allowing users to enter data and apply specific formats, such as a strikethrough, to particular cells.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Sharing a worksheet where users need to input data and make minor formatting changes without breaking the overall design or modifying locked formulas.
- Observed behavior
- Designated cells remain editable and accept formatting actions, while the rest of the worksheet is locked and fully protected from unauthorized changes.
Identify exactly which cells need to remain editable and determine what specific formatting actions your users will need to perform before applying worksheet protection.
Unlock Specific Cells and Apply Sheet Protection
Configure cell properties to unlock specific areas, then apply sheet protection with customized permissions.
By default, all cells in an Excel worksheet are locked, but this locking has no effect until you protect the worksheet. To allow specific changes, you must first unlock the target cells and then specify the allowed actions during the protection phase.
Highlight the cells or ranges that you want users to be able to edit or format.
Right-click the selected cells and choose 'Format Cells'. Navigate to the 'Protection' tab and uncheck the 'Locked' box. Click 'OK'.
Go to the 'Review' tab on the Excel ribbon and click 'Protect Sheet'.
In the 'Allow all users of this worksheet to' list, check the boxes for the actions you want to permit, such as 'Format cells', 'Insert rows', or 'Sort'.
Enter a password in the password field to prevent unauthorized users from removing the protection. Click 'OK', re-enter the password to confirm, and click 'OK' again.

Secure Your Spreadsheets with WPS Office
WPS Spreadsheet provides intuitive and robust tools to lock cells and protect your worksheets. You can easily define user permissions, allow specific formatting changes, and safeguard your data with a familiar interface.
- 1. Select Unlocked Cells: Open your file in WPS Spreadsheet and highlight the cells you want users to edit.
- 2. Modify Cell Protection: Right-click, select 'Format Cells', go to the 'Protection' tab, and uncheck 'Locked'.
- 3. Protect the Worksheet: Navigate to the 'Review' tab and click the 'Protect Sheet' button.
- 4. Set Formatting Permissions: Check 'Format cells' and any other actions you want to allow, then enter a secure password.
- 5. Confirm and Apply: Click 'OK', confirm your password, and your customized worksheet protection will be instantly applied.

Frequently Asked Questions
Can I allow users to format cells but prevent them from changing the data?
Yes. When setting up 'Protect Sheet', you can leave the cells 'Locked' to prevent data entry, but check the 'Format cells' option in the permissions list. This allows formatting changes without compromising cell content.
What happens if I forget the worksheet protection password?
Spreadsheet software generally does not provide a built-in way to recover a lost worksheet protection password. It is highly recommended to store your passwords securely, as you will not be able to modify the protection settings without it.
Does protecting a worksheet encrypt my entire Excel file?
No, the 'Protect Sheet' feature only restricts user modifications to locked cells within that specific worksheet. To fully encrypt the entire file and require a password to open it, you must use the 'Encrypt with Password' feature found in the Save or File Info options.




