What it does
SUMPRODUCT multiplies arrays together and returns the sum of the products.
Syntax or pattern
=SUMPRODUCT(array1, [array2], ...)5 practical examples
Calculate weighted revenue
Multiply quantity by price and total the result.
=SUMPRODUCT(Orders[Qty],Orders[Price])Avoids helper columns for simple row-by-row math.
Weighted average
Calculate weighted average score.
=SUMPRODUCT(Scores[Score],Scores[Weight])/SUM(Scores[Weight])A classic weighted average pattern.
Conditional total
Sum amounts where region is East.
=SUMPRODUCT((Sales[Region]="East")*Sales[Amount])TRUE/FALSE tests become 1/0 values.
Count rows with two conditions
Count rows matching product and region.
=SUMPRODUCT((Sales[Product]=H2)*(Sales[Region]=H3))A flexible alternative to COUNTIFS.
Total by month
Sum amounts for one month using date tests.
=SUMPRODUCT((TEXT(Sales[Date],"yyyymm")=TEXT(H1,"yyyymm"))*Sales[Amount])Useful when dates are daily but reports are monthly.
Common mistakes to avoid
- Selecting ranges with different sizes.
- Using text values where numbers are required.
- Forgetting how blanks and hidden rows are treated.
Related Excel examples
FAQ
Can this formula use Excel Tables?
Yes. Structured references often make summary formulas easier to read.
Here are some ideas for you
Optional resources that may help if you are learning formulas, building reports, or working in spreadsheets often.
- Excel formula booksSee ideas
Practice formulas with structured examples you can keep beside your desk.
- Excel shortcut guidesSee ideas
Build speed with keyboard shortcuts for selection, formatting and navigation.
- Numeric keypadsSee ideas
Helpful if you enter many numbers on a laptop or compact keyboard.
- External monitorsSee ideas
Useful for viewing large worksheets, formulas and reference tables side by side.
- Desk notebooksSee ideas
Sketch formula logic, report ideas and table structures before building.
- Laptop standsSee ideas
Make long spreadsheet sessions more comfortable and ergonomic.
Some links in this section may be affiliate links. Choose only what is useful for your own work.