Microsoft Excel · Module 1 · Lesson 141 min read

Protecting sheets and locking cells

If you're sharing a spreadsheet with others (like a form or template), you often want to let people fill in certain cells while preventing them from accidentally breaking your formulas.

The key idea: locking is off by default for editing purposes

By default, ALL cells in Excel are marked "locked" — but this setting only takes effect once you turn on sheet protection. So the real workflow is:

  1. First, unlock the specific cells you WANT people to edit
  2. Then turn on protection for the whole sheet

Step-by-step

  1. Select the cells that should remain editable (e.g. input fields in a form)
  2. Right-click -> Format Cells -> Protection tab -> uncheck Locked
  3. Go to Review -> Protect Sheet
  4. Optionally set a password, choose what people are still allowed to do (like selecting cells or sorting), and click OK

Now, every cell EXCEPT the ones you unlocked in step 2 becomes uneditable.

What happens if someone tries to edit a locked cell

Excel shows a warning: "The cell you are trying to change is protected." This prevents accidental overwrites of formulas or headers.

Protecting the whole workbook structure

Review -> Protect Workbook goes a step further — it prevents people from adding, deleting, renaming, or reordering entire worksheet tabs.

A simple template example

For an expense-tracking template you're sharing with a team:

  • Lock the header row and any formula/total cells
  • Leave the data-entry cells (Date, Description, Amount) unlocked
  • Protect the sheet so nobody accidentally deletes your SUM formula