Skip to main content

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​

InputTypeRequiredDefaultWhat it is
TableTableYesSource table.
ColumnStringYesColumn name.
If not numberStringNoerrorA cell that is not a number: error stops and names its row; skip leaves it out and counts it in skipped.
LocaleStringNoen-USHow numbers written as text use separators, e.g. en-US (1,000.50) or de-DE (1.000,50).

Outputs​

OutputTypeWhat it is
totalNumberSum.
skippedNumberCells that were not numbers and were left out (if_not_number = skip).