Ravindra BagaleCourses & study guides

14. Protection, Sharing and Printing

14.1 Locked Cells and Protect Sheet

Every cell is Locked by default, but Locked has no effect until the sheet is protected. So the method is: unlock the input cells first, then protect the sheet.

Steps in Excel

  1. Select the input cells users may change (for example the daily target cells C4:C9 of the Targets sheet).
  2. Home › Cells › Format › Format Cells… (Ctrl + 1) › Protection tab › untick Locked › OK. Give these cells a light-yellow fill so users see where to type.
  3. Review › Protect › Protect Sheet.
  4. Tick what users may still do: Select unlocked cells (keep), and as needed Format columns, Sort, Use AutoFilter, Use PivotTable & PivotChart, Edit objects.
  5. (Optional) enter a password › OK › confirm it.
  6. Test: typing in a locked cell shows a message that the cell is protected. Tab jumps between unlocked cells.
  7. To remove: Review › Protect › Unprotect Sheet.

Worked example – Targets sheet.

Cell range Contents Locked? Why
A4:A9 City names (Pune … Nagpur) Locked Should not change
C4:C9 Daily target ₹ Unlocked City managers type here
D4:D9 =C4*31 monthly target Locked Formula
E4:E9 =SUMIFS(tblOrders[Amount],tblOrders[City],A4,tblOrders[Status],"Delivered")/D4 Locked Formula

If Pune's daily target in C4 is ₹60,000, D4 shows ₹18,60,000 and E4 shows 18,42,500 ÷ 18,60,000 = 99.1%.

Ravindra Bagale's Tip

Many students do Protect Sheet first and then realise the input cells are locked too – because all cells are Locked by default. Remember the order: first select the input cells and untick Locked, then Protect Sheet. Give the input cells a light yellow colour so the user knows where to type.

Practice task

On a Targets sheet with the six cities, unlock only the daily-target cells, protect the sheet allowing Sort and Use AutoFilter, and check that the formulas cannot be edited but targets can.