How to Protect a Range in Google Sheets
Lock a range of cells in Google Sheets so only you or chosen people can edit it, or show a warning before edits, and change or remove the protection later.
Several people edit a shared sheet, and a block of formulas or a price list keeps getting overwritten. Protecting the range stops other editors from changing it while the rest of the sheet stays open.
Select the range to protect
Click and drag over the cells, for example B2:B50. To protect a whole sheet instead, you can skip the selection and choose the sheet in the next step.
Open the protection sidebar
Click Data, Protect sheets and ranges. A sidebar opens on the right. You can also right-click the selection, choose View more cell actions, then Protect range.
Add the range and name it
Click Add a sheet or range. On the Range tab, the selected cells are filled in. Type a short description such as Prices so the protection is recognizable in the list later. To protect an entire sheet, switch to the Sheet tab, pick the sheet, and optionally tick Except certain cells to leave some cells editable.
Set who can edit
Click Set permissions. Choose one:
- Restrict who can edit this range, then Only you, so no other editor can change it.
- Restrict who can edit this range, then Custom, and tick the people who should keep editing access.
- Show a warning when editing this range, which lets anyone edit but shows a confirmation dialog first.
Click Done. Editors who try to change a restricted cell see a message that the cell is protected.
Edit or remove the protection later
Click Data, Protect sheets and ranges again. The sidebar lists every protected range and sheet. Click one to change its range or permissions, or click the trash icon next to its name to remove the protection.
If you need to hide the data, not just lock it. Protection stops editing but anyone who can open the file can still read the cells. Put sensitive data in a separate spreadsheet with its own restricted sharing, and pull in only what is needed with IMPORTRANGE.
More Google Sheets how-tos
- How to Add a Checkbox in Google Sheets
- How to Add a Drop-Down List in Google Sheets
- How to Filter Data in Google Sheets
- How to Freeze a Row in Google Sheets
- How to Highlight Cells with Conditional Formatting in Google Sheets
- How to Make a Chart in Google Sheets
- How to Merge Cells in Google Sheets
- How to Remove Duplicates in Google Sheets
- How to Split Text into Columns in Google Sheets
- How to Sum a Column in Google Sheets
- How to Use COUNTIF in Google Sheets
- How to Use IMPORTRANGE in Google Sheets
- How to Use SUMIF in Google Sheets
- How to Use the IF Function in Google Sheets
- How to Use VLOOKUP in Google Sheets