Order total
| A | B | |
|---|---|---|
| 1 | Qty | Price |
| 2 | 2 | 10 |
| 3 | 3 | 5 |
| 4 | 1 | 40 |
Formula: D2: =SUMPRODUCT(A2:A4,B2:B4)
Result: 75
2×10 + 3×5 + 1×40 = 75.
Sum of pairwise products.
SUMPRODUCT(array1, [array2], …)Example: =SUMPRODUCT(B2:B6,C2:C6)
Available in: All versions
SUMPRODUCT multiplies matching items in two or more ranges and adds up the products: =SUMPRODUCT(array1, array2, …). It handles weighted totals and conditional sums in one step, with no helper columns and no array-entry.
| A | B | |
|---|---|---|
| 1 | Qty | Price |
| 2 | 2 | 10 |
| 3 | 3 | 5 |
| 4 | 1 | 40 |
Formula: D2: =SUMPRODUCT(A2:A4,B2:B4)
Result: 75
2×10 + 3×5 + 1×40 = 75.
| A | B | |
|---|---|---|
| 1 | Score | Weight |
| 2 | 90 | 0.5 |
| 3 | 80 | 0.3 |
| 4 | 70 | 0.2 |
Formula: D2: =SUMPRODUCT(A2:A4,B2:B4)/SUM(B2:B4)
Result: 83
Dividing by the total weight gives the weighted average.
| A | B | C | |
|---|---|---|---|
| 1 | Region | Rep | Amount |
| 2 | East | Ana | 1200 |
| 3 | West | Ben | 850 |
| 4 | East | Cara | 430 |
| 5 | North | Dan | 970 |
| 6 | West | Eli | 1500 |
| 7 | East | Ana | 610 |
Formula: E2: =SUMPRODUCT((A2:A7="East")*C2:C7)
Result: 2240
The comparison gives TRUE or FALSE per row; multiplying turns it into 1 or 0, so only East amounts survive.
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =SUMPRODUCT(C2:C7,D2:D7)
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Region | Product | Units | Price | Result | |
| 2 | East | Pen | 120 | 2.5 | 2885 | |
| 3 | West | Pen | 80 | 2.5 | ||
| 4 | East | Book | 45 | 12 | ||
| 5 | North | Book | 60 | 12 | ||
| 6 | West | Lamp | 30 | 25 | ||
| 7 | East | Lamp | 15 | 25 |
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page