Skip to main content
Version: Streamsheets 3.0

DSUM

Returns the sum of all values in a column of the cell range which matches the specified criteria.

Syntax

=DSUM(DataRange, ColumnIndex, CriteriaRange)

Arguments

NameTypeDescription
DataRangeRangeCell range, that contains the data to evaluate. The range must include the field labels.
ColumnIndexNumberColumn label or index to calculate the sum for.
CriteriaRangeRangeSpecifies the conditions a row in cell range must fulfill. Must define at least one column with a label and a cell below which specifies the condition.

Return

TypeDescription
NumberThe sum of all values of the matching column.

Examples

ABC
1NameAgeCity
2Berlin
3
4NameAgeCity
5Miller24Berlin
6Mayer30Oslo
7Smith26Munich
8Jones19Berlin
FormulaResultComment
=DSUM(A4:C8,2,A1:C2)
43Evaluates the sum of all ages in "Berlin".