Hide Formulas in Excel by Protecting a Worksheet
Question details
Hide formulas from the formula bar while allowing users to edit designated input cells.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains formulas that should remain hidden when others select their cells.
- Observed behavior
- Formula results remain visible, but formulas are hidden from the formula bar after the worksheet is protected.
Identify the formula cells to hide and the input cells that others need to edit. Decide whether to use an optional worksheet protection password and keep it somewhere safe.
Mark Formula Cells as Hidden and Protect the Excel Sheet
Use cell formatting and worksheet protection to hide formulas while leaving selected input cells editable.
Select the cells containing formulas. Right-click the selection, choose Format Cells, open the Protection tab, and select Hidden. Click OK.
Select the cells that users should be able to edit. Right-click, choose Format Cells, open Protection, clear Locked, and click OK.
Choose Review > Protect Sheet. Set a password if desired, select the permissions you want to allow, and confirm the settings.
Select a protected formula cell and check that its formula is not shown in the formula bar. Try entering data in an unlocked input cell.

Protect Formula Cells in WPS Spreadsheets
Use cell protection settings and sheet protection in WPS Spreadsheets to hide formulas while keeping designated input cells editable.
- 1. Open the workbook: Open WPS Spreadsheets, choose Open, and select your workbook.
- 2. Hide formula cells: Select the formula cells, right-click and choose Format Cells. On the Protection tab, select Hidden and click OK.
- 3. Unlock input cells: Select the cells that should remain editable. Open Format Cells > Protection, clear Locked, and click OK.
- 4. Protect and check the sheet: Choose Review > Protect Sheet, set a password if desired, and confirm. Select a formula cell to check that the formula is hidden.

Frequently Asked Questions
Why is my formula still visible after I select Hidden?
The Hidden setting takes effect only after you protect the worksheet. Choose Review > Protect Sheet, then select the formula cell again.
How can I let people edit some cells on a protected sheet?
Before protecting the sheet, select the input cells and choose Format Cells > Protection. Clear Locked, click OK, and then protect the sheet.
Do I need a password to hide formulas?
No. A password is optional when you choose Review > Protect Sheet, but without one, others can unprotect the sheet.
How do I see or edit a hidden formula again?
Choose Review > Unprotect Sheet and enter the password if one was set. The formula can then be viewed and edited.




