How to Use DPRODUCT Function in Excel (with Examples & Tips)
Learn how to use the DPRODUCT function in Excel to multiply values in a database that match specific criteria. Short and clear examples included.
Hello everyone! Today we will look at the DPRODUCT() function in Excel. It is a powerful "Database" function that allows you to multiply values in a column, but only if they match the specific criteria you set!
🛠️ What is the DPRODUCT Function?
The DPRODUCT function multiplies the numbers in a specific column (field) of a database (table) that match conditions you specify in a criteria range.
If you've ever wanted to do a "PRODUCTIF" (which doesn't exist in standard Excel!), DPRODUCT is exactly what you need.
Formula Syntax:
=DPRODUCT(database, field, criteria)
database(Required): The range of cells that makes up your table, including the column headers (e.g.,A1:C10).field(Required): The column you want to multiply. You can type the column header name in quotes (e.g.,"Qty") or the column number (e.g.,3for the 3rd column).criteria(Required): The range of cells that contains your conditions. It must include a column header and at least one cell below it for the condition.
📊 Short & Clear Example
Imagine you have a small table of items, categories, and quantities:
| A | B | C | |
|---|---|---|---|
| 1 | Item | Category | Qty |
| 2 | Apple | Fruit | 2 |
| 3 | Banana | Fruit | 5 |
| 4 | Carrot | Veggie | 3 |
| 5 | Apple | Fruit | 4 |
Setting up Criteria (E1:E2):
In E1, type Category (The Header).
In E2, type Fruit (The Condition).
The Formula:
=DPRODUCT(A1:C5, "Qty", E1:E2)
- Result:
40 - Why? It looks at the "Category" column and finds all "Fruit". The Fruit quantities are
2,5, and4. It then multiplies them together:2 * 5 * 4 = 40.
💡 Easy Pro Tips
- Multiple Criteria (AND): To check multiple conditions at the same time, place them side-by-side in your criteria range. (e.g.,
Category = FruitANDItem = Apple). - Multiple Criteria (OR): To check conditions where either can be true, place them on top of each other in the criteria range.
- Keep Headers Identical: Your criteria headers must exactly match the headers in your database range, otherwise
DPRODUCTwill not work!
📚 Useful Resources
Related Tutorials
Opens in new tab ↗How to Use FIXED Function in Excel (with Examples & Tips)
Learn how to use the FIXED function in Excel to round numbers and convert them to text. Short and clear examples included.
How to Use DOLLAR Function in Excel (with Examples & Tips)
Learn how to use the DOLLAR function in Excel to format numbers as text with currency symbols and decimals. Step-by-step examples and pro tips included.
How to Use PPMT Function in Excel (Find Principal Payment)
Learn how to use PPMT function in Excel to see exactly how much money pays off your loan each month! Simple and easy guide.