Skip to main content
Version: Streamsheets 3.0

DMAX

Returns the largest number in a column of cell range which matches the specified criteria.

Syntax

=DMAX(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 find the maximum value 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 maximum value of the matching column.

Examples

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