OĞUZ EROLAI·ADS·APPS

Google Sheets Protect Cells: Ranges, Sheets and Their Limits

14 min readPublished: Updated:
CONTENTS7 sections

To protect cells in Google Sheets, select the range, open Data > Protect sheets and ranges, click Add a sheet or range, then in Set permissions choose “Restrict who can edit this range” and pick the people who may write there. The “Show a warning” option does not lock anything; it only asks for confirmation. Protection only separates people who hold the Editor role, never restricts the file’s owner and never hides anything: everyone who can open the file sees the protected value and, with default settings, can make a copy. To separate who sees what, I recommend a separate file.

Below I cover the setup, the limits of protection, and which of 22 wrong edits protection would have stopped in an illustrative production plan.

How do you protect a cell, range or sheet?

Protection assigns edit permission to a range or to a whole tab. The steps from Google’s protect, hide and edit sheets page (read on 2026-10-31):

  1. Click Data > Protect sheets and ranges; a panel opens on the right.
  2. Click Add a sheet or range, or click an existing protection to edit it.
  3. Choose Range and highlight it with the spreadsheet icon, or choose Sheet and select the tab.
  4. Click Set permissions.
  5. Under “Restrict who can edit this range”, choose Only you, Only domain (work or school accounts, available only when everyone in the domain can edit the file), Custom (the people you select) or Copy permissions from another range.
  6. Click Done.

To see protected cells, use View > Show > Protected ranges; they appear with a striped background. To remove a protection, find it in the same panel and delete it.

Google lists two limits on the same page: you cannot lock cell formatting while letting people edit input values, and you cannot protect data with a password. If the menu is not visible, the file is most likely in Microsoft Office editing mode; convert it to Google Sheets first.

What is the difference between “Show a warning” and “Restrict”?

“Show a warning when editing this range” does not block editing: the person sees a confirmation message and, after confirming, the change goes through. “Restrict” stops any Editor who is not on the list from writing. Use the warning for cells the team legitimately changes but should change carefully; use restriction for formulas and parameters. In the example below, four formulas were still overwritten by hand while the warning was on.

Should you protect the whole tab or a range?

When protecting a tab, the Except certain cells box leaves some cells out. Google describes those cells as unprotected, so an exception is open to every Editor of the file, not to one person. If a single group fills in all input cells, sheet protection with exceptions is enough. If different people write different columns, create a separate range protection for each column group and put only those people on its Custom list.

Can owners and editors get around protection?

The file’s owner can edit every protected range, and that cannot be removed. Google’s help page says the owner can still edit under “Only you”, and the Apps Script protection reference (read on 2026-10-31) states that the spreadsheet owner is always able to edit protected ranges and sheets. Editors can add protections but cannot take permissions away from owners. Viewers and commenters cannot add protections.

Editors have other routes too. According to Google’s protection page, anyone who can edit can make a copy of the protected sheet, copy the workbook or upload a new version. In Google Drive, editors can by default share the file and change permissions; turn this off by unticking “Allow editors to change permissions and share” under Share > Settings (Google Drive sharing page, read on 2026-10-31).

What does protection not do?

Protection limits editing, not viewing. Google says so directly: protection should not be used as a security measure. People can print, copy, paste, and import and export copies of a protected spreadsheet. Whatever a protected cell contains, everyone who can open the file sees it. Three consequences follow:

  • A hidden tab is not protection. According to Google, all editors can unhide a hidden sheet, and viewers can still access content in hidden sheets.
  • A copy contains the whole file. A viewer without edit permission can still make a copy of the spreadsheet. In Google’s example the sheets stay hidden in the copy, but the person can unhide them. Because the person who makes a copy owns it, the protections in the copy may not bind them.
  • Formulas and data stay visible. Google’s protection page has no option to hide formulas.

Ways to separate visibility, and their limits

My assessment: the safest way to control who sees what is to keep sensitive information out of any file that person can open. Because protection does not do this, I recommend moving cost, pay or margin to its own spreadsheet and sharing it only with the people who need it.

