DPRODUCT(database, field, criteria)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
database:
The range of cells that contains the data you want to analyze, including the field names in the first row.
field:
The column label or index number that specifies which field (column) to perform the calculation on. This can be a text string representing the column header or a number indicating the column's position in the database.
criteria:
The range of cells that contains the conditions you want to apply to the database. This defines which records will be included in the calculation based on the specified conditions.
The DPRODUCT function in Google Sheets is a database function that multiplies the values in a specified field (column) of a database that meet specified criteria. It is particularly useful for performing calculations on a subset of data, allowing users to analyze specific segments of their data without altering the original dataset.
In simpler terms, DPRODUCT allows you to calculate the product of a set of numbers in a column based on certain conditions you define.
Imagine you are managing a sales database with product information and sales figures stored in a Google Sheets document:
| ProductID | ProductName | Price | Quantity | Category |
|---|---|---|---|---|
| 101 | Widget A | 25.00 | 3 | Electronics |
| 102 | Widget B | 30.00 | 5 | Electronics |
| 103 | Widget C | 15.00 | 2 | Home Goods |
| 104 | Widget D | 20.00 | 4 | Electronics |
You want to calculate the total revenue generated from the sales of products in the "Electronics" category.
To achieve this, you would use the DPRODUCT function as follows:
=DPRODUCT(A1:E5, "Price", F1:F2)In this formula:
A1:E5 is the range of the entire database."Price" is the field (column) for which you want to calculate the product.F1:F2 is the criteria range where you define the conditions (in this case, the category).Assuming you have the following criteria set up in cells F1 and F2:
| F1 | F2 |
|---|---|
| Category | Electronics |
When you apply the DPRODUCT formula, it will calculate the product of the prices of all products in the "Electronics" category. The output would be:
Total Revenue = Price of Widget A * Price of Widget B * Price of Widget D
Total Revenue = 25.00 * 30.00 * 20.00 = 15000.00DPRODUCT is beneficial because it allows for efficient calculations on specific subsets of data without the need for complex filtering or manual calculations. It simplifies the process of analyzing data based on specific criteria, making it easier to derive insights from your dataset.
DPRODUCT is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.
Happy spreadsheeting!
You have a table with sales data, where Column A lists product categories and Column B contains sales figures. You can use DPRODUCT to calculate the total sales for a specific category, allowing for quick analysis of performance without manual summation.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.