DPRODUCT function in Excel
If the PRODUCT () function only helps you multiply values, then the DPRODUCT () function helps you multiply values according to the specified conditions.
The following article describes the syntax and usage of the DPRODUCT () function in Excel.
Description
The DPRODUCT () function returns the value of the multiplication of values in a column of a list or database under a specified condition.
Syntax
= DPRODUCT (database, field, criteria)
Inside:
- database: is a series of cells that make up a list or database including data to be processed by DPRODUCT () including field names (column titles).
- field: the field (column) of data used in the function. You can write text as the column name enclosed in quotation marks (eg "Age", "Salary"), the field can also be a number representing the position of the column (like 1 for the first column, 2 for the second column .) or you can enter the name of the cell directly containing the column header (A1, A5 .).
- criteria: is the range of cells that contain conditions, you can use any range for criteria but it must contain at least one column header and a cell below that contains conditions.
Note
- You should set the criteria range on the worksheet so that when adding data, the range of conditions does not change.
- The scope of the conditions that need to be separated is not inserted into the list or database to be processed.
- Criteria must contain at least column headers and a cell containing conditions under column headers.
For example
Calculate the product of the numbers in the Value column with STT <= 4.
Create criteria:
Apply DPRODUCT (): = DPRODUCT (C8: D14, D8, C5: C6)
C8: D14 is a database table that contains column headings.
D8 is the name of the column heading to calculate.
C5: C6 is the criteria condition range.
We will get the following result:
Above the article has introduced specific syntax and examples of using DPRODUCT () function in Excel. Depending on the requirements of each problem, you apply the function accordingly. Good luck!
You should read it
- Basic Excel functions that anyone must know
- How to use Hlookup function on Excel
- How to use the SUM function to calculate totals in Excel
- How to use the LEN function in Excel
- How to use COUNTIF function on Excel
- How to use the MOD function and QUOTIENT function in Excel
- How to use MID functions to get strings in Excel
- How to use Excel's VALUE function
- How to use the WRAPROWS function in Excel
- How to use the IFS function in Excel 2016
- How to use the NPER function in Excel to plan loans and savings
- How to use the function to delete spaces in Excel
Maybe you are interested
Instructions for quickly aligning Excel printed pages, printing to fit the paper, without losing columns
Excel - Convert columns to rows in Excel
How to delete rows and columns in Excel with mouse or key
Instructions on how to break columns in Word simply and quickly
Column order in Excel is reversed, why and how to handle it?
Excel does not allow inserting additional columns and rows [FIXED]