Create summary table
create_summary_tableGroup rows and aggregate columns into a static summary table, similar to a pivot table, using sum, average, count, min, or max, and write results as cells.
Instructions
Group rows and aggregate columns, like a pivot table, writing the result as cells.
The result is a static table (not an Excel PivotTable) and does not update when the source changes. Only numeric values are summed, averaged or compared; 'count' counts non-empty cells. Formula cells are not evaluated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to an .xlsx, .xlsm, .xltx or .xltm file. Relative paths are resolved in the server's workbook directory when one is configured; otherwise use an absolute path. | |
| sheet | Yes | Worksheet name, e.g. 'Sheet1'. | |
| values | Yes | Header names to aggregate. | |
| group_by | Yes | Header names to group by. | |
| target_cell | No | A single cell in A1 notation, e.g. 'B2'. | A1 |
| source_range | Yes | A cell or rectangular range in A1 notation, e.g. 'A1:D20'. | |
| target_sheet | Yes | Worksheet name, e.g. 'Sheet1'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |