=DMAX( database, field, criteria )
=DMAX(A5:E11, "Profit", A1:F3)
The DMAX function takes three arguments. The first argument is the range of cells that you want to search for maximum values. The second argument is the column label of the range that contains the values you want to return. The third argument is an optional range that contains criteria for the maximum value. In this example, the DMAX function is used to return the maximum profit of any apple tree within 10 feet of row 7 or any pear tree. The pear tree in row 7 meets these conditions and will return a value of $96.
=DMAX(A1:A10, "Value", A1:A10, ">5")
The DMAX function can also be used to return the maximum value of a cell range that has a specified criteria. For example, if you want to find the maximum value in a range of cells that are greater than 5, you can use the DMAX function with the criteria range to return the maximum value. This example will return the maximum value in the range A1:A10 that is greater than 5.
The DMAX function is used to find the largest number in a field of a list or database. It requires the database, field and criteria arguments to function properly.