Database function

DPRODUCT function

Multiplies the values in one column of a list for the records that match the criteria, e.g. to compound yearly growth factors.

Available in All versions of Excel, including Microsoft 365 and Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

DPRODUCT(database, field, criteria)
ArgumentWhat it means
databaseRequiredThe list including its header row.
fieldRequiredThe column whose values are multiplied, as a header in quotes or a column number.
criteriaRequiredThe criteria range.

Returns: The product of the matching numbers.

How DPRODUCT works

DPRODUCT multiplies, rather than adds, the values of the records that meet your conditions. Multiplication is the right operation whenever values are factors that compound: yearly growth factors of an investment, price indexes, survival or yield rates across production steps. Multiplying 1.05 × 1.08 × 1.02 gives the total growth over three years in one number.

It is one of the least used D-functions, simply because few business columns need multiplying. When you do need it, it saves building a helper column or an array formula such as PRODUCT(IF(...)). Store growth as factors (1.05 for +5%) rather than percentages, or the product will be meaningless.

Examples

1Total growth of fund Alpha

E2fx=DPRODUCT(A1:C7, "Growth factor", A9:A10)
ABCDE
1FundYearGrowth factor
2Alpha20231.051.1567
3Beta20230.97
4Alpha20241.08
5Beta20241.11
6Alpha20251.02
7Beta20251.04
8
9Fund
10Alpha

Result: 1.1567

Alpha's factors are 1.05, 1.08 and 1.02. Multiplied: 1.15668, shown here with four decimals as 1.1567 — the fund grew about 15.7% over three years.

2Fund Beta from 2024 onwards

E2fx=DPRODUCT(A1:C7, 3, A9:B10)
ABCDE
1FundYearGrowth factor
2Alpha20231.051.1544
3Beta20230.97
4Alpha20241.08
5Beta20241.11
6Alpha20251.02
7Beta20251.04
8
9FundYear
10Beta>=2024

Result: 1.1544

Only Beta's 2024 (1.11) and 2025 (1.04) rows meet both conditions: 1.11 × 1.04 = 1.1544, displayed as 1.1544 with four decimals.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!The field name is not a header in the list.Use the exact header or a column number.
0 or unexpected resultNo record matches, or growth was entered as percentages (5%) instead of factors (1.05).Check the criteria and convert percentages with 1+rate.

Tips

  • Subtract 1 from the result and format as a percentage to show total growth: =DPRODUCT(...)-1.
  • For the average yearly growth, take the n-th root: =DPRODUCT(...)^(1/3)-1 for three years.

Google Sheets

DPRODUCT also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

DPRODUCT in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechDSOUČIN
DanishDPRODUKT
DutchDBPRODUCT
FinnishTTULO
FrenchBDPRODUIT
GermanDBPRODUKT
HungarianAB.SZORZAT
ItalianDB.PRODOTTO
Norwegian (Bokmål)DPRODUKT
PolishBD.ILOCZYN
Portuguese (Brazil)BDMULTIPL
Portuguese (Portugal)BDMULTIPL
RussianБДПРОИЗВЕД
SpanishBDPRODUCTO
SwedishDPRODUKT
TurkishVSEÇÇARP