Math & Trig

SUMPRODUCT Formula

SUMPRODUCT multiplies corresponding elements across arrays and then sums the results. Beyond simple array multiplication, it is one of the most versatile functions for performing conditional calculations without helper columns — counting with multiple criteria, weighted averages, and complex conditional sums that SUMIF cannot handle.

Syntax

SUMPRODUCT(array1, [array2, ...])
ParameterDescription
array1 Parameter of the SUMPRODUCT function.
[array2 (Optional.) Parameter of the SUMPRODUCT function.
...] Parameter of the SUMPRODUCT function.
Try SUMPRODUCT in Viztab — free, no signup

Examples

ABC
1SubjectScoreCredits
2Math904
3English853
4Science784
5History923

Weighted average (e.g., grade calculation)

Formula
=SUMPRODUCT(B2:B5, C2:C5)/SUM(C2:C5)
Returns: 85.7 — weighted average where B has scores and C has credit hours/weights

Count with multiple conditions

Formula
=SUMPRODUCT((A2:A100="East")*(B2:B100="Shipped"))
Returns: 14 — counts rows where region is "East" AND status is "Shipped"

Conditional sum with multiple criteria

Formula
=SUMPRODUCT((A2:A100="East")*(B2:B100>1000)*C2:C100)
Returns: 42,500 — sums column C where region is East AND column B exceeds 1000

Common Errors

#VALUE!

The arrays have different dimensions. All arrays in SUMPRODUCT must have the same number of rows and columns.

#VALUE!

One of the arrays contains text in cells that need to be multiplied. Non-numeric values cause errors when multiplied.

Tips

Multi-criteria counting

SUMPRODUCT((cond1)*(cond2)) works like COUNTIFS but with more flexibility — you can use OR with +: (cond1)+(cond2)>0.

No Ctrl+Shift+Enter needed

Unlike array formulas, SUMPRODUCT handles arrays natively. You do not need to press Ctrl+Shift+Enter.

Boolean multiplication

TRUE*TRUE=1, TRUE*FALSE=0. This is why (A1="Yes")*(B1>10) works as AND logic in SUMPRODUCT.

Try SUMPRODUCT in Viztab

Import your data and use SUMPRODUCT with 370+ other formulas. No signup required.

Open Viztab

Related Formulas