If only one array is supplied, SUMPRODUCT will simply sum the items in the array.

Up to 30 ranges or arrays can be supplied.

When you first encounter SUMPRODUCT, it may seem boring, complex, and even pointless.

Classic SUMPRODUCT example

But SUMPRODUCT is an amazingly versatile function with many uses.

We need the items inarray1to be numeric, and this is where the double-negative is useful.

Once we have 1s and 0s, we can perform various operations on the arrays withBoolean logic.

Classic SUMPRODUCT example

The trick is to use Boolean logic, where OR logic is represented with addition (+).

Also, seethis example, which explains several ways to approach a problem like this.

The result is the same, but this syntax provides several advantages.

Classic SUMPRODUCT example

First, the formula is more compact, especially as the logic becomes more complex.

But the most important advantage isflexibility.

When using separate arguments, the operation is always multiplication, since SUMPRODUCT returns the sum ofproducts.

Classic SUMPRODUCT example

This limits the formula to AND logic since multiplication corresponds to addition inBoolean algebra.

With the above advantages in mind, there is one disadvantage to the abbreviated syntax.

SUMPRODUCT is programmed to ignore the errors that result from multiplying text values in arrays given asseparate arguments.

Classic SUMPRODUCT example

This can behandy in certain situations.

With the abbreviated syntax, this advantage goes away, since the multiplication happens inside a single array argument.

In this case, the normal behavior applies: text values will create #VALUE!

SUMPRODUCT function with OR logic

SeeWhy SUMPRODUCT?for more details.

Because SUMPRODUCT is built to work with arrays, it is able to perform calculations on the arrays directly.

Then you could use SUM to add up all 10 numbers.

SUMPRODUCT example - ignore empty cells

Then SUMPRODUCT will simply sum all values and return the result, with no helper column needed.

See examples below of many other ways to use SUMPRODUCT.

Using SUMPRODUCT means the formulas will work inany versionof Excelwithout special handling.

Excel formula: Count cells over n characters

InExcel 365, the formula enginehandles arrays natively.

For more details and examples, seeWhy SUMPRODUCT?

Criteria can be applied to dates, numbers, and text.

Excel formula: Sum Roman numbers

Excel formula: Count cells that contain case sensitive

Excel formula: Sum bottom n values

Excel formula: Count cells that contain odd numbers

Excel formula: Sum every nth row

Excel formula: Count cells that do not contain errors

Excel formula: Count if two criteria match

Excel formula: Count dates in given year

Excel formula: Count unique text values in a range

Excel formula: Count specific words in a range

Excel formula: Count cells equal to one of many things

Excel formula: Count cells that contain positive numbers

Excel formula: Count dates by day of week

Excel formula: All dates in chronological order

Excel COUNTIF function

Excel COUNTIFS function

Excel SUMIF function

Excel SUMIFS function

Classic SUMPRODUCT example

SUMPRODUCT function with OR logic

SUMPRODUCT example - ignore empty cells