মূল বিষয়বস্তুতে যান
Math & StatsAdvanced LevelAdvanced Excel (Dynamic Arrays & Automation)

How to Use SUMPRODUCT in Excel

Multiplies matching items across arrays and adds the results — a multi-condition SUM that works in every Excel version.

Direct Answer (Quick Summary)

What is SUMPRODUCT in Microsoft Excel?

SUMPRODUCT multiplies values position by position across two or more arrays, then sums the products. Written with boolean arrays it becomes a powerful conditional calculator that predates SUMIFS and still handles logic SUMIFS cannot, such as OR conditions and array math.

Pro Tip: Each boolean condition must be wrapped in parentheses and joined with * for AND, + for OR. Forgetting the parentheses is the single most common SUMPRODUCT bug.

Formula Syntax

=SUMPRODUCT(array1, array2, )

Arguments Breakdown

ArgumentRequirementPurpose & Details
array1RequiredThe first array or range. Its dimensions must match every other array.
array2OptionalThe second array. SUMPRODUCT multiplies array1 by array2 element by element, then adds the products.

When to Use SUMPRODUCT (Real-World Business Scenarios)

  • 1

    Calculating weighted totals such as quantity × rate across an invoice without adding a helper column.

  • 2

    Summing with OR logic: =SUMPRODUCT((A2:A9="North")+(A2:A9="South"),C2:C9).

  • 3

    Counting or summing across two conditions in older Excel versions that lack SUMIFS or FILTER.

Step-by-Step Practical Business Example

Suppose you have the following dataset in Excel cells A1:D4:

ProductQtyRate
Laptop255000
Mouse101200
Keyboard52500
Applied Formula:Result: 134500
=SUMPRODUCT(B2:B4,C2:C4)

How it works: Multiplies 2×55,000, 10×1,200 and 5×2,500, then adds all three products to give the invoice total of 134,500.

Common Errors & How to Fix Them

#VALUE!

Why it happens: The arrays have different dimensions, for example 5 rows against 6 rows, so Excel cannot pair them.

Fix: Make every range the same height and width, and avoid whole-column references that include a different number of used rows.

Result is 0

Why it happens: Text was used where a number was expected, or boolean conditions were written without parentheses.

Fix: Wrap each condition: =SUMPRODUCT((A2:A9="North")*1,C2:C9), and confirm the value column is numeric.

Interactive Formula Lab

Try SUMPRODUCT Live in Your Browser

No need to launch desktop Excel. Practice formulas with real-time feedback in our HyperFormula sandbox.

Open Practice Lab

Frequently Asked Questions (SUMPRODUCT)

What does the SUMPRODUCT formula do in Excel?

SUMPRODUCT multiplies values position by position across two or more arrays, then sums the products. Written with boolean arrays it becomes a powerful conditional calculator that predates SUMIFS and still handles logic SUMIFS cannot, such as OR conditions and array math.

What is the syntax for SUMPRODUCT?
=SUMPRODUCT(array1, array2, )
What are common mistakes when using SUMPRODUCT?

#VALUE!: The arrays have different dimensions, for example 5 rows against 6 rows, so Excel cannot pair them. (Make every range the same height and width, and avoid whole-column references that include a different number of used rows.) Result is 0: Text was used where a number was expected, or boolean conditions were written without parentheses. (Wrap each condition: =SUMPRODUCT((A2:A9="North")*1,C2:C9), and confirm the value column is numeric.)

Keep building your formula toolkit with these math & stats functions.

Browse all 41 Excel formulas
Ready to Master Microsoft Excel?

Master SUMPRODUCT in Advanced Excel

Learn SUMPRODUCT along with our formula library, practice files, and verifiable certificates in our complete curriculum.

Strictly necessary