Protect Your Data by Locking and/or Hiding Formulas in Microsoft Excel

by Avantix Learning Team | Updated August 14, 2021

Applies to: Microsoft® Excel® 2010, 2013, 2016, 2019 and 365 (Windows)

There are many situations in which you may want to hide formulas in worksheets. Perhaps you don't want a client to see the markup added to the final total or a commission calculation or you simply don't want others to see your formulas. This strategy can be used in earlier versions of Excel as well.

Users have the ability to view formulas in the Formula Bar in Excel when they click on a cell or to use the Show Formulas command on the Formulas tab in the Ribbon (you can also press Ctrl + ~):

Show Formulas button on the Ribbon in Excel.

You can paste values over formulas but you will then lose the formulas. A great option is to hide formulas using a two-step process – use the Format Cells dialog to hide formulas in cells and then protect the sheet.

Recommended article: Hiding Notes in Excel (Inserting, Editing, Showing, Hiding and Deleting Comments)

Do you want to learn more about Excel? Check out our virtual classroom or in-person classroom Excel courses >

Selecting the hidden and locked options

Choosing the Hidden option for selected cells is the first step in this strategy:

  1. Select the cells with the formulas you want to hide.
  2. Right-click the selected cell(s) and choose Format Cells or press Ctrl + 1. The Format Cells dialog appears.
  3. Click the Protection tab.
  4. Check Hidden. If you want to protect the cell(s) as well, ensure Locked is checked.
  5. Click OK. Nothing will appear to occur until you protect the sheet.

Format Cells dialog box with Hidden checkbox.

Protecting the sheet

The second step in this strategy is to protect the sheet using the Review tab in the Ribbon:

  1. Display the sheet with the formulas that have the Hidden option checked through Format Cells.
  2. Click the Review tab in the Ribbon.
  3. In the Changes group, click Protect Sheet. A dialog box appears.
  4. Check or uncheck the desired options (you would usually leave the first two checked).
  5. Enter a password (you will need to set a password or anyone will be able to unprotect the sheet). Passwords are case sensitive and you should keep a copy of your passwords somewhere else.
  6. Enter the password again.
  7. Click OK. All formulas you have marked as Hidden will no longer appear in the Formula Bar.

Protect Sheet dialog box.

Unprotecting the sheet

To unhide formulas and unprotect the sheet:

  1. Display the desired sheet.
  2. Click Unprotect Sheet on the Review tab in the Ribbon.
  3. Enter the appropriate password.
  4. Click OK.

Subscribe to get more articles like this one

Did you find this article helpful? If you would like to receive new articles, join our email list.

More resources

10 Great Excel Navigation Shortcuts

How to Convert Pounds to Kilograms in Excel (lb to kg)

3 Excel Strikethrough Shortcuts to Cross Out Text or Values in Cells

How to Highlight Errors, Blanks and Duplicates in Excel Worksheets

How to Replace Blank Cells with a Value from the Cell Above in Excel

Related courses

Microsoft Excel: Intermediate / Advanced

Microsoft Excel: Data Analysis with Functions, Dashboards and What-If Analysis Tools

Microsoft Excel: Introduction to Power Query to Get and Transform Data

Microsoft Excel: New and Essential Features and Functions in Excel 365

Microsoft Excel: Introduction to Visual Basic for Applications (VBA)

VIEW MORE COURSES >

Our instructor-led courses are delivered in virtual classroom format or at our downtown Toronto location at 18 King Street East, Suite 1400, Toronto, Ontario, Canada (some in-person classroom courses may also be delivered at an alternate downtown Toronto location). Contact us at info@avantixlearning.ca if you'd like to arrange custom instructor-led virtual classroom or onsite training on a date that's convenient for you.

Copyright 2023 Avantix® Learning

You may also like

How to Combine First and Last Name in Excel (5 Ways)

How to Combine First and Last Name in Excel (5 Ways)

You can combine first and last name in Excel in several ways – using the CONCATENATE operator, the CONCATENATE function, the CONCAT function, the TEXTJOIN function or Flash Fill. These functions are often used to combine text in cells but you can also combine text with spaces, commas, dashes or another character. It's common to combine first and last names that appear in two columns into one new column. Some functions are only available in newer versions of Excel but the CONCATENATE operator and function are available in all versions.

How to Insert Multiple Columns in Excel (4 Fast Ways with Shortcuts)

How to Insert Multiple Columns in Excel (4 Fast Ways with Shortcuts)

You can quickly insert multiple columns in Excel using a drop-down menu, keyboard shortcuts or the Home tab in the Ribbon. The key to inserting multiple columns at once, rather than one by one, is to select the number of columns you want to insert first and then insert columns. Excel will insert the same number of columns you selected.

Excel XLOOKUP Function (Overview, Syntax + Formula Examples)

Excel XLOOKUP Function (Overview, Syntax + Formula Examples)

The XLOOKUP function is a replacement for Excel's traditional VLOOKUP function (as well as HLOOKUP and INDEX / MATCH functions). It has a new set of arguments and is available in Excel 2021 and 365. It allows you to look up a value from an array in a range or table and return one or more results. One of the primary benefits of XLOOKUP is that it can look up from columns to the left in a data set and return a range.

Microsoft, the Microsoft logo, Microsoft Office and related Microsoft applications and logos are registered trademarks of Microsoft Corporation in Canada, US and other countries. All other trademarks are the property of the registered owners.

Avantix Learning |18 King Street East, Suite 1400, Toronto, Ontario, Canada M5C 1C4 | Contact us at info@avantixlearning.ca

Summary
How to Hide Excel Formulas from Other Users
Article Name
How to Hide Excel Formulas from Other Users
Description
It's not difficult to hide formulas in Excel worksheets. Perhaps you don’t want a client to see the markup added to the final total or a commission calculation or you simply don't want others to see your formulas. Simply select the cells with the formulas you want to hide ...
Author
Publisher Name
Avantix Learning

Pin It on Pinterest

Share This