Create pivot table
Create a pivot table from a range with a header row: fields as rows, columns, values (Sum, Count, Average, Max or Min) and filters. Excel fills in the figures when the workbook is opened.
Command in the Excel toolkit · id ooa.excel/create_pivot_table · 10 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Range | String | No | Source range including its header row; the used area of the sheet when empty. | |
| Destination | String | No | A3 | Top-left cell of the pivot table. |
| Name | String | No | Pivot table name; PivotTable1, PivotTable2 … when empty. | |
| Rows | List | No | Fields shown down the side (header names). | |
| Columns | List | No | Fields shown across the top. | |
| Values | List | Yes | Fields to summarise, each as Field or Field:function, function sum (the default), count, average, max or min. | |
| Filters | List | No | Fields offered as report filters above the table. | |
| Sheet | String | No | Sheet with the source data; active sheet when empty. | |
| Destination sheet | String | No | Sheet to put the pivot table on; created when it does not exist; a new sheet named Pivot when empty. | |
| Session | String | No | excel | Workbook session. |
Outputs
| Output | Type | What it is |
|---|---|---|
| name | String | Name of the pivot table. |
| sheet | String | Sheet the pivot table is on. |