← All comparisons

SUM vs SUMPRODUCT: when the extra power is worth it

SUM adds up numbers. SUMPRODUCT multiplies corresponding values across ranges and THEN adds — which quietly makes it a Swiss-army knife for weighted totals and array-based conditional sums that plain SUM (and even SUMIFS) can't express. The trade-off is speed: SUMPRODUCT does array work, so it's heavier on big ranges.

The differences at a glance

SUMSUMPRODUCT
Adds a list of numbersYes — its whole job, fastWorks (single range) but overkill
Multiply-then-sum (qty x price)No — needs a helper columnSUMPRODUCT(qty, price) in one cell
Weighted averageNoSUMPRODUCT(values, weights)/SUM(weights)
Conditional sum with computed testsNoSUMPRODUCT((MONTH(dates)=7)*amounts) etc.
OR conditions / overlap-safeNoYes, via array arithmetic
Speed on large rangesOptimized, cheapArray evaluation — noticeably heavier
CompatibilityUniversalUniversal (both verified in every version we test)

Which should you use?

Compatibility (from executed tests)

Both execute identically in every version of Excel, Google Sheets, and LibreOffice we test — including SUMPRODUCT's treatment of TRUE/FALSE arrays as 1/0 (whether via multiplication or a double-negative --). The choice is capability and speed, not compatibility. For purely conditional sums, SUMIF/SUMIFS are the lighter tool; see SUMIF vs SUMPRODUCT.

Example formulas

Plain total=SUM(A2:A100)
Order total (qty x price)=SUMPRODUCT(B2:B100,C2:C100)
Weighted average=SUMPRODUCT(A2:A10,B2:B10)/SUM(B2:B10)

Full per-version details on each function page: SUM · SUMPRODUCT.