Display or hide formulas

You can control the display of formulas in the following ways:

Press CTRL + ` (grave accent).

Note: This procedure also prevents the cells that contain the formula from being edited.

  1. Select the range of cells whose formulas you want to hide. You can also select nonadjacent ranges or the entire sheet.

  2. Click Home > Format > Format Cells.

  3. On the Protection tab, select the Hidden check box.

  4. Click OK.

  5. Click Review > Protect Sheet.

  6. Make sure the Protect worksheet and contents of locked cells check box is selected, and then click OK.

Click the Review tab, and then click Unprotect Sheet. If the Unprotect Sheet button is unavailable, turn off the Shared Workbook feature first.

If you don't want the formulas hidden when the sheet is protected in the future, right-click the cells, and click Format Cells. On the Protection tab, clear the Hidden check box.

Hiding and protecting formulas is currently not supported in Excel for the web.

If you have the Excel desktop application, click the Open in Excel button to open your workbook to hide and protect your formulas from being viewed or changed there.

Need more help?

Expand your Office skills
Explore training
Got It
Get instant Excel help
Connect to an expert now
Subject to Got It terms and conditions

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.