Skip to main content
Version: Streamsheets 3.0

DCOUNT

Counts all cells that contain a number within a cell range.

Syntax

=DCOUNT(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 count values in.
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 counted amount of cells within the given parameters.

Examples

ABC
1NameAgeCity
2Berlin
3
4NameAgeCity
5Miller24Berlin
6Mayer30Oslo
7Smith26Munich
8Jones19Berlin
FormulaResultComment
=DCOUNT(A4:C8,2,A1:C2)
2Evaluates the number of valid age entries in "Berlin".