Skip to main content

How to lock and protect formulas in Excel?

Author: Xiaoyang Last Modified: 2024-08-21

When you create a worksheet, sometimes you need to use some formulas, and you don’t want other users to change, edit or delete the formulas. The easiest and most common way of preventing people from playing with your formulas is to lock and protect cells which contain formulas in your worksheet. Please go to lock and protect the formulas as follows:

Lock and protect formulas with Format Cells and Protect Sheet functions

Lock and protect formulas with Worksheet Design good idea3

arrow blue right bubble Lock and protect formulas with Format Cells and Protect Sheet functions

By default, all cells on a worksheet are locked, so you must unlock all of the cells first.

1. Select the whole worksheet with Ctrl + A, and right click, choose Format Cells from the context menu.

2. And a Format Cells dialog box will pop out. Click Protection, and unchecked the Locked option. Click OK. The whole worksheet has been unlocked.

unchecked the Locked option in the Format Cells dialog

3. Then click Home > Find & Select > Go To Special, and a Go To Special dialog box will appear. Check Formulas from Select option, and then click OK. See screenshot:

Check Formulas in the Go To Special dialog

4. All of the cells which contain formulas will be selected.

5. Then go to lock the select cells. Right click on the selected cells, and choose Format Cells from the context menu, and a Format Cells dialog box will display. Click Protection, check the Locked checkbox. See screenshot:
check the Locked checkbox in the Format Cells dialog

6. And then click Review > Protect Sheet, and a Protect Sheet dialog box will pop out, you can enter the password in the Passwordto unprotect sheet box. See screenshot:

denter the password in the Protect Sheet dialog

7. Then click OK. And another Confirm Password dialog box will appear. Reenter your password. And click OK.

Reenter the password

And then all cells which contain formulas have been locked and protected. In this case, you cannot modify the formulas, but you can edit other cells.


arrow blue right bubble Lock and protect formulas with Worksheet Design

If you have installed Kutools for Excel, you can lock and protect formulas quickly by using Worksheet Design utility.
Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Enhanced with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

After free installing Kutools for Excel, please do as below:

1. Click Kutools Plus > Worksheet Design to enable the Design group. See screenshot:
click Worksheet Design to open the Design tab

2. Then click Highlight Formulas to highlight all formula cells. See screenshot:
click Highlight Formulas to highlight all formula cells

3.Select all the highlighted cells and click Lock Cells to lock the formulas. And there is a dialog pops out to remind you that the fomulas cannot lock until protect the sheet. See screenshots:
Select all the highlighted cells and click Lock Cells to lock the formulas

4. Now click Protect Sheet to type the password to protect the sheet. See screenshots:
click Protect Sheet to type the password to protect the sheet

Note

1. Now the formulas are locked and protected, and you can click Close Design to disable the Design tab.

2. If you want to unprotect the sheet, you just need to click Worksheet Design > Unprotect Sheet.
click Unprotect Sheet feature to cancel the protect

In Worksheet Design group, you can highlight unlock cell, name range and so on.

arrow blue right bubble Lock and Protect Formulas

 

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!