Pinterest Pixel

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

Bryan
When multiple people work on the same worksheet, someone can accidentally edit an important formula or value.
This can easily be prevented by locking specific cells while leaving the rest of the worksheet editable.

In this article, you will learn how to lock cells in Excel.

When multiple people work on the same worksheet, someone can accidentally edit an important formula or value. This can easily be prevented by locking specific cells while leaving the rest of the worksheet editable. In this article, you will learn how to lock cells in Excel.

Key Takeaways:

  • Lock important cells to prevent accidental edits.
  • Unlock input cells before protecting the worksheet.
  • Protect formulas without hiding them.
  • Use passwords for additional worksheet security.
  • Unprotect the sheet anytime to make changes.

 

Download excel workbookHow-to-Lock-Cells.xlsx

 

Understanding Cell Protection in Excel

Every cell in Excel is marked as Locked by default. However, this setting does nothing until you protect the worksheet.

Once worksheet protection is enabled:

  • Locked cells cannot be edited.
  • Unlocked cells remain editable.
  • Formulas and important data stay protected.
  • Users can still interact with allowed cells.

Think of it like locking the doors of a house. The locks already exist, but they only work after you lock the door.

 

Step-by-Step Guide to Lock Cells in Excel

STEP 1: Select all of the cells by clicking the upper left corner:

How to Lock Cells in Excel

STEP 2: Right-click any cell and select Format Cells:

How to Lock Cells in Excel

STEP 3: Ensure Locked is unticked.  This will unlock our entire sheet.  Click OK.

How to Lock Cells in Excel

STEP 4: Right-click on our target cell and select Format Cells:

How to Lock Cells in Excel

STEP 5: Ensure Locked is ticked this time. This will lock our target cell. Click OK.

How to Lock Cells in Excel

STEP 6: Now it is time to protect our Excel sheet and see the locking in action!

Right-click on the Worksheet Name and select Protect Sheet (or go to the ribbon menu and select Review > Protect Sheet)

How to Lock Cells in Excel

STEP 7: Type in a password and Click OK.  In our example, I typed in excel as the password.

How to Lock Cells in Excel

STEP 8: Retype the password and Click OK.  

How to Lock Cells in Excel

STEP 9: If you try editing your target cell now, Excel will not allow you to…And you are able to edit the other cells just fine!

How to Lock Cells in Excel

 

Tips and Advanced Techniques I Use

  • Locking cells in multiple sheets: If I’m working with several similar sheets, like monthly tabs in a budget, I repeat the process for each worksheet individually. There’s currently no way to lock cells across all sheets at once in Excel’s standard interface.
  • Highlighting locked cells: For clarity, I sometimes use cell shading or borders to visually indicate which cells are locked. This is especially helpful when sharing templates with others.
  • Using “Allow Edit Ranges” for more control: In the Review tab, I found the “Allow Users to Edit Ranges” feature. It lets me specify certain ranges that specific users can edit, even if those cells are generally locked. This is handy in collaborative environments where different team members are responsible for different sections.

How to Lock Cells in Excel

  • Locking only formulas: Occasionally, I use Excel’s “Go To Special” feature (Home > Find & Select > Go To Special > Formulas) to quickly select all cells with formulas, then lock them, leaving the rest of the sheet editable.

How to Lock Cells in Excel

  • Protecting workbook structure: If I want to prevent users from adding, deleting, or moving worksheets, I use the “Protect Workbook” feature under the Review tab.

 

Frequently Asked Questions

Q1: Why can I still edit a locked cell?

A locked cell can still be edited until you protect the worksheet. Go to Review > Protect Sheet to activate the lock.

Q2: Can I lock only certain cells?

Yes. Unlock the cells you want people to edit, then protect the worksheet. Only the locked cells will be protected.

Q3: Can others edit certain locked areas without the sheet password?

Yes. Use Allow Users to Edit Ranges to let specific users edit selected cells while the rest of the sheet stays protected.

Q4: What’s the difference between Protect Sheet and Protect Workbook?

Protect Sheet locks cells and worksheet features. Protect Workbook prevents changes to the workbook structure, such as adding or deleting sheets.

Q5: Can I lock cells on multiple sheets at once?

No. Excel doesn’t let you lock cells on multiple sheets in one step. You’ll need to repeat the process for each sheet or use a VBA macro.

If you like this Excel tip, please share it




Bryan

Bryan Hong is an IT Software Developer for more than 10 years and has the following certifications: Microsoft Certified Professional Developer (MCPD): Web Developer, Microsoft Certified Technology Specialist (MCTS): Windows Applications, Microsoft Certified Systems Engineer (MCSE) and Microsoft Certified Systems Administrator (MCSA).

He is also an Amazon #1 bestselling author of 4 Microsoft Excel books and a teacher of Microsoft Excel & Office at the MyExecelOnline Academy Online Course.

See also  How to Convert Excel to Word - Step by Step Guide

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...