Home  >  Article  >  How to hide formulas in Excel?

How to hide formulas in Excel?

王林
王林forward
2023-04-26 23:13:062350browse

How to protect a worksheet in Excel

You can hide formulas in Excel only when you turn on worksheet protection. Protecting a worksheet prevents people from editing any cells you specify, ensuring they don't break your spreadsheet.

It's useful to know how to do this before we go any further.

To protect a worksheet in Excel:

  1. On the ribbon bar, press Review.
    如何在 Excel 中隐藏公式
  2. Click Protect Sheet.
    如何在 Excel 中隐藏公式
  3. Enter your password if required. If you don't enter it, someone else can unprotect your sheet with just a few clicks.
  4. Click "OK" to continue.
    如何在 Excel 中隐藏公式
  5. Sheet protection is now on. Anyone trying to edit the cell will receive a pop-up message.
    如何在 Excel 中隐藏公式

How to unprotect a worksheet in Excel

Once you turn on worksheet protection, you will not be able to make any changes. If you want to edit the worksheet, you need to unprotect it first.

Unprotect a worksheet in Excel:

  1. Press on the ribbon bar to view.
    如何在 Excel 中隐藏公式
  2. Next, press Unprotect Sheet.
    如何在 Excel 中隐藏公式
  3. If you entered a password when protecting the worksheet, you will be required to enter the password now.
  4. Sheet protection is now off and you can make any edits you want.

How to hide formulas in Excel by locking all cells

You can hide formulas in Excel by setting all cells to hidden and locked, and then protecting your worksheet all formulas. This will hide all formulas, but it also means that no cells in the worksheet are editable.

Hide formulas in Excel by locking all cells:

  1. Select an empty space in the upper left corner of the worksheet, or press on Windows Ctrl A (or Cmd A on Mac) selects all cells in the worksheet.
    如何在 Excel 中隐藏公式
  2. Right-click anywhere in the worksheet and click Format Cells, or press Ctrl 1 on Windows or on Mac Press Cmd 1.
    如何在 Excel 中隐藏公式
  3. Click on the " Protection"
    tab. 如何在 Excel 中隐藏公式
  4. Make sure Locked and Hidden are selected.
    如何在 Excel 中隐藏公式
  5. Click OK
  6. .
  7. Follow the instructions above on how to protect a worksheet in Excel.

Your worksheet is now locked. No one can edit any cells, and clicking a cell containing a formula does not display the formula anywhere on the worksheet.

How to hide formulas in Excel by locking formula cells

The above method is a quick and easy way to hide all formulas, but it will also lock all other cells in the worksheet . If you want other cells to be editable, you can lock and hide only those cells that contain formulas.

Hide formulas in Excel by locking formula cells:

###
  1. Press Ctrl A on Windows or Cmd A on Mac Or click the empty space in the upper left corner of the worksheet to select all cells.
    如何在 Excel 中隐藏公式
  2. Press Ctrl 1 on Windows or Cmd 1 on Mac, or right-click anywhere in the worksheet and Click Format Cells.
    如何在 Excel 中隐藏公式
  3. Select the Protect tab.
    如何在 Excel 中隐藏公式
  4. Make sure Locked and Hidden are unchecked.
  5. You will see a green triangle appear on any cell that contains a formula. This is a warning that these cells contain unprotected formulas.
    如何在 Excel 中隐藏公式
  6. Repeat step 1 to select all cells.
  7. Select Home on the ribbon bar.
    如何在 Excel 中隐藏公式
  8. Click to find and select .
    如何在 Excel 中隐藏公式
  9. Select Formula.
    如何在 Excel 中隐藏公式
  10. Every cell containing a formula will now be selected.
  11. Right-click one of the cells and click Set Cell Format or use the shortcut key Ctrl 1 on Windows or # on Mac ## Cmd 1.
    如何在 Excel 中隐藏公式
  12. Click
  13. Protect.
    如何在 Excel 中隐藏公式
  14. Check
  15. Lock and Hide and click OK.
    如何在 Excel 中隐藏公式
  16. #Follow the instructions above on how to protect a worksheet in Excel.
Now that you have locked the worksheet, all cells are editable except those containing formulas. These cells are locked and have their formulas hidden.

If you want to hide formulas but want those formula cells to be editable, follow the steps above but leave

Locked unchecked.

Create Excel Spreadsheets for Sharing

Knowing how to hide formulas in Excel allows you to safely share your spreadsheet because you know the formulas are invisible and no one can modify or delete them they.

Another effective way to stop people from deleting your formulas is to delete them entirely. If the number has already been calculated, you can replace the formula with the result in Excel since the formula itself is no longer needed.

Data visualization is also useful when sharing your spreadsheet with others. Learning how to make a pie chart or histogram in Excel can help you present your data more clearly.

The above is the detailed content of How to hide formulas in Excel?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete