Excel DPRODUCT Function
The Excel DPRODUCT function multiplies the values in a field of records in a list or database that matches the specific criteria.
Syntax
=DPRODUCT(database, field, criteria)
Arguments
- database (required): The range of cells that makes up the database. The first row of the database should be the column headers.
- field (required): The column you will retrieve the product of values from. It can be entered as a column label or index number:
- Column label: The column label (column header) needs to be entered between double quotation marks, such as “quantity”.
- Index number: The number that represents the position of the column in the database, from which you will return the product of values that match the specific criteria. For example, 1 indicates the first column, 2 indicates the second column, and so on.
- criteria (required): The range of cells that contains the criteria. The first row of this criteria range should be the column headers.
Return Value
The DPRODUCT function returns a numeric value.
Function Notes
- You can replace the snippet “quantity” in the formula with the relative index number 4 since the Quantity column is the 4th column in the database: =DPRODUCT(B3:F14,4,H3:J5).
- You can use any range for the criteria argument, but it must include at least one column header and at least one cell value below the column header for specifying the condition.
- In case you need to add new information to the database in the future, do not place the criteria range below it. Since Excel cannot add the new information if the rows below the database are not blank.
- The headers of database and criteria ranges must match with each other.
- The function is not case-sensitive. To make the formula case-sensitive, you can add the EXACT function with the help of MATCH: =DPRODUCT(B3:F14,MATCH(TRUE,EXACT("Quantity",B3:F3),0),H3:J5).
Example
As the picture shown below, to get the product of quantities that meet the two sets of criteria: Item=Washer, Store=B; Item=TV, Store=C, Quantity>25, please copy or enter the formula below in a blank cell, and press Enter to get the result:
=DPRODUCT(B3:F14,"quantity",H3:J5)
Related functions
The Excel DAEVARAGE function returns the average of values in a field of records in a list or database that match the specific criteria.
The Excel DGET function returns a single value in a field of records in a list or database that matches the specific criteria.
The Excel DMAX function returns the largest number in a field of records in a list or database that matches the specific criteria.
The Excel DMIN function returns the smallest number in a field of records in a list or database that matches the specific criteria.
The Excel DSUM function returns the sum of values in a field of records in a list or database that match the specific criteria.
The Best Office Productivity Tools
Kutools for Excel - Helps You To Stand Out From Crowd
Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)
- One second to switch between dozens of open documents!
- Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
- Increases your productivity by 50% when viewing and editing multiple documents.
- Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