IMPORTRANGE. When you link two files, get the direction right. According to Google’s IMPORTRANGE page (read on 2026-10-31), once access is granted, any editor on the destination spreadsheet can pull from any part of the source spreadsheet. So if the plan file the team edits imports even one column from the cost file, every Editor of the plan file can write a new formula and read the entire cost file. The safe direction is the reverse: the confidential file pulls from the open file, never the other way round. The same page says that if you turn on “Disable options to download, print, and copy” in a source spreadsheet, new IMPORTRANGE formulas cannot export data from it; formulas created earlier keep working.

Turning off download, print and copy. You can disable these options for viewers and commenters in the sharing settings. This makes moving data out harder; it does not hide what is on screen.

How do sharing roles and protection work together?

Protection only divides work among Editors; Viewers and Commenters cannot change cells anyway. Make everyone who does not need to write a Viewer; they still see every tab and can make a copy. The setup where new records come in through Google Forms and updates happen in a protected tab is in the concurrent data entry guide.

Example: how many of 22 errors does protection stop in a production plan?

This example is illustrative. At a metal parts manufacturer, 9 people use the same “Production plan” spreadsheet: the production manager (the file’s owner), one planner, two sales representatives, three shift supervisors, one quality lead and accounts. Accounts is a Viewer; the other seven are Editors. Without protection, 8 people can write in every cell.

There are four tabs: Orders (sales enter them), Plan (the planner enters part code, quantity and start time; duration and finish are formulas), Actuals (shift supervisors enter good units and scrap, quality ticks an approval column) and Parameters (cycle time per part and machine hourly cost; a hidden tab). For the first two weeks, only the formula columns in Plan had a warning. The change list for four weeks:

Wrong editCountDoes “Restrict” stop it?
Value typed over a formula (Plan duration and finish)76 of them; 1 was the owner’s, not stopped
Writing in someone else’s column6Yes, 6
Cycle time changed in Parameters2Yes, 2
Wrong value in one’s own column (12,000 instead of 1,200 units, wrong part code)5No
Row deleted in one’s own area (sales, Orders)2No
Total2214 stopped, 8 not stopped

Four of the formula overwrites happened while the warning was on; people confirmed the message and carried on. The two row deletions came to light when Plan turned out to have two more rows than Orders. There were also two visibility incidents: a sales representative unhid the Parameters tab and saw the machine hourly cost, and accounts made a copy of the file. Protection stops neither.

The six protections to set up, and how many people can write in each (owner included):

RangeCustom listCan write
Orders!A:F2 sales3
Plan!A:C (part code, quantity, start)planner2
Plan!D:E (duration, finish formulas)Only you1
Actuals!A:E3 shift supervisors4
Actuals!F (quality approval)quality2
Parameters (tab)planner2

How does a new row get its formula? The planner opens a row in Plan for every order but cannot write in D:E. So do not copy formulas down row by row; put one array formula with an open-ended range in the first data cell of each column. The inputs sit in the planner’s columns: A part code, B quantity, C start time; in Parameters, A is the part code and B the cycle time per unit in minutes.

  • D2 (duration, hours): =ARRAYFORMULA(IF(A2:A="","",B2:B*VLOOKUP(A2:A,Parameters!A:B,2,FALSE)/60))
  • E2 (finish): =ARRAYFORMULA(IF(C2:C="","",C2:C+D2:D/24))

In the example, 300 units × 1.9 minutes come to 9.5 hours; a job starting at 07:00 finishes at 16:30. E stays blank in rows without a start time; format column E as date and time. According to Google’s ARRAYFORMULA page, the function displays a formula’s results across multiple rows, and the VLOOKUP page recommends FALSE as the last argument for an exact match (both read on 2026-10-31). The aim is that nobody needs to type in D:E and protection stays on the whole column; I have not tested how the formulas spread into new rows in a protected column. Also move the cost column out of Parameters into a separate file; Plan only uses cycle times.

Where does a web application start?

