New: ready-to-use spreadsheet templatesExplore the collection  →
Home/Formulas/SUMPRODUCT
MATH & AGGREGATION · GOOGLE SHEETS

SUMPRODUCT
multiply corresponding values and add the products.

Use SUMPRODUCT to calculate quantity multiplied by unit price. This guide shows the exact structure, a working example and the mistakes most likely to break it.

JosephineVerified by JosephineReviewed July 25, 2026
THE FORMULA=SUMPRODUCT(array1, [array2, …])
A

array1first set of values

B

array2optional corresponding values

TRY IT YOURSELF

Change the sheet.
Watch the answer update.

Edit any highlighted cell below. The example recalculates immediately.

LIVE PLAYGROUND=SUMPRODUCT(B2:B5,C2:C5)
fx=SUMPRODUCT(B2:B5,C2:C5)
A · QUANTITYB · UNIT PRICE
2
3
4
5
RESULT795Updates live

Try changing a value above. This example runs entirely in your browser.

IN PLAIN ENGLISH

How the formula
thinks.

  1. 01

    array1first set of values

  2. 02

    array2optional corresponding values

COMMON FIXES

When SUMPRODUCT
doesn’t behave.

WRONG RESULT

Wrong result

Check that every range starts and ends on the same rows, and that numbers are stored as numbers.

FORMULA PARSE ERROR

Formula parse error

Check commas, quotation marks and closing parentheses. Your locale may use semicolons instead of commas.

UNEXPECTED BLANKS

Unexpected blanks

Test the source cells for hidden spaces, empty strings and inconsistent data types.

fxNeed help with SUMPRODUCT?Fix my formula →