Skip to main content

DMAX

Definition

Returns the maximum value selected from a database table-like array or range using a SQL-like query.

Sample Usage

Syntax

DMAX(database, field, criteria)

  • database - The array or range containing the data to consider, structured in such a way that the first row contains the labels for each column's values.

  • field - Indicates which column in database contains the values to be extracted and operated on.

    • field may either be a text label corresponding to a column header in the first row of database or a numeric index indicating which column to consider, where the first column has the value 1.
  • criteria - An array or range containing zero or more criteria to filter the database values by before operating.

 

See Also

MAX: Returns the maximum value in a numeric dataset.

DVARP: Returns the variance of an entire population selected from a database table-like array or range using a SQL-like query.

DVAR: Returns the variance of a population sample selected from a database table-like array or range using a SQL-like query.

DSUM: Returns the sum of values selected from a database table-like array or range using a SQL-like query.

DSTDEVP: Returns the standard deviation of an entire population selected from a database table-like array or range using a SQL-like query.

DSTDEV: Returns the standard deviation of a population sample selected from a database table-like array or range using a SQL-like query.

DPRODUCT: Returns the product of values selected from a database table-like array or range using a SQL-like query.

DMIN: Returns the minimum value selected from a database table-like array or range using a SQL-like query.

DGET: Returns a single value from a database table-like array or range using a SQL-like query.

DCOUNTA: Counts values, including text, selected from a database table-like array or range using a SQL-like query.

DCOUNT: Counts numeric values selected from a database table-like array or range using a SQL-like query.

DAVERAGE: Returns the average of a set of values selected from a database table-like array or range using a SQL-like query.

 

In order to use the DMAX formula, start with your edited Excellentable:

 

  

 

  

 

A
B
C
D
1
Database_arr
2
Key
Recipe
Category
Preparation
3
1
Caprese Salad
Vegetarian
3
4
2
Burrito Eroica
Epicurean
15
5
3
Celery Rawshticks
Vegan
3
6
4
Linguine al Pesto
Vegetarian
15
7
5
Swiss-Mushroom Burger
Epicurean
14
8
6
Nutella Sandwich
Vegetarian
3
9
7
Paella Valenciana
Epicurean
40
10
8
Risotto Milanese
Vegetarian
30
11
12
13
Criteria_arr
14
Key
Recipe
Category
Preparation
15
Epicurean
<25
16
DMAX
1800
E
1
2
Calories
3
250
4
1800
5
100
6
100
7
800
8
440
9
500
10
600
11
12
13
14
Calories
15
16

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.