Office Settings & Configuration

Hide Formulas in Excel by Protecting a Worksheet

Camila MilosovichCamila Milosovich Dec 2, 2026 868 views

Question details

Hide formulas from the formula bar while allowing users to edit designated input cells.

Hide Excel Formulas by Protecting the Worksheet
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.
Before you start

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.

Solution 1Recommended

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.

1
Mark formula cells as hidden

Select the cells containing formulas. Right-click the selection, choose Format Cells, open the Protection tab, and select Hidden. Click OK.

2
Unlock input cells

Select the cells that users should be able to edit. Right-click, choose Format Cells, open Protection, clear Locked, and click OK.

3
Protect the worksheet

Choose Review > Protect Sheet. Set a password if desired, select the permissions you want to allow, and confirm the settings.

4
Check the result

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.

Mark Formula Cells as Hidden and Protect the Excel Sheet
Protection limits: The Hidden setting takes effect only when the sheet is protected. Worksheet protection helps prevent changes but is not a substitute for encrypting sensitive information.
Hide formulas in WPS Spreadsheets

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. 1. Open the workbook: Open WPS Spreadsheets, choose Open, and select your workbook.
  2. 2. Hide formula cells: Select the formula cells, right-click and choose Format Cells. On the Protection tab, select Hidden and click OK.
  3. 3. Unlock input cells: Select the cells that should remain editable. Open Format Cells > Protection, clear Locked, and click OK.
  4. 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.
Hide formulas from the formula bar on a protected sheet.Keep selected input cells editable by clearing their Locked setting.Open and save Microsoft Excel XLSX and XLS files.Work in a familiar spreadsheet interface.
microsoft office alternative - wps office

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.