Excel Protect Sheet (Table of Contents)
Introduction to Protect Sheet in Excel
Protect Sheet in Excel is used to protect and safeguard the data in any workbook and worksheet with the help of setting up a password in it. There are 2 ways to protect the sheet. One is by selecting the Protect Sheet option from the right-click menu list on Sheet’s name, and the other is choosing the Protect Sheet option, which is in the Review menu option under the Changes section. Once we click on it, we will get a protect sheet box that has all the possible options to lock the sheet. We can lock any row, column, cells by sorting. Choose an option as we choose and then enter the password to protect the sheet. And there is no limit to password characters.
How to Protect (Lock) Cells in Excel?
It is very simple and easy to protect cells in Excel. Let’s understand the working of protecting cells in excel with some examples.
Example #1
Suppose we have an Excel with three different values. Our objective is to calculate their average.
As we can see from the screenshot above, we have three values in cell A2, B2, and C2. We calculate the average of these numbers in cell D2. Now we wish to lock the cell D2, which contains the formula, so that it doesn’t get accidentally altered when the excel is passed from one person to another.
Now, since all cells are locked in Excel by default, let us first unlock them. To do this, we first need to select all the cells by pressing Ctrl+A or Command+A. Next, open the Format Cells dialog box by pressing Ctrl+1.
Now we will need to go to the “Protection” tab.
Now under the “Protection” tab, we will need to untick the “Locked” option and click OK. All the cells in the worksheet will then be unlocked.
Now, we will need to select the cell that contains the formula, i.e. cell D2. We will now press Ctrl+1. This will once again open the Format Cells dialog box. We will navigate to the Protection tab.
This will lock the cell formula. Now, we have to protect the formula. To do this, we will need to navigate to the “Review” tab and click on the “Protect Sheet” option.
This will open up the next dialog box, as shown below.
It is also possible to provide a password to protect the sheet. This will result in Excel asking for a password when a user tries to access this Excel sheet.
At this point, Excel will prompt to ask you to re-enter your password just to make sure that there are no mistakes with the password.
After this, the cell will be locked, and it will no longer allow any further modifications to be made. If we click on this cell and try to press any keys in order to modify the formula, we will get the following pop up message.
It is interesting to note that only this particular cell is protected, and no other cell will result in a similar pop up upon modification. A locked cell does not guarantee that the underlying formula will be protected from modifications. Therefore, it is vital to protect the formula after locking the cell. Thus, we will need to unlock all the cells first and then lock the formula cell and then protect the formula. This will prevent the formula cell from any accidental modifications, while all the other cells are open to modifications.
Example #2
Now, let us suppose that we have sales data for several products in different zones. Our objective is to calculate the total sales for each product separately and then identify the product with the highest sales. We need to lock the cell with the formula to calculate the highest sales and protect it from modifications. However, the cells with the summation formula and the sales data itself should be modifiable.
We will first calculate the total sales for each product.
So, to do this, we applied the SUM () function, passed the array for the first row, and then dragged the formula to the remaining rows since the column range for summation for all rows is the same.
Next, we will find the max sales. Adjacent to this table, we will select a cell and key in the index-match formula to find the product with the max sales.
Now, we need to lock and protect the cell with the formula for Max Sales. Since all cells are locked in Excel by default, let us first unlock them. To do this, we first need to select all the cells by pressing Ctrl+A or Command+A. Next, open the Format Cells dialog box by pressing Ctrl+1.
Now we will need to go to the “Protection” tab.
Now under the “Protection” tab, we will need to untick the “Locked” option and click OK. All the cells in the worksheet will then be unlocked.
Now, we will need to select the cell that contains the formula, i.e. cell D2. We will now press Ctrl+1. This will once again open the Format Cells dialog box. We will navigate to the Protection tab.
This will lock the cell formula. Now, we have to protect the formula. To do this, we will need to navigate to the “Review” tab and click on the “Protect Sheet” option.
This will open up the next dialog box, as shown below.
It is also possible to provide a password to protect the sheet. This will result in Excel asking for a password when a user tries to access this Excel sheet.
At this point, Excel will prompt to ask you to re-enter your password just to make sure that there are no mistakes with the password.
After this, the cell will be locked, and it will no longer allow any further modifications. If we click on this cell and try to press any keys in order to modify the formula, we will get the following pop up message.
Alternatively, after unlocking all cells in the worksheet, we can go to the “Home” tab and then navigate to the “Editing” section and select “Find & Select”, and from the dropdown, we can select “Go To Special”.
- Excel would then open up the “Go To Special” dialog box, and we would then need to select “Formula” and click on OK. This would then select all the cells which have the formula in their contents.
- We can now repeat the process of locking the formula cells and then protecting the formula.
Things to Remember About Protect Sheet in Excel
- Simply locking the cells in Excel does not guarantee protection from accidental modifications.
- We will need to both locks the cells and protect the formulae to completely make them tamper-proof.
- By default, all cells in the workbook are locked.
- Like the first point, simply protecting the formula cells without locking them first would not guarantee accidental modifications.
Recommended Articles
This has been a guide to Protect Sheet in Excel. Here we discuss how to Protect the Sheet in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles-
16 Online Courses | 23 Hands-on Projects | 140+ Hours | Verifiable Certificate of Completion
4.8
View Course
Related Courses