Sum column
Add up the numeric values in a column; empty cells are ignored, and text such as 1,000.50 or $ 12 is read as a number.
Command in the Data Table toolkit · id ooa.datatable/sum_column · 4 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Table | Table | Yes | Source table. | |
| Column | String | Yes | Column name. | |
| If not number | String | No | error | A cell that is not a number: error stops and names its row; skip leaves it out and counts it in skipped. |
| Locale | String | No | en-US | How numbers written as text use separators, e.g. en-US (1,000.50) or de-DE (1.000,50). |
Outputs
| Output | Type | What it is |
|---|---|---|
| total | Number | Sum. |
| skipped | Number | Cells that were not numbers and were left out (if_not_number = skip). |