Hide or display formulas
For security or privacy reasons, you may want to hide a formula from users of your worksheet. Or you may be auditing formulas and you need to see all the formulas on the worksheet. You can use the following procedures to control the hiding or displaying of formulas.What do you want to do?
Switch between displaying formulas and their values on a worksheet
Prevent a formula from displaying in the formula bar
Show formulas that were previously hidden by removing protection
Switch between displaying formulas and their values on a worksheet
- Press CTRL + ` (grave accent).
Prevent a formula from displaying in the formula bar
Caution This procedure also prevents the cells that contain the formula from being edited.
- Select the range of cells whose formulas you want to hide. You can also select nonadjacent ranges or the entire sheet.
- On the
Hometab, in theCellsgroup, clickFormat, clickFormat Cells, and then click theProtectiontab.
- Select the
Hiddencheck box. - Click
OK. - On the
Hometab, in theCellsgroup, clickFormat, and then clickProtect Sheet.
- Make sure that the
Protect worksheet and contents of locked cellscheck box is selected.
Show formulas that were previously hidden by removing protection
- On the
Reviewtab, in theChangesgroup, clickUnprotect Sheet.
- Select the range of cells whose formulas you want to unhide.
- On the
Hometab, in theCellsgroup, clickFormat, clickFormat Cells, and then click theProtectiontab. - Clear the
Hiddencheck box.
![]()