FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

SUMPRODUCT in Google Sheets

SUMPRODUCT works on arrays natively in Google Sheets, so it needs neither ARRAYFORMULA nor a special key combination.

Syntax (same in Google Sheets)

SUMPRODUCT(array1, [array2], …)

In Sheets, Ctrl+Shift+Enter wraps a formula in ARRAYFORMULA, but SUMPRODUCT does not need it.

For a fuller explanation of the arguments and common errors, see the SUMPRODUCT Excel guide.

Worked examples in Google Sheets

Order total

AB
1QtyPrice
2210
335
4140

Formula: D2: =SUMPRODUCT(A2:A4,B2:B4)

Result: 75

2×10 + 3×5 + 1×40 = 75.

Weighted score

AB
1ScoreWeight
2900.5
3800.3
4700.2

Formula: D2: =SUMPRODUCT(A2:A4,B2:B4)/SUM(B2:B4)

Result: 83

Dividing by the total weight gives the weighted average.

Conditional sum

ABC
1RegionRepAmount
2EastAna1200
3WestBen850
4EastCara430
5NorthDan970
6WestEli1500
7EastAna610

Formula: E2: =SUMPRODUCT((A2:A7="East")*C2:C7)

Result: 2240

The comparison gives TRUE or FALSE per row; multiplying turns it into 1 or 0, so only East amounts survive.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =SUMPRODUCT(C2:C7,D2:D7)

Example spreadsheet for SUMPRODUCT
ABCDEF
1RegionProductUnitsPriceResult
2EastPen1202.52885
3WestPen802.5
4EastBook4512
5NorthBook6012
6WestLamp3025
7EastLamp1525
Result in F2: 2885
Practice this in a lesson: SUMPRODUCT

Frequently asked questions

Do I need ARRAYFORMULA around SUMPRODUCT in Google Sheets?
No. SUMPRODUCT already evaluates its arguments as arrays, including conditions such as (A2:A7="East"), so you can use it as it is shown here.

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.