Lock Formulas

This post will show you how to quickly lock a selected formula in your current worksheet. How do I lock a formula or all formulas in a worksheet to protect them from being deleted or modified by other uses in Excel. If you do not want other users to modify or delete the formulas, you can use the protect feature to lock the cells that contain formulas in your worksheet.

Lock formulas in Excel


The below steps will demonstrate that how you can only lock a selected formula on a given worksheet.

#1 select the entire worksheet by pressing Ctrl +A, and right click on it, then select Format cells from the pop-up menu list.

lock formulas1

#2 switch to Protection tab in the Formula cells dialog box. And uncheck the Locked option, and click OK button. Then all of cells in your worksheet are unlocked (by default, all cells are locked, so if you want to lock all cells on the worksheet, then you can skip the first two steps)

lock formulas2

#3 Go to the HOME tab, click Find &Select command under Editing group, and select Go To Special from the drop down menu list.

lock formulas3

#4 check Formulas radio button from the Select section in the Go to Special dialog box.

lock formulas4

#5 then all cells with formulas on the worksheet are selected.

lock formulas5

#6 right click on the selected cells, and choose Format Cells, switch to Protection tab, then check the Locked checkbox.

lock formulas6

#7 go to the REVIEW tab, click Protect Sheet command under Changes group. The protect Sheet dialog box will appear.

lock formulas7

#8 type a password in Password to unprotect sheet text box. Click Ok, then reenter your password to confirm it. Click Ok. Then the cell with formulas are now locked and protected.when you try to edit that formula, you will get one warning message.

lock formulas8

lock formulas9

Related Posts

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Value is Greater Than A Certain Value
If Value is Greater Than A Certain Value 1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

VBA Macro For VLOOKUP From Another Sheet
vba macro for vlookup from another sheet1

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you how to use VBA code to vlookup data ...

If Cell is Blank
If Cell is Blank_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

If Cell Equals Certain Text String
If cell equals certain text_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if cell equals a certain text string like “Win”, you ...

If Cell Contains Either Text1 or Text2
If cell contains text1 or text2_1

IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to see if cell contains certain substring1 like “abc” or substring2 like “def”, and returns true ...

If Cell Contains Certain Text OR Equals Certain Text

IF cell equals certain text IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to test values to see if they equal certain text like ...

VLOOKUP From Another Sheet Not Working
vlookup from another sheet not working3

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you reasons why your VLOOKUP formula is not working ...

If Cell Begins with One of Three Supplied Characters
If Cell Begins with One of Three Supplied Characters

If you want to test values to see if they begin with some given specific characters like “x”, ”y”, or “z”, you can create a formula with COUNTIF and SUM functions to return results. EXAMPLE You can see “TRUE” or ...

Sidebar