Skip to content

Protect a sheet and leave the inputs open

Styles, protection and notes8 minPremium

Builds on Make headers and totals stand out.

A sales manager in Phoenix shares a quote calculator with twelve reps. The reps type a quantity and a discount, and formulas work out the price. Last month someone typed over a formula, and a customer got the wrong quote.

How it works

Protection comes in two parts. Every cell has a Locked setting, on the Protection tab of Format Cells, and it starts out switched on for every cell. Locked does nothing by itself. It takes effect when you protect the sheet with Review > Protect Sheet: from then on, locked cells can't be changed and unlocked cells can.

So the order is: unlock the cells people fill in, then protect the sheet.

  1. Step 1: Unlock the inputs, B2 and B3, on the Protection tab of Format Cells.
  2. Step 2: Protect the sheet. The price in B4 and the formulas in B6 and B7 stay locked.
Unlock the cells people fill in, then protect the sheet. From then on only B2 and B3 take typing, and the price and the formulas can't be changed.

The Protect Sheet dialog lists what people may still do. Select locked cells and Select unlocked cells are ticked to begin with; tick more, such as Format columns, Sort or Use AutoFilter, when people need them. On a protected sheet, Tab moves from one unlocked cell to the next.

A password is optional. Without one, anyone can switch protection off from the Review tab. With one, keep it somewhere safe, because Excel can't recover it. Protection guards against accidents: Microsoft says sheet protection isn't meant as a security feature, so keep confidential data out of a shared file, or give the file itself a password to open.

Example

In the quote calculator, select B2:B3, press Ctrl1 (Cmd1 on a Mac), and on the Protection tab clear Locked. Then choose Review > Protect Sheet and select OK. A rep can now change the quantity and the discount, and Excel refuses any change to B4, B6 or B7.

Common mistakes

  • Unlocking cells without protecting the sheet changes nothing: every cell still takes typing. Protect the sheet afterward.
  • Protecting first and unlocking later doesn't work, because on a protected sheet the Locked setting can't be changed. Unprotect, unlock, then protect again.
  • With only the two selection boxes ticked, nobody can widen a column, so a total that outgrows its column stays #####. Tick Format columns when people may need it.
  • A forgotten password locks you out of your own formulas. Keep it where your team keeps its passwords.

In short

  • Every cell starts out locked, and locking works only once the sheet is protected.
  • Unlock the inputs first, then protect the sheet.
  • Protection stops accidents. It isn't a way to keep data secret.

Practice

Premium

4 exercises: 1 formatting task, 1 dialog, 1 set of steps and 1 quiz question.

Practice is part of Premium

Every lesson is free to read, and you can practice the free lessons without an account. This lesson's exercises are part of Premium, which you add to a free account.