×

How to lock cells in Excel?

How to lock cells in Excel?

The locked cells feature used to protect and secure your Excel sheet or workbook from the unauthorized access. If the cells are locked, it can’t be deleted, reformatted, and the data in that cell can’t be edited further. This feature makes sure that it doesn't unintentionally change the cells that are not supposed to be replaced. Though by default, in excel, all the locked cells but still they can be selected, reformed, and edited and but the user can easily change that in the protection options.

Locking All the cells

In Excel, all the cells are locked by default. But this locking will not effect until and unless the user protects the worksheet. The steps for locking and protecting the sheet are as follows:

  1. Select all cells or press the shortcut key CTRL+A.
How to lock cells in Excel?
  • Point the cursor over the selected portion and right click on the mouse. A dialog box will appear. Select the Format Cells option, or you can directly press the shortcut key CTRL + 1.
How to lock cells in Excel?
  • Select the Protection Column tab from the Format Cells dialog box and tick the locked checkbox option (although it’s been already selected by default). Click on the OK option.
How to lock cells in Excel?

Protect the Sheet

  •  To protect the worksheet, right-click on the sheet tab (present at the bottom of the sheet).
How to lock cells in Excel?
  • Click on the protect sheet option.
How to lock cells in Excel?
  • The Protect Sheet dialog box pops up. In the first place, enter your password. And then, choose the actions you want the user to perform in your Excel worksheet. If you don’t tick any action, by default, the user can only read the Excel file. Click on the OK option.
How to lock cells in Excel?
  • Excel will again ask you to reconfirm your password. Again, type your password and click on OK.
How to lock cells in Excel?
  • The excel worksheet is protected, and all the cells are now locked. The user can only read the file, and if the user tries to write or edit the data, a prompt will pop up defying the accessibility.
How to lock cells in Excel?

UnProtect the Sheet

  • All cells are locked and can’t be edited further. To unlock the Excel worksheet, right-click on the sheet tab and select the Unprotect Sheet option. Now you are open to read, write or edit the Excel sheet.
How to lock cells in Excel?

To lock some specific cells

There arise some situations where the user needs to protect and safeguard some specific cells. By default, all the cells are locked in Excel. So, firstly we need to unlock all the locked cells. Let’s see the steps to lock and protect specific cells:

  1. Select the specific cells that you want to lock. For instance, we have chosen only the cells ranging from cell A2 to cell A8.
How to lock cells in Excel?
  • Point the cursor over the selected portion and right click on the mouse. A dialog box will appear and then click on the Format Cells option, or you can directly press the shortcut key CTRL + 1.
How to lock cells in Excel?
  • Select the Protection Column tab from the Format Cells dialog box and untick the locked checkbox. Click on OK.
How to lock cells in Excel?
  • Now choose the cells to lock. Here we have chosen cell A2 to cell A8.
How to lock cells in Excel?
  • Right-click and select the format cells option. Under the protection tab, tick the locked cell’s checkbox. Click on ok. 
How to lock cells in Excel?
  • Again, locking the cells is not sufficient and will not effect until and unless the Excel sheet is protected.

Protect the Sheet

  • To protect the worksheet, right-click on the sheet tab (present at the bottom of the sheet).
How to lock cells in Excel?
  • Click on the protect sheet option.
How to lock cells in Excel?
  • The Protect Sheet dialog box pops up. In the first place, enter your password. And then, allocate the actions you want the user to perform in your Excel worksheet. If you don’t tick any action, by default, the user can only read the Excel file. Click on the OK option.
How to lock cells in Excel?
  1. Excel will again ask you to reconfirm your password. Again, type the password and click on OK.
How to lock cells in Excel?
  1. All the cells ranging from A2 to A8 are now locked. The user can only read the file, and if the user tries to write or edit the data, a prompt will pop up defying the accessibility. To edit the specific cells, you to unprotect the sheet.
How to lock cells in Excel?

Lock Formula Cells

Excel deals with numbers and formulas the most. In Excel business sheets, the calculation and analysis are done by using a range of formulas cells that are dependent on each other. The sheet is exchanged throughout and changing any formula cell mistakenly can turn over the shape and meaning of the sheet. Thus, resulting in data manipulation and false analysis. To avoid the unintentional changing of the cells one needs to lock all cells that contain formulas.

The steps for locking the formula cells are as follow:

  1. Select all cells or press the shortcut key CTRL+A.
How to lock cells in Excel?
  • Point the cursor over the selected portion and right click on the mouse. A dialog box will appear and then click on the Format Cells option, or you can even press the shortcut key CTRL + 1.
How to lock cells in Excel?
  • Now, select the Protection Column tab from the Format Cells dialog box and uncheck the locked cells checkbox. Click on OK.
How to lock cells in Excel?
  • From the Excel home Ribbon tab, select the find & select option.
How to lock cells in Excel?
  • From the dialog box, select the Go to Special option.
How to lock cells in Excel?
  • From the Go To Special dialog box click on formula radio box and click on OK.
