DPRODUCT
Database Functions:
Function: DPRODUCT() - Multiplies the values in a column of a list or database that match conditions that you specify.
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 | 77 |
| 10 | Apple | 8 | 9 | 6 | 45 |
+----+--------+--------+-----+-------+--------+
Criteria
+--------+--------+
| A | B |
+---+--------+--------+
| 1 | Tree | Height |
| 2 | =Apple | >10 |
+---+--------+--------+
The product of the yields of all Apple trees over 10' in the orchard
=DPRODUCT(A4:E10,"Yield",A1:B2)
DPRODUCT() Result is 140
Criteria
+--------+
| A |
+---+--------+
| 1 | Tree |
| 2 | =Apple |
+---+--------+
The product of the yields of all Apple trees in the orchard
=DPRODUCT(A4:E10,"Yield",A1:A2)
DPRODUCT() Result is 840