Skip to content

Lessons in your language are coming soon. Formulas already work in your Excel language.

This page isn't translated yet, so its text is in English. Function names and formulas are shown in your Excel language.

Excel function · Adding up

SUMPRODUCT

Multiplies matching items in ranges, then adds up the results.

What it does

SUMPRODUCT takes two or more ranges of the same shape, multiplies them row by row and adds up the products. The classic use is quantity × price for a whole list in one cell, without a helper column.

Syntax

=SUMPRODUCT(array1, [array2], …)

Arguments in square brackets are optional, and … means you can add more of the same. In this Excel language, arguments are separated by ,

Arguments

array
A range of numbers. Every range must have the same number of rows and columns. Text and empty cells count as 0.

Example

A shopping basket lists quantities and prices. What does it cost?

ABC
1ItemQtyPrice
2Apples40.50
3Bread22.25
4Milk31.20
5Basket total10.10

The formula in C5:

=SUMPRODUCT(B2:B4,C2:C4)

Result: 10.10

Row by row: 4 × 0.5 = 2, 2 × 2.25 = 4.5 and 3 × 1.2 = 3.6. Together that's 10.1.

Common mistakes

  • Ranges of different sizes give a #VALUE! error. Select the same rows in every range.
  • Shifting one range by a row, for example B2:B4 with C3:C5. There's no error, but every quantity is multiplied by the wrong price.

In other Excel languages

Excel translates function names, and in some languages the argument separator too. Type the name your Excel shows.

Excel languageFunction nameSeparator
EnglishSUMPRODUCT,
DeutschSUMMENPRODUKT;
FrançaisSOMMEPROD;
Español (España)SUMAPRODUCTO;
Español (México)SUMAPRODUCTO,
日本語SUMPRODUCT,
한국어SUMPRODUCT,
繁體中文SUMPRODUCT,
ไทยSUMPRODUCT,
ខ្មែរSUMPRODUCT,
Tiếng ViệtSUMPRODUCT;

Practise it

More from this module

All functions