Category: FUNCTION | Updated: 2026-11-22

How to Use the SUMPRODUCT Function in Google Sheets

Syntax

=SUMPRODUCT(array1, [array2, ...])
  • array1: The first array or cell range whose corresponding elements are multiplied and summed.
  • array2, … (Optional): Additional arrays or cell ranges to multiply. Must have the same number of rows and columns as array1.

Example

Calculate the total sales (“Unit Price × Quantity” summed across all products) in one step without creating a subtotal column. Enter =SUMPRODUCT(B2:B4, C2:C4) in cell D2.

Column A (Product) Column B (Unit Price) Column C (Quantity) Column D (Total Sales)
Row 1 Product Unit Price Quantity Total Sales
Row 2 Apple 150 4 =SUMPRODUCT(B2:B4, C2:C4)
Row 3 Orange 80 10 2000
Row 4 Grape 600 1 (150×4 + 80×10 + 600×1)

Common Errors and Notes

  • Range Size Mismatch: If the range sizes differ—such as B2:B4 (3 rows) and C2:C5 (4 rows)—a #VALUE! error occurs.
  • Handling Text: Text values inside an array are treated as 0 (note that if you join ranges using the * multiplication operator, text causes a #VALUE! error).

Frequently Asked Questions

Q. What causes a #VALUE! error in SUMPRODUCT?

A. It occurs when the "number of rows" or "number of columns" of the ranges passed as arguments do not match. Make sure all ranges have the exact same dimensions.

Q. Can I use SUMPRODUCT for multi-condition counting (as an alternative to COUNTIFS)?

A. Yes. By multiplying conditional expressions—such as "=SUMPRODUCT((A2:A10="Tokyo")*(B2:B10>=100))"—you can count the number of rows that meet all conditions.