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. April 15, 2023
    Reply

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

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn how to Find Blank cells in excel so that you can remove or delete the blank cells form...
In this article, you’ll learn what is a Gauge Chart in Microsoft Excel. Also, you will learn how to add...
Microsoft Excel provides a shortcut for the users to move columns in excel using two different ways – using Shift...