×

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

Shortcut Keys in Excel

Shortcut Keys in Excel Shortcut keys in Excel are used to simplify the work and save time by pressing a few keys.  These keys are used for navigating and working with Excel spreadsheets quickly and easily. Basic Selection:...

9 minutes read.

Excel Themes

Microsoft Excel contains various features to enhance the appearance of the worksheet like text color, font size and general outlook of the objects. The users are provided with multiple theme...

3 minutes read.

Excel TIME() Function

Excel TIME() Function The TIME() function in excel returns the serial number of a particular time. Syntax TIME(HOUR, MINUTE, SECOND) Parameter HOUR (required)- This parameter represents the hour for your time. MINUTE (required)- This parameter represents the...

1 minute 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 Tutorial for Beginners

What is Excel? Microsoft Excel is a software program included in the Microsoft Office suite. It is a commercial spreadsheet application developed by Microsoft for Windows, macOS, Android, and iOS. It...

5 minutes read.

Excel SECOND() Function

Excel SECOND() Function The SECOND() function in excel converts a serial number to SECOND (0 - 59). Syntax SECOND (SERIAL_NUMBER) Parameter SERIAL_NUMBER (required)- This parameter represents the date or time from which you want to extract...

1 minute read.

Excel WORKDAY() Function

Excel WORKDAY() Function The WORKDAY() function in excel returns the serial number of the date before or after a specified number of workdays. Syntax WORKDAY (START_DAY, DAYS, [HOLIDAYS]) Parameter START_DAY (required)- This parameter represents the...

1 minute 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.

How to Highlight Duplicates Words in the Microsoft Excel?

We can easily highlight the values that are duplicated in the selected dataset, whether it could be a column or a row from the particular table, with the help of...

6 minutes read.

Excel MINUTE() Function

Excel MINUTE() Function The MINUTE() function in excel converts a serial number to minute (0 - 59). Syntax MINUTE (SERIAL_NUMBER) Parameter SERIAL_NUMBER (required)- This parameter represents the date or time from which you want to extract...

1 minute read.

Trendline in Excel

A Trendline is a line imposed on a graph to predict the direction of the data. It connects the series of data together to showcase the data best fit. The...

3 minutes read.

Excel Function and Formulas

Excel Today() Function The today() function returns the serial number of today’s date as per system number of today’s date as per system’s regional settings. Syntax Today() Parameter NA Category Date & Time Returns This function returns today's date...

4 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.

Sum Every Nth Row in Microsoft Excel

The main and the critical use of the SUM Function is used to add all the amounts of the numerical data and thus efficiently produce the sum of all at...

3 minutes read.

Excel WEEKNUM() Function

The WEEKNUM() function in excel returns the week number from 1 to 54 of a specific date in a year. The WEEKNUM function starts counting with the week that contains January 1...

1 minute 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.

Excel File using Password

How to Protect an Excel File using Password? Nowadays Microsoft Excel is widely used by large organizations to small organizations for their personal and professional usage. They share files to various...

2 minutes read.

Excel WORKDAY.INTL() Function

Excel WORKDAY.INTL() Function The WORKDAY.INTL() function in excel returns a date before or after a specified number of workdays with custom weekend parameter. Syntax WORKDAY.INTL (START_DAY, DAYS,[WEEKEND],[HOLIDAYS]) Parameter START_DAY (required)- This parameter represents the initial date...

2 minutes read.

Dependent Combo box in Excel VBA

Adding the particular dependent box in the created User form with the help of the Microsoft Excel VBA is considered essential and crucial in Microsoft Excel. Here, in this tutorial, we...

7 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.