Sub topic 1
What protection is for and when to use it
Google Sheets protection controls who can change selected cells or sheets. It helps prevent accidental edits to formulas, headings, lookup tables, and other parts of a shared spreadsheet.
Protection is an editing control, not a security boundary for the data itself. A protected range can stop an editor from changing cells, but it does not hide the values. Someone who can view the spreadsheet may still read, copy, print, or download its contents, depending on the file’s sharing settings.
Prerequisites
You should know how to select cells, identify a sheet tab, and read A1 notation such as A1:E10. You should also understand the difference between a viewer, commenter, and editor in Google Sheets. The Apps Script examples in later chapters require basic JavaScript.
What protection changes
A protected range is a set of cells with an editing rule. For example, you might protect A1:E1 because it contains column headings. You might also protect a formula column such as F2:F1000.
A protected sheet applies the rule to the whole tab. You can then define unprotected ranges, such as B2:B100, where users are allowed to enter data.
Protection does not change formulas or values. It changes whether particular users can edit them.
| Protection type | Typical use | Result |
|---|---|---|
| Protected range | Lock headings or formulas | Only approved editors can change the selected cells |
| Protected sheet | Lock a complete worksheet | The sheet is protected except for chosen input ranges |
| Warning-only protection | Reduce accidental edits | Editors see a warning but can continue |
The exact result depends on the file’s sharing permissions and the users allowed by the protection. A person who only has view access cannot edit protected or unprotected cells. A person with edit access may be blocked by a protection or shown a warning, depending on its settings.
Protection is different from sharing
Sharing decides who can access the spreadsheet and what broad role each person has. Protection adds more specific editing rules inside the spreadsheet.
For example, consider a budget file:
- The finance team has editor access to the file.
- The total formulas should not be changed.
- Department managers should enter only their own requested amounts.
- A published assumptions table should remain unchanged.
Sharing alone cannot express all these rules. Protection can restrict the formula and assumptions ranges while leaving input cells available.
Use sharing settings to control access to the file. Use protection to control editing within a file that people already share.
When to use protection
Protect a range when a small part of a sheet must remain stable. Common examples include:
- Header rows and column labels
- Formula columns
- Reference lists used by dropdown menus
- Imported data that should not be overwritten
- Totals, subtotals, and dashboard calculations
Protect an entire sheet when users should work only in a clearly defined input area. This pattern is useful for forms, monthly reporting tabs, and templates. Leave only the cells intended for input unprotected.
Use warning-only protection when people need a reminder rather than a hard restriction. This works well when editors are trusted but may make occasional mistakes. It is less suitable when a change could corrupt calculations or reporting.
What protection does not guarantee
Protection does not:
- Hide confidential information
- Stop an authorized editor from copying data
- Replace file sharing or account security
- Prove that a value is correct
- Prevent every workflow from changing data through authorized tools
- Create a backup of the spreadsheet
Protection also needs maintenance. If you add new formula columns, change the layout, or give another person responsibility for a range, review the protection rules.
A practical decision
Start by identifying which cells users should edit. Protect the cells outside that input area. Then decide whether the rule should block edits or only warn users.
For a shared operational spreadsheet, blocking is usually appropriate for formulas and structural cells. Warning-only protection is reasonable for low-risk cells where users need flexibility.
Exercise
A shared expense sheet has editable amounts in B2:B50 and formulas in C2:C50. Which protection design fits this layout?
Show answer
Protect the formula range C2:C50 and leave B2:B50 editable. If the whole sheet should otherwise be locked, protect the sheet and add B2:B50 as an unprotected range.