A shared Google Sheet is often the only place certain numbers exist. Depot managers type in their weekly returns, a sales lead keeps the forecast there, someone in finance maintains the budget by cost centre. When a report needs those numbers, the sheet becomes a data source whether anyone planned it or not. That can work well. It stops working when the report assumes the sheet behaves like a database, because a sheet will accept almost anything anyone types.
This page covers how to read a Google Sheet reliably, five ways it tends to break a scheduled report, the guards that catch each one, and a fictional worked example where the naive total is more than a quarter short.
When a Google Sheet is a sensible source
Sheets earns its place where people, not systems, are the origin of the data. Targets, budgets, manual counts, forecasts, a list of which sites belong to which region: nobody's ERP holds these, and a sheet is a reasonable place to collect them. It is shared, it keeps version history, and everyone already knows how to use it.
The size limits are rarely the problem for this kind of data. Google's Drive file limits page puts spreadsheets created in or converted to Sheets at up to 20 million cells or 100 MB. A weekly returns tab uses a few hundred.
It is the wrong source when the numbers already live in a system. If the sheet is a paste of an export from your accounts or CRM, read the system instead. Our page on reporting straight from a SQL database covers the case where the export comes from your own database, and the HubSpot weekly sales report shows the CRM side. If the team works in Microsoft rather than Google, the equivalent migration is on the Excel page.
How a scheduled job reads a sheet
Google Sheets reporting automation normally runs through the Sheets API rather than a downloaded file. The spreadsheets.values.get method takes a spreadsheet ID and a range in A1 notation and returns a ValueRange. Four details in Google's documentation matter for a report:
- Render option. The
valueRenderOptionparameter decides what comes back.FORMATTED_VALUEreturns values as displayed, formatted by the spreadsheet's locale;UNFORMATTED_VALUEreturns calculated values without formatting;FORMULAreturns the formulas. Google's reading guide saysFORMATTED_VALUEis the default. For a report you want unformatted values, so that a real number arrives as a number and anything typed as text stays visibly text. - Trailing blanks. The
ValueRangereference says empty trailing rows and columns are left out ofvalues. Rows can come back with different lengths, so your parser must not assume every row is full width. - Quotas. Google's usage limits page sets 300 read requests per minute per project and 60 per minute per user per project, with no daily cap. Going over returns a 429 error, and Google recommends exponential backoff. Each request has 180 seconds to process. A weekly or daily read of a few tabs is nowhere near these limits; a job that polls dozens of sheets every minute could be.
- Metadata. The
Sheetresource carries each tab'stitle, a numericsheetIdthat Google says cannot be changed once set, and lists ofmergesandprotectedRanges. Reading this alongside the values is how the guards below spot structural changes.
Five ways a sheet breaks a report
None of these are bugs in Sheets. They are the normal consequences of a tool built for people editing freely.
- A renamed column. Someone tidies "Hire revenue (net)" into "Hire rev £". A load that looks for the old header finds nothing; a load that reads column C by position carries on reading whatever is now there.
- Merged cells. A manager merges the depot cell across two rows because it looks neater. Only one of those rows now carries the depot, and the other reads as blank, so its figures land under an empty group.
- Numbers typed as text. "14,960" pasted from an email, or "£9,870" typed with the currency sign, can be stored as text. A SUM over the column skips them without warning, and the total simply looks a bit low.
- New tabs. Someone duplicates the tab to try something, or starts "Week 40 v2". A load that picks the first tab, or the tab with a particular name, may read the wrong one.
- Edits after the cut-off. A figure is corrected on Monday afternoon after the report has gone out. The sheet now disagrees with the report, and without a record of what was read, nobody can say which number the board saw.
A column inserted in the middle is a sixth variant of schema drift. It only breaks loads that read by position, which is a good reason never to.
The guards that catch each one
| Failure | Guard | What it does |
|---|---|---|
| Renamed column | Header contract | Load checks row 1 against an agreed list of column names and types; any mismatch holds the load |
| Column inserted or moved | Match by header name | Columns are located by name each run, never by letter |
| Merged cells | Merge check | Read merges from the sheet metadata; fill the blank cells from the merge's first cell and log it, or reject |
| Number typed as text | Read unformatted, then type-check | Text that parses cleanly as money is converted and logged; anything else ("tbc") is quarantined and the depot shown as missing |
| New tab | Read by sheetId |
The load is pinned to one tab's ID, so a duplicate or renamed tab is ignored and flagged |
| Edit after cut-off | Snapshot plus later diff | Store exactly what was read, with a load ID and time; compare the live sheet later and carry any change into the next report as a restatement |
| Free-typed entries | Data validation | Stop bad values at the point of entry |
| Header edits | Protected range | Lock row 1 so only the sheet owner can change it |
Two of these sit inside Sheets itself. Sheets' data validation can restrict a cell to a dropdown list; Google's dropdown help page says entries not on the list are rejected by default, with an option to show a warning instead. The API's condition types for validation also include checks such as a number greater than or equal to a value, a valid date, and a custom formula. Protected ranges can restrict who edits a range, or just ask people to confirm before editing. Google is explicit that protection is not a security measure, so treat it as a guard against accidents, not a control.
In-sheet guards reduce the problems; they do not remove them. The load should check every rule again on its own, because a sheet owner can switch validation off, and a rule only covers the cells it was applied to.
The data model
Fields
| Source | Object | Fields used |
|---|---|---|
| Google Sheets API | Spreadsheet metadata | spreadsheet ID; per tab sheetId, title, merges, protectedRanges |
| Google Sheets API | ValueRange for the returns tab |
header row; per row: depot code, week ending, hire revenue (net), units on hire, damage recharges (net), submitted by |
| Warehouse | Load | load ID, spreadsheet ID, sheetId, read time, cut-off time, contract result |
| Warehouse | Snapshot row | load ID, sheet row number, each cell as read, parsed value, check status |
| Reference data | Depot master | depot code, depot name, cost centre |
| Accounting system | Ledger totals | cost centre, period, net revenue |
Joins
| From | To | Join key | Note |
|---|---|---|---|
| Snapshot row | Depot master | depot code | Never join on the typed depot name; "Central" and "Central depot" are two values |
| Snapshot row | Load | load ID | Every number in a report can be traced to the read it came from |
| Live sheet row | Snapshot row | sheetId + depot code + week ending |
Used for the after-cut-off diff; row numbers move when rows are inserted |
| Depot master | Ledger totals | cost centre | Optional check of typed revenue against the accounts once the period closes |
Formulas
| Measure | Formula |
|---|---|
| Contract pass | every expected header found, by name, on the pinned sheetId |
| Guarded total | Σ parsed hire revenue over rows that pass or are converted |
| Text skipped by a plain SUM | Σ parsed value of rows whose raw cell was text |
| Understatement | text skipped ÷ guarded total |
| Restatement | Σ (live value − snapshot value) for the same depot and week |
Sheet guard · 10 weekly loads to 8 November 2026
Failure log · Depot weekly returns · Wisthorpe Plant & Tool Hire (fictional)
12 problems in 10 weeks.
1 report held until it was fixed.
Each Monday at 10:00 the load reads the “Returns” tab, checks it against a header contract, snapshots what it read and only then builds the depot report.
- Loads run
- 10
- 3 with no problems
- Loads held
- 1
- Header contract failed
- Text numbers caught
- £40,360
- 3 cells a SUM would skip
- Edits after cut-off
- 3
- Net +£2,645 restated
Problems by failure mode
Header contract · week ending 8 November 2026
| Column | Rule | Result |
|---|---|---|
| Depot codetext | One of D01–D06; never blank | 1 blank filled from merge |
| Week endingdate | A Sunday; matches the load week | Passed |
| Hire revenue (net)number | Number ≥ 0, no currency text | 2 text cells coerced |
| Units on hirewhole number | Whole number ≥ 0 | Passed |
| Damage recharges (net)number | Number ≥ 0 | Passed |
| Submitted bytext | Not blank | Passed |
Failure log, newest first
| Week | What the check found | Value | Status |
|---|---|---|---|
| 8 Nov | Merged cellsDepot cells A7:A8 merged; row 8 reads blankDepot filled as D06 from the merge range and logged | £4,380 | Filled |
| 8 Nov | Number typed as textRow 5 (D04) hire revenue held as text "£9,870"Parsed to a number and logged | £9,870 | Coerced |
| 8 Nov | Edit after cut-offD03 hire revenue changed 21,305 → 23,105 at 14:20Sent report kept the snapshot; change carried to next week as a restatement | +£1,800 | Logged |
| 8 Nov | Number typed as textRow 3 (D02) hire revenue held as text "14,960"Parsed to a number and logged | £14,960 | Coerced |
| 1 Nov | Edit after cut-offD02 hire revenue changed 14,685 → 15,415 after cut-offSent report kept the snapshot; change carried to next week as a restatement | +£730 | Logged |
| 1 Nov | Column inserted or movedNew column "Notes" inserted at C; revenue moved from C to DColumns matched by header name, not position; no impact | – | Passed |
| 25 Oct | Number typed as textRow 8 (D04) hire revenue reads "tbc"Row quarantined; depot shown as missing; depot manager asked | – | Quarantined |
| 11 Oct | Merged cellsDepot cells A3:A4 merged; row 4 reads blankDepot filled from the merge range and logged | £5,380 | Filled |
| 4 Oct | Edit after cut-offD04 hire revenue changed 9,765 → 9,880 after cut-offSent report kept the snapshot; change carried to next week as a restatement | +£115 | Logged |
| 4 Oct | New or renamed tabNew tab "Week 40 v2" alongside "Returns"Ignored: only the "Returns" tab, by sheetId, is read; flagged to owner | – | For review |
| 20 Sept | Renamed column"Hire revenue (net)" now reads "Hire rev £"Load held; sheet owner restored the header at 11:40; load rerun | – | Held |
| 13 Sept | Number typed as textRow 3 (D01) hire revenue held as text "15,530"Parsed to a number and logged | £15,530 | Coerced |
3 of 10 loads had no problems. Values are hire revenue affected; for edits after cut-off, the change carried into the following week.
Monday load · run log · week ending 8 November 2026
Google Sheets → IVP.ai Data Layer
- 10:00Read sheet metadata (tabs, sheetId, merges, protected ranges)2 tabs · 1 mergeSynced
- 10:00Read "Returns" values, unformatted7 rowsSynced
- 10:01Check header contract (6 columns, by name)6 of 6 foundDone
- 10:01Check types and depot codes2 coerced · 1 filledFor review
- 10:02Write snapshot (load ID, cell values, timestamp)£92,325Done
- 10:03Send weekly depot report6 depotsDelivered
- 15:00Compare live sheet with snapshot1 change · +£1,800For review
- 15:00Edit the sheet to fix entriesOff: depot managers fix their own rowsSkipped
Worked example (illustrative, fictional)
Wisthorpe Plant & Tool Hire is an invented company with six depots. Each depot manager enters a weekly line in a shared sheet; the cut-off is 10:00 on Monday. This is the load for the week ending Sunday 8 November 2026, read at 10:00 on Monday 9 November.
| Row | Depot as read | Hire revenue as read | Type | Check result |
|---|---|---|---|---|
| 2 | D01 | 18,420 | number | Passed |
| 3 | D02 | "14,960" | text | Converted to 14,960 |
| 4 | D03 | 21,305 | number | Passed; edited to 23,105 at 14:20 |
| 5 | D04 | "£9,870" | text | Converted to 9,870 |
| 6 | D05 | 16,240 | number | Passed |
| 7 | D06 | 7,150 | number | Passed; A7:A8 merged |
| 8 | (blank) | 4,380 | number | Depot filled as D06 from the merge |
What a plain SUM would report. The two text cells are skipped: £18,420 + £21,305 + £16,240 + £7,150 + £4,380 = £67,495. Grouped by the depot column, D02 and D04 show nothing, D06 shows £7,150, and £4,380 sits under a blank depot.
What the guarded load reports. All seven rows count: £67,495 + £14,960 + £9,870 = £92,325. D06 is £7,150 + £4,380 = £11,530.
The gap. The plain SUM is short by £14,960 + £9,870 = £24,830, which is 24,830 ÷ 92,325 = 26.9% of the true week. Nothing about £67,495 looks obviously wrong, which is the danger.
The late edit. At 14:20 the D03 manager corrected £21,305 to £23,105. The report that went out at 10:03 keeps the snapshot figure. The afternoon diff finds a change of £23,105 − £21,305 = +£1,800, so the live sheet now totals £92,325 + £1,800 = £94,125. The following week's report shows the £1,800 as a restatement of week 45, with the load ID of the read it corrects, rather than silently changing last week's number.
Reading the failure log
The asset above shows ten weekly loads for the same fictional company. Three ran clean. One was held, the week a header was renamed, until the sheet owner restored it and the load ran again. The rest went out with each problem converted, filled, quarantined or logged, and every one is listed with the action taken.
A log like this is also how you decide where to spend effort in the sheet itself. Repeated text numbers from one depot point to a missing validation rule on that column. A renamed header points to row 1 needing protection. Frequent edits after cut-off suggest the cut-off is too early for the people entering the data, which is a process conversation, not a data one.
How to automate it with IVP.ai
The IVP.ai Data Layer can treat a Google Sheet as one source among several, read through its REST API on a schedule, alongside your accounts, CRM or any SQL database. The header contract, merge and type checks, sheetId pinning and snapshots described above become part of the load, and the depot master and joins sit in the governed warehouse with the rest of your data. Each report then reads snapshots, not the live sheet.
Deskless by IVP.ai can run on top as a report or agent: holding the report when the contract fails, telling the sheet owner which header changed, asking a depot manager about a "tbc", and posting the after-cut-off diff to whoever owns the numbers. By default it flags and waits for a person. It does not edit the sheet unless a business sets it up to. Other connections are on the integrations hub.
To see this on your own sheets, apply for the free 48-hour pilot. We connect up to three sources, for example the shared sheet, your accounts and one other system, clean the data and set one report or agent running on real data within 48 hours of read-only access. You then have 14 days of access to choose a plan or walk away.