add_totals_row
Append a bold totals row to a Google Sheets table, automatically summing numeric columns except the first, with optional per-column custom functions.
Instructions
Append a bold totals row beneath a table.
By default sums every column except the first (which gets a "Total"
label). Override per column with functions keyed by header name,
e.g. {"Margin": "AVERAGE", "Count": "COUNT"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| functions | No | ||
| spreadsheet | Yes | ||
| table_range | Yes |