Sub topic 3
Protecting a Range from Data > Protect sheets and ranges
Prerequisites and working model
This chapter assumes you can select cells and ranges, use A1 notation such as B2:E20, and understand the difference between viewers, commenters, and editors. You should also know that protection controls editing inside a spreadsheet. It does not change the file’s sharing settings.
A protected range is a selected group of cells that has an editing rule. The rule can block most editors or show a warning before an edit. Protection is useful for headers, formulas, approved values, and other content that should not be changed accidentally.
Protection does not hide the cells or encrypt their contents. A person who can view the spreadsheet may still read, copy, or export visible data, depending on the file’s settings.
Select the range to protect
Use this example spreadsheet:
| Range | Purpose |
|---|---|
| `A1:E1` | Column headings that should remain unchanged |
| `A2:E100` | Data entered by spreadsheet editors |
To protect the headings:
- Open the spreadsheet.
- Select
A1:E1. - Open Data > Protect sheets and ranges.
- In the side panel, select Add a sheet or range if needed.
- Confirm that the range is
A1:E1. - Enter a description such as
Header row. - Select Set permissions.
The description is not an access rule. It labels the protection so that another administrator can understand its purpose later.
Choose who can edit
The permissions dialog normally offers two kinds of behavior:
- Restrict who can edit this range blocks edits by people who are not allowed.
- Show a warning when editing this range lets editors continue after confirming a warning.
For a strict rule, choose Restrict who can edit this range. You can then choose an option such as Only you or Custom. With Custom, select the individual users who should be able to edit the range. These users must already have suitable access to the spreadsheet. Adding someone to a protection does not automatically give that person access to the file.
An editor who is not allowed to change a strictly protected range receives a message that the cell is protected. The editor can still work in unprotected cells.
Use a warning instead of a restriction when accidental edits are the main risk but collaboration should remain open. For example, a team may want a reminder before changing a formula column while still allowing an authorized editor to proceed.
Review and change a protection
Return to Data > Protect sheets and ranges to see existing rules. Select a protection to inspect its description, range, and permission mode. You can change the range, update the allowed editors, switch between restriction and warning, or remove the protection.
Check the range carefully when editing a rule. A protection for A1:E1 does not protect a new header in column F. Likewise, protecting A1:E100 does not protect rows added below row 100.
Common errors include:
- Selecting the wrong cells before opening the protection panel.
- Protecting formulas but leaving nearby formula cells outside the range.
- Assuming a warning prevents edits.
- Assuming protection prevents viewers from copying visible information.
- Giving edit access to the file when the person only needed to review it.
A practical review asks three questions: Does the protected range cover every important cell? Can each required contributor still edit the cells they need? Does the rule explain its purpose clearly?
Exercise
You need contributors to enter data in B2:B20, but they must not change the headings in A1:E1. Which range should you protect, and which permission mode fits a strict requirement?
Show answer
Protect A1:E1 and choose Restrict who can edit this range. Leave B2:B20 unprotected so contributors can enter data.