
Use the DMAX function to find the most
expensive product in a category
This tip shows how to determine the most expensive product in a
list specified by a category using the DMAX function. This function
returns the largest number in a column of a list or database that
matches specified conditions.
DMAX(database, field, criteria)
database: The range of cells in the list or database. The first
row of the list contains column headings.
field: Indicates the column to use in the function.
criteria: The range of cells containing the specified conditions.
4
To find the most expensive vegetable:
1. Copy the range A1:E1.
2. Select cell A14 and press <Ctrl+V>.
3.