How to lock and protect formulas in Excel?

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:

Kutools for Excel: add 120 new features in Excel. Save one hour every day.
Classic Menu for Office: brings back classic menus to Office 2010 and 2013 (includes Office 365).
Office Tab: brings tabbed interface to Office as the use of web browser Chrome, Firefox and Internet Explorer.

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

Hot
Amazing! Using Tabs in Excel like Firefox, Chrome, Internet Explore 10!

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.

doc-protect-formulas1

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:

doc-protect-formulas2

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:

doc-protect-formulas3

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:

doc-protect-formulas4

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

doc-protect-formulas5

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.


Kutools for Excel

More than 120 Advanced Functions for Excel 2013, 2010, 2007 and Office 365.

screen shot

btn read more     btn download     btn purchase

Comments  

+14#Tyler Stein2013-10-31 16:27
Thank you, this was helpful!
Reply | Reply with quote | Quote
+2#George Coyle2013-11-21 17:53
Excel protection for the PC
Reply | Reply with quote | Quote
+2#Karl2014-01-16 21:12
:-) Great that really helps. My errant pen mouse would sometimes scrape the cell box and the formula would pop up, and not knowing, sometimes I had changed it. Caused many headaches while doing banking in the totals column. thanks again.
Reply | Reply with quote | Quote
+3#RIJESH2014-01-20 07:43
:roll: NICE EXPLANATION GOOD ONE....
Reply | Reply with quote | Quote
+2#JOSHY BOY2014-01-27 16:20
thank you this really helped :lol:
Reply | Reply with quote | Quote
0#JOSHY BOY2014-01-27 16:21
thanks alot it really helped
Reply | Reply with quote | Quote
+1#vinay41252014-01-28 16:05
Hi, please help me out, i have 3 columns (Ticket Number, Site ID, Time) i need to copy Site ID and Time according to the Ticket Number from 1st Excel sheet to 2nd excel sheet

For Example : I Have Ticket Number 425665 with Three Site ID's UW_GJ_2904 , UW_GJ_1995 , UW_GJ_0960 , So i need to copy all three site id's from 1st Excel sheet to 2nd excel sheet .... But as per vlookup only first site ID is Reflecting UW_GJ_2904 is Reflecting in all three places, which it should not(in some cases for single ticket Ex: 425771 : only one site UW_GJ_0514 will be there, it was reflecting properly, The problem is for each ticket which has more than one site ID is not reflecting properly)

First Excel Sheet :
Ticket Site id time
425665 UW_GJ_2904 1/21/14 4:51 PM
425665 UW_GJ_1995 1/21/14 4:51 PM
425665 UW_GJ_0960 1/21/14 4:51 PM

Second Excel Sheet:
ticket site id time
425665 UW_GJ_2904 1/21/14 4:51 PM
425665 UW_GJ_2904 1/21/14 4:51 PM
425665 UW_GJ_2904 1/21/14 4:51 PM

if it is only one id its Reflecting properly
First excel sheet:

425771 UW_GJ_0514 1/21/14 7:44 PM

Second Excel Sheet:

425771 UW_GJ_0514 1/21/14 7:44 PM
Reply | Reply with quote | Quote
+1#raja2014-02-04 19:57
I want to lock the formula cell but it has use to drop and copy
Reply | Reply with quote | Quote
+3#Umer2014-03-13 11:56
only one cell like to lock which kept the formula
Reply | Reply with quote | Quote
0#sanjaya2014-03-22 12:53
;-) thank you very much... :-)
Reply | Reply with quote | Quote
0#DEEPAK KHANAL2014-04-03 05:28
After long period i found my problem i.e. locking/protection single sell on excel. Thank you very much www.extendoffice.com
Reply | Reply with quote | Quote
0#GG2014-04-09 00:43
The BEST explanation I've found to do
This. Thank you!!
Reply | Reply with quote | Quote
0#Omen2014-04-29 06:02
it is very usefully thanks
Reply | Reply with quote | Quote
0#Marty2014-04-29 19:25
Protect Formulas in Excel Spreadsheet
Reply | Reply with quote | Quote
+1#Muhammad Tahir2014-05-30 11:24
It is wonderful guide, I have ever seen.
Thanks so much for saving my hardwork.
Reply | Reply with quote | Quote
0#Peter Fisher2014-06-04 10:24
Thanks very much. This was most useful.
Reply | Reply with quote | Quote
0#Ali Khan2014-06-16 06:40
Thank you! it was helpful.

Ali
Reply | Reply with quote | Quote
0#Nato2014-07-09 13:47
Dear author, thank you very much for such a useful guide.
Please, advise if it is possible to lock the formula cells in excel so that it is possible to delete other bulk data from the file without deleting the formulas? With the method above, it is not possible to select whole data with ctrl+A and delete.

Thank you!
Reply | Reply with quote | Quote

Add comment


Security code
Refresh