HomeMicrosoft OfficeExcelHow to Lock Cells in Microsoft Excel ?

How to Lock Cells in Microsoft Excel ?

This post explains how to lock the cells in the worksheet in Microsoft Excel and how you can protect your cells from being edited.

How to Lock All Cells in Excel ?

  • Select all cells by drag and drop or press Ctrl+A.
  • Right-click and select Format Cells or press CTRL + 1.
Lock Cells in Microsoft Excel
  • Click on the Protection tab, by default the cells are locked.
Lock Cells in Microsoft Excel

But Locking cells has no effect until you protect the worksheet.

  • Click OK or Cancel.
  • Protect the worksheet by selecting the Protect Sheet option from the Review tab.
Lock Cells in Microsoft Excel

Now all cells are locked.

Lock Specific Cells in Excel

To lock a  specific range of cells in Excel,  you need to unlock all cells first.

  • Select all cells by drag and drop or press Ctrl+A.
  • Right-click, and then select Format Cells or press CTRL + 1.
  • Click on the Protection tab, uncheck the Locked check box and click OK.
Lock Cells in Microsoft Excel

Now you can lock specific cells you want.

  • For example, Select cell A1 to cell A7.
  • Right-click, and then select Format Cells or press CTRL + 1.
  • On the Protection tab, check the Locked check box and click OK.
Lock Cells in Microsoft Excel

But locking cells has no effect until you protect the worksheet.

  • Protect the worksheet by selecting the Protect Sheet option from the Review tab.
Lock Cells in Microsoft Excel

Now the selected cells are locked.

To unlock the cells select the unprotect sheet and uncheck the locked check box from format cells.

Lock Cells in Microsoft Excel

Lock Formula Cells in Excel

To lock all cells containing formulas, you need to unlock all cells.

  • Select all cells by drag and drop or press Ctrl+A.
  • Right-click, and then click Format Cells or press CTRL + 1.
  • Click on the Protection tab, uncheck the Locked check box and click OK.
Lock Cells in Microsoft Excel
  • Click Find & Select in the Editing group from the Home tab.
  • Click Go To Special.
Lock Cells in Microsoft Excel
  • Select Formulas and then click OK.
Lock Cells in Microsoft Excel

Now the cells with formulas are selected. 

  • Right-click and select format cells.
  • Click on the Protection tab, check the Locked check box, and click OK.
Lock Cells in Microsoft Excel

But locking cells has no effect until you protect the worksheet.

  • Protect the worksheet by selecting the Protect Sheet option from the Review tab.
Lock Cells in Microsoft Excel

Now the selected cells are locked.

To unlock the cells select the unprotect sheet and uncheck the locked check box from format cells.

Lock Cells in Microsoft Excel

    1 Comment

  1. User Avatar
    April 15, 2023
    Reply

    Well, this information was very useful, and thanks for sharing.

Leave a Reply

You May Also Like

In this article, you will learn about the SKEW.P function, the formula syntax and usage of the function in Microsoft...
In this article, you will learn about the SKEW function, the formula syntax and usage of the function in Microsoft...
In this article, you will learn about the RANK.EQ function, the formula syntax and usage of the function in Microsoft...
  • Excel
  • November 23, 2021