How to lock cells in Excel?
  • Again, right-click and select the format cells option. Under the protection tab, tick the locked cell’s checkbox. Click on ok. 
How to lock cells in Excel?
  • Again, locking the cells will not effect until and unless the Excel sheet is protected.

Protect the Sheet

  • To protect the worksheet right-click on the sheet tab.
How to lock cells in Excel?
  1. Click on the protect sheet option.
How to lock cells in Excel?
  1. The Protect Sheet dialog box pops up. In the first place, enter your password. And then, choose the authority of the actions you want the user to perform in your Excel worksheet. If you don’t tick any action, by default, the user can only read the Excel file. Click on the OK option.
How to lock cells in Excel?
  1. Excel will again ask you to reconfirm your password. Again, type the password and click on OK.
How to lock cells in Excel?

All the formula cells are now locked. The user can only read the file, and if the user tries to write or edit the data, a prompt will pop up defying the accessibility. To edit the formula cells, you need to unprotect the sheet.


Related Topics

Conditional Formatting in Excel

Conditional Formatting What are the conditional formats? Conditional Formatting is a tool that allows the user to format cells or range of cells based on the selected condition or given criteria. The formatting will...

4 minutes read.

Excel Ribbon Toolbar

Excel Ribbon/Toolbar How does a toolbar look like? The top section of an excel file is called a Ribbon or a toolbar. It has various commands which can be useful for us in our daily work....

6 minutes read.

Excel EOMONTH() Function

Excel EOMONTH() Function The EOMONTH() function in excel returns the serial number of the last day of the month before or after a specified number of months. Syntax EOMONTH (Start_Date, Month) Parameter Start_Date(required)- This parameter...

1 minute read.

Solver in Excel

What is Solver? Microsoft Excel facilitates an add-in programming tool known as Solver that uses operational research techniques to find the optimal solutions for objective problems. This tool operates with a group of...

5 minutes read.

Cells and Ranges in Excel

Cells and Ranges Each cell is identified by its cell address, which is a combination of the column and row on which that cell is situated. A group of cells together are called ‘Range’. When...

5 minutes read.

Excel Unique Values

The Unique function in Excel filters the list of unique values from the given data like range or array. The data presented is either number, text, date, time etc. This...

3 minutes read.

Excel OR() Function

The OR() function in excel tests the multiple sets of conditions and returns TRUE if any of the arguments are TRUE and FALSE if all the arguments supplied do not meet the...

2 minutes read.

Insert Row in Excel

It was known that we have various multiple ways that are extremely helpful in inserting a particular row in the Microsoft Excel. And we have lots of shortcut options available...

6 minutes read.

How to apply Data Protection to the Worksheet?

What do we mean by Data Protection? Data Protection in excel involves in protecting your file/data from some other user and also prevents the following accidents – Accidentally deleting or changing the formulas in...

3 minutes read.

Excel MID() Function

The MID() function in excel is used to return a specific number of characters from a text string starting at the position you specify. One can change the start of the string, thus...

1 minute read.

What if Analysis Data Table in Excel

What is What-If Analysis? Suppose you have a cell A15 which is formula driven i.e. has a formula and the formula is based on values in different cells (A1, A2, A3, A4), what-if...

4 minutes read.

Go-To Special function in Excel

Go-to Special The Go-To Special function in Excel allows you to select all cells that meet certain criteria quickly. This command is used to identify specific cells – the ones which...

1 minute read.

Operators in Excel

In MS Excel, operators are used to defining the operation you want to perform on the used elements or between variables. There are four types of operators: Arithmetic operators, Comparison...

4 minutes read.

How to remove duplicate values from excel?

Remove duplicate values from excel Duplicate values occur when the same date or set of values is repeated in your Excel sheet. While working with Excel sheets many a time, the...

5 minutes read.

Excel HLOOKUP() Function

Excel HLOOKUP() Function The HLOOKUP() function in excel is used to search a value in the topmost row of a table and then return a corresponding value in the same column for the specified...

2 minutes read.

Gauge Chart in Excel

A Gauge Chart in Microsoft Excel is considered the meter type chart of a group dial chart, which is eventually similar to the speedometer that has the pointer towards the...

7 minutes read.

AutoFill in Excel

AutoFill in Excel Excel is known for its credibility to operate repeated and similar tasks automatically. For this purpose, it facilitates an inbuilt feature known as Autofill that recognizes the series of...

3 minutes read.

Text to columns in Excel

Microsoft Excel is widely used in startups to large companies. The data are entered in required rows and columns, and sometimes the data entered in one cell needs to enter...

4 minutes read.

Excel LEFT() Function

The LEFT () function in excel returns the leftmost characters from a text value. This function is used for data manipulation. Syntax LEFT(Text, [num_chars]) Parameter Text (required)- This parameter represents the string from which you want to...

1 minute read.

Purpose of Randomize in Excel

Excel spreadsheets are used on a large scale for business and personal usage. It is used to store data, perform multiple calculations, make assumptions based on charts and graphs etc....

7 minutes read.