Back to Blog
Data AuditData QualitySmall BusinessSpreadsheet Managementspreadsheets

Protect Formula Cells in a Shared Google Sheet

Protect formula cells while keeping inputs editable in Google Sheets and Excel for the web, add a one-column check that flags overwritten formulas, and see where sheet protection stops.

To protect formula cells in a shared Google Sheet while keeping input cells editable, put your inputs and formulas in separate blocks, then select Data > Protect sheets and ranges > Sheet, check Except certain cells, enter your input range (A2:D8 in this example), and set Restrict who can edit this range > Only you. Add a one-column formula check so you can spot an overwritten formula at a glance—range protection stops accidental edits, but it doesn’t hide your data.

My preferred spreadsheet tool is Google Sheets because a spreadsheet should be shareable, whether to collaborate with a team or communicate results. I also cover the browser steps for Excel for the web below, since many businesses run on Microsoft 365. In either tool, sharing works only when input cells and formula cells have different rules.

The Example: A Shared Commission Tracker

Here’s a made-up April 2026 commission tracker on a tab named Commission_Tracker. Three reps—Elena Vance, Marcus Reed, and Priya Nair—log their orders in columns A to D. Column E calculates an 8% commission. The rate itself lives in a single cell, L2, so nobody ever types 0.08 into a formula.

Order ID (A)Rep (B)Order Date (C)Net Sales (D)Commission (E)
ORD-5801Elena Vance2026-04-03$1,500.00$120.00
ORD-5802Marcus Reed2026-04-07$2,500.00$200.00
ORD-5803Priya Nair2026-04-11$2,000.00$160.00
ORD-5804Elena Vance2026-04-15$1,750.00$140.00
ORD-5805Marcus Reed2026-04-19$3,000.00$240.00
ORD-5806Priya Nair2026-04-23$1,250.00$100.00
ORD-5807Elena Vance2026-04-28$2,000.00$160.00
Total$14,000.00$1,120.00

The headers go in row 1 and the orders in rows 2–8. Enter dates as real dates (for example, =DATE(2026,4,3)) and sales as plain numbers, then format them as dates and currency. Formatting won’t convert text that only looks like a date or a dollar amount, and the formulas below need real numbers.

Why Unprotected Formula Cells Break a Shared Tracker

When anyone can type into column E, three things can go wrong:

  1. A typed-over number. Someone types 250 over E4, Priya’s $2,000 order that should earn $160. Her payout jumps from $260 to $350, and total commission goes from $1,120 to $1,210 (+$90, or +8.04%).
  2. A “correct” number that goes stale. Someone types 160 into E4. It’s right today, so the total stays at $1,120. Later, D4 changes to $3,000. The commission should become $240 (total $1,200), but E4 still says $160, understating commission by $80 (−6.67%).
  3. Edits that cancel out. Someone changes E2 to =ROUND(D2*$L$2, 2)+90 and E3 to =ROUND(D3*$L$2, 2)-90. Every cell is still a formula and the total is still $1,120, but Elena is overpaid by $90 and Marcus is underpaid by $90.

The second and third cases are why checking the total isn’t enough. Protection (Step 2) prevents these edits from collaborators, and the check in Step 3 catches any that come from people who can still edit, including you.

Google Sheets Commission_Tracker tab showing orders in A1:D8, currency-formatted commissions in E1:E8, Formula Check OK in F1:F8, and the K1:L5 summary block with an 8% rate, $14,000.00 total net sales, $1,120.00 total commission, and OK: all formulas intact.
The Commission_Tracker sheet in Google Sheets: editable order inputs in A2:D8, locked commission and formula-check columns in E2:F8, and the locked rate and summary block in K2:L5. Open full-size image.

Step 1: Separate Inputs from Formulas

Build and test your formulas before you turn on protection. (In Excel for the web, protection blocks you from entering formulas in locked cells until you pause it.) Keep all inputs together on the left in A2:D8 and everything calculated to the right, following a workflow for separating raw inputs from calculated columns.

In K2, type Commission rate. In L2, enter 8%. Then enter this formula in E2 and fill it down to E8:

=IF(OR(A2="", B2="", NOT(ISNUMBER(C2)), NOT(ISNUMBER(D2)), D2<0), "CHECK INPUTS", ROUND(D2*$L$2, 2))

It returns CHECK INPUTS if a row is missing an order ID or rep, if the date or sales cell holds text like “TBD”, or if sales are negative. Otherwise, it multiplies sales by the rate in L2. The $ signs keep every row pointing at L2 when you fill down, so changing the rate later means editing one cell, not seven formulas.

Step 2: Lock Everything Except the Input Cells

Once the formulas work, lock the sheet so collaborators can edit only A2:D8. This also locks the rate in L2.

