DMAX
Database Functions:
Function: DMAX() - Returns the maximum value from selected database entries.
Database
+--------+--------+-----+-------+--------+
| A | B | C | D | E |
+----+--------+--------+-----+-------+--------+
| 4 | Tree | Height | Age | Yield | Profit |
| 5 | Apple | 18 | 20 | 14 | 105 |
| 6 | Pear | 12 | 12 | 10 | 96 |
| 7 | Cherry | 13 | 14 | 9 | 105 |
| 8 | Apple | 14 | 15 | 10 | 75 |
| 9 | Pear | 9 | 8 | 8 | 76.8 |
| 10 | Apple | 8 | 9 | 6 | 45 |
+----+--------+--------+-----+-------+--------+
Criteria
ALL
The tallest tree in the orchard
=DMAX(A4:E10,"Height",A4:E10)
DMAX() Result is 18
Criteria
+--------+
| A |
+---+--------+
| 1 | Tree |
| 2 | =Apple |
+---+--------+
The Oldest apple tree in the orchard
=DMAX(A4:E10,3,A1:A2)
DMAX() Result is 20