My assessment: a spreadsheet is enough while a rule is tied to a cell; once a rule is tied to a person, a row or a record’s status, I found no equivalent in the protection menu. The firm in the example should first set up the six protections and move cost to a separate file; 14 of the 22 errors are closed there. Consider an application when one of three requests arrives: a shift supervisor should see and change only their own shift’s rows, a row should lock itself after quality approval, or a parameter change should wait for a second person’s approval. If none of the three applies, stay in the sheet with the six protections. Protection is tied to a fixed range you define by hand; even if Apps Script could build a status lock, maintaining the script and the audit trail stays with you.

Situations left after protection, the route inside the sheet and its limit:

SituationRoute inside the sheetLimit
Wrong value in own column (5)List for part codes, number range validation for quantityDoes not catch a wrong quantity inside the range
Quality-approved row must not changeProtecting the approved row by handManual protection after every approval
Owner changing a formula (1)Naming a version firstAt most 15 named versions per spreadsheet (Google, read on 2026-10-31)
Visibility (2)Separate file, IMPORTRANGE into the confidential fileRow-level visibility needs one file per person

You set up the dropdown with Data > Data validation > Add rule; according to Google’s dropdown page (read on 2026-10-31), a value not on the list is rejected, unless “Show a warning” is selected under “If the data is invalid”, in which case it goes in. For quantity I recommend the number range rule in the same menu; this Google page does not describe it, and I have not verified its steps against a source. The sheet cannot stop the two row deletions; my recommendation is a written “no deleting, set status to Cancelled” rule.

The audit trail has limits too. According to Google’s find what’s changed page (read on 2026-10-31), only people with edit permission can see version history, and on a personal Google Account the owner can permanently delete version history. The limits of cell edit history are covered in the last question below.

In a role-based application, these three requests could be met as follows: shift supervisors see and enter only their own shift’s records; an approved record can be changed only with a reason and only by an authorised person; a parameter change takes effect after a second approval, and every change is logged with who, when, old value and new value. Cost is never sent to the sales screen.

How row visibility by unit is built is covered on the branch-based data entry system page. These screens can be built as needed; the service scope is on the turning Excel and Google Sheets into a web app page.

The application runs on a virtual server (VPS) that can be opened in your company’s name; the data stays yours and can be exported to Excel or CSV at any time. Small and medium-sized teams pay no per-user licence, as the cost is the server plus maintenance, and the source code sits in a repository you can access, together with run instructions, a dependency list and known limitations. If you want me to build this separation for your sheet, write through the contact page; which rule goes into protection, which into an application, and the scope of the first version are set out in writing at the first step.

Points I have not verified

Google does not state these, and I have not tested them:

  • Can an Editor who is not on the list delete the protection?
  • Is the person who makes a copy bound by the protections in the copy?
  • Do the array formulas in D and E spread into new rows without trouble in a protected column?
  • On a company account, can a Google Workspace administrator override a protected range or take over the file?
  • Can an Apps Script that locks a row after approval be set up reliably?

Frequently Asked Questions

What should I check in a protected sheet when someone leaves the team?

Remove them from the file’s sharing first. If the file is shared only with named people, they can no longer open it even if their name stays on Custom lists; if link sharing or domain-wide sharing is on, turn that off too. Check IMPORTRANGE links separately: according to Google, granted access remains in effect until the user who granted it is removed from the source file. Copies they made earlier cannot be recalled.

Can I add protections in bulk with Apps Script?

Yes. According to the Apps Script reference, Range.protect() adds protection to a range and Sheet.protect() to a sheet; with the returned Protection object you change the list of editors, switch the protection to warning-only or remove it. The owner can still edit every protected range.

How do I find the previous value of a damaged cell?

Right-click the cell and choose Show edit history; you see who changed the value and when. Changes made by formulas and added or deleted rows may not appear there. If you need to look at an older version, Google recommends making a copy of that version rather than restoring it, so that cell edit history is kept; take the value from the copy.

Back to top ↑