New Tool Radar

AI for Data & Spreadsheets

How to Protect Formula Cells Before Sharing a Sheet for Editing

Protect the formula cells of a sheet before sharing it for editing, so editors cannot overwrite the formulas.

Schematic with three steps: Mark the formula cells and the input; Protect the sheet and allow only the; Test the protection as an editor before.

Sharing a sheet for editing gives every editor the power to change any cell, including the formulas the whole sheet depends on. Protection lets the owner lock the formula cells while leaving the input cells open, but it only works when it is set before the link goes out. Set the protection first, then share.

What you need

  • The sheet to share, with formula cells and input cells marked
  • The list of people who will edit it
  • A test account or a second browser profile to check the result

Step 1: Mark the formula cells and the input cells

Go through the sheet and mark which cells hold formulas and which hold inputs. Formula cells must be locked; input cells must stay editable.

Step 2: Protect the sheet and allow only the input cells

In Excel, unlock the input cells first, then protect the sheet; in Google Sheets, protect the sheet and add the input range as an exception. Set who may edit the protected range, usually only the owner.

Step 3: Test the protection as an editor before sharing

Open the sheet as an editor and try to change a formula cell: it should be refused. Then change an input cell and confirm the formulas still update. Only then send the link.

Worked example: synthetic budget sheet

The table below is a synthetic example. It shows the expected result of protecting formula cells before sharing; no formula was run.

Check Value Result
Formula cells C2:C20 Locked before sharing
Input cells A2:B20 Left editable
Editor test on C5 Refused Formula protected
Editor test on B5 Accepted Input still works

Expected result (UNTESTED). after protection, an editor changing the formula in C5 is refused, while changing the input in B5 is accepted and the formulas update; the sheet is then safe to share. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Protection is not security: anyone who can print, copy or export the sheet can take the data with them.
  • In Google Sheets, an editor can still make a copy of a protected sheet and edit the copy.
  • A protected sheet can still be broken by an editor who deletes a row the formulas depend on, unless rows are locked too.
  • In Excel, protection without a password can be removed by anyone who opens the sheet; a password only slows that down.

Sources

See all