DPRODUCT(database, field, criteria)
=DPRODUCT(A5:E11, "Yield", A1:F3)
DPRODUCT returns the product of the values in a column that meet criteria. For example, this formula multiplies the values in the "Yield" column in the range A5:E11 that meet the criteria in the range A1:F3. This example returns 800 for the apples trees with a height between 10 and 16 feet and any pear trees with a height between 12 and 12.
=DPRODUCT(A5:E11, "Price", A1:F3)*DPRODUCT(A5:E11, "Quantity", A1:F3)
DPRODUCT can also be used to calculate the sum of products. For example, this formula returns the sum of products of the "Price" and "Quantity" columns in the range A5:E11 that meet the criteria in the range A1:F3. This example would return the sum of products of the apples trees with a height between 10 and 16 feet and any pear trees with a height between 12 and 12.
=DPRODUCT(A5:E11, "Yield", A1:F3, "Price > 10")
DPRODUCT can be used with the criteria range containing multiple criteria. For example, this formula returns the product of the values in the "Yield" column in the range A5:E11 that meet the criteria in the range A1:F3 and the criteria "Price > 10". This example would return the product of the values in the "Yield" column for apples trees with a height
The DPRODUCT function multiplies values from a field in a list or database, providing a quick and easy way to calculate results from data stored in records and fields.