How to Lock Specific Cells in Excel: A Step-by-Step Guide

Locking specific cells in Excel might seem like a daunting task, but it’s actually quite simple. By following a few steps, you can protect your data and ensure that only the cells you want to be edited can be changed. This is especially useful when sharing spreadsheets with others or when you want to prevent accidental changes to important cells.

Step-by-Step Tutorial: How to Lock Specific Cells in Excel

Before diving into the steps, it’s important to understand that Excel allows you to lock cells so that they can’t be edited without a password. This can be useful if you have formulas or data that you don’t want to be tampered with. Let’s get started!

Step 1: Select the Cells You Want to Lock

Click and drag to highlight the cells you want to lock.

When you select the cells, make sure that you only highlight the ones you want to be locked. If you accidentally select more cells than intended, simply click on the extra cells while holding the Ctrl key to deselect them.

Step 2: Right-Click and Choose ‘Format Cells’

Right-click on the selected cells and choose ‘Format Cells’ from the context menu.

After right-clicking, a menu will pop up. Look for ‘Format Cells’—it’s usually towards the bottom of the menu. Click on it to open up the Format Cells dialog box.

Step 3: Go to the ‘Protection’ Tab

In the Format Cells dialog box, click on the ‘Protection’ tab.

Once you’re in the Protection tab, you’ll see a couple of checkbox options. By default, all cells in Excel are locked, but this doesn’t take effect until you protect the worksheet.

Step 4: Check the ‘Locked’ Option

Make sure the ‘Locked’ checkbox is selected, then click ‘OK’.

If the Locked option is not checked, click on the checkbox to enable it. This will lock the cells you’ve selected once you protect the worksheet.

Step 5: Protect the Worksheet

Go to the ‘Review’ tab, click on ‘Protect Sheet’, and set a password.

In the Review tab, you’ll find the ‘Protect Sheet’ button. When you click on it, a new window will prompt you to set a password. Choose a password that’s easy for you to remember but hard for others to guess.

After you’ve completed these steps, the cells you’ve selected will be locked and cannot be edited without the password you’ve set. This adds an extra layer of security to your spreadsheet and helps prevent unwanted changes.

Tips: Locking Specific Cells in Excel

  • Use a strong password when protecting your worksheet to ensure maximum security for your locked cells.
  • If you need to lock a large number of cells, use the ‘Select All’ shortcut (Ctrl + A) to highlight the entire sheet, then hold down the Ctrl key and click on the cells you want to remain editable to deselect them before locking.
  • Remember that locking cells is not effective until you protect the worksheet, so don’t forget that final step.
  • To lock cells that contain formulas, you can use the ‘Go To Special’ feature under the ‘Find & Select’ menu to quickly select all formula cells.
  • If you need to make changes to locked cells in the future, you can easily unprotect the sheet by going to the ‘Review’ tab and clicking ‘Unprotect Sheet’—just make sure you remember the password!

Frequently Asked Questions

How do I unlock cells in Excel?

Go to the ‘Review’ tab, click ‘Unprotect Sheet’, and enter the password to unlock the cells.

Can I lock only certain cells and leave others editable?

Yes, you can lock specific cells and leave others editable by selecting only the cells you want to lock and then protecting the worksheet.

What happens if I forget the password to unprotect the sheet?

Unfortunately, if you forget the password, there’s no way to recover it. Make sure to remember the password or keep it stored in a secure location.

Can I still apply formatting to locked cells?

Once cells are locked and the sheet is protected, you cannot apply formatting changes without first unlocking the cells.

Is it possible to lock cells so that they can’t be deleted?

Yes, once you’ve locked cells and protected the worksheet, the cells cannot be deleted without unprotecting the sheet first.


  1. Select the cells you want to lock.
  2. Right-click and choose ‘Format Cells’.
  3. Go to the ‘Protection’ tab.
  4. Check the ‘Locked’ option.
  5. Protect the worksheet with a password.


Locking specific cells in Excel is a handy skill to have, especially when working with large or shared spreadsheets. It allows you to safeguard critical data, maintain the integrity of your formulas, and gives you peace of mind knowing that your important information is secure. With the steps outlined in this article, you’re well-equipped to lock any cell or range of cells in your Excel spreadsheets. Remember, the key to effectively using this feature is to ensure that you’ve secured your worksheet with a strong password that only you know. As always, practice makes perfect, so don’t hesitate to experiment with locking and unlocking cells to become comfortable with the process. And, if you ever find yourself stuck, refer back to this guide on how to lock specific cells in Excel for a quick refresher.

Join Our Free Newsletter

Featured guides and deals

You may opt out at any time. Read our Privacy Policy