In Google Sheets

Per Google’s documentation on protecting sheets and ranges:

  1. Select Data > Protect sheets and ranges and click + Add a sheet or range.
  2. Select Sheet, choose Commission_Tracker, check Except certain cells, and enter A2:D8.
  3. Click Set permissions, select Restrict who can edit this range, choose Only you (or Custom to add specific managers), and click Done.

Don’t choose Show a warning when editing this range. It lets people click past the warning and edit anyway. You and the file owner can still edit every cell; other editors can change only A2:D8.

In Excel for the Web

Per Microsoft’s worksheet protection guide, open Review > Manage Protection, turn on Protect sheet, and add A2:D8 under Unlocked ranges. Excel’s protection applies to everyone, including you: to change a formula, click Review > Pause Protection, make the edit, then click Resume Protection. Other users stay protected while you’re paused. (In desktop Excel, use Format Cells > Protection > Locked plus Review > Protect Sheet.)

Step 3 (Optional): Add a Check That Flags Overwritten Formulas

Protection doesn’t stop you, or anyone you’ve authorized, from overwriting a formula by accident. A one-column check flags it. In F1, type Formula Check. Then enter this in F2 and fill it down to F8:

=IF(NOT(ISFORMULA(E2)), "OVERWRITTEN", IF(E2="CHECK INPUTS", "CHECK INPUTS", IF(E2=ROUND(D2*$L$2, 2), "OK", "EDITED")))

ISFORMULA (Excel version) returns TRUE when E2 holds a formula, so a typed number shows OVERWRITTEN. But ISFORMULA can’t tell a correct formula from a tampered one, so the check also recalculates the expected commission from L2 and shows EDITED if E2 doesn’t match. Keep it one cell per row: if you pass a range to ISFORMULA in Google Sheets, it checks only the first cell.

Next, add a small summary next to the rate:

RowLabel (K)Formula (L)Result
3Total net sales=SUM(D2:D8)$14,000.00
4Total commission=SUM(E2:E8)$1,120.00
5Formula statusSee belowOK: all formulas intact

In L5:

=IF(COUNTIF(F2:F8, "OK")=ROWS(F2:F8), "OK: all formulas intact", "REVIEW: " & (ROWS(F2:F8)-COUNTIF(F2:F8, "OK")) & " row(s) flagged")

Here’s what the check shows for each failure case. Test them on a copy of the file, not the live tracker:

CaseColumn FTotal commission (L4)Status (L5)
All formulas intactAll rows OK$1,120.00OK: all formulas intact
Typed-over number (E4 = 250)E4: OVERWRITTEN$1,210.00REVIEW: 1 row(s) flagged
Stale “correct” number (E4 = 160)E4: OVERWRITTEN$1,120.00REVIEW: 1 row(s) flagged
Offsetting edits (E2 +90, E3 −90)E2, E3: EDITED$1,120.00REVIEW: 2 row(s) flagged

Notice that the total looks fine in the last two cases—only the status cell catches them. One limit: the check uses whatever rate is in L2, so it can’t tell you the rate itself is wrong. That’s why L2 sits inside the locked area.

What Sheet Protection Cannot Do

Keep range protection separate from file sharing and confidentiality:

Troubleshooting

SymptomCauseFix
Collaborators can still edit column E or L2The range is set to Show a warning when editing this range, or they’re listed under CustomSet Restrict who can edit this range > Only you
Collaborators can’t enter a new order in row 9Only A2:D8 is unlocked, so row 9 is protectedAs the owner, insert a new row above row 8 so the unlocked range and the SUM/COUNTIF ranges expand, then fill E and F into the new row
Column E or F shows CHECK INPUTSText like “TBD” in a date or sales cell, a negative amount, or a blank order ID or repFix the inputs in A2:D8, and use a dropdown list for rep names
Column F shows OVERWRITTEN or EDITEDSomeone typed over or changed a formula in column EPaste the Step 1 formula into E2 and fill down to E8

Frequently Asked Questions

Why not just compare the total to an expected total?

Because two of the three failure cases leave the total unchanged. A stale typed value matches today and drifts later, and offsetting edits move money between reps without changing the sum. A row-by-row check catches both.

What if my input columns and formula columns alternate across the sheet?

In Google Sheets, check Except certain cells and click Add another range for each input column (for example, A2:A8 and C2:C8). In Excel for the web, add each range under Manage Protection > Unlocked ranges. Grouping inputs in one block, as in this example, is simpler to maintain.

What to Do Next

Locking formula cells and adding a formula check keeps shared calculations intact, while using dropdowns to keep spreadsheet categories consistent (with invalid entries rejected) cuts down on bad typed entries in A2:D8. If totals still disagree across reports, walk through why business numbers don’t match across systems.