What you will learn
- Multiply two ranges row by row and add the results
How it works
=SUMPRODUCT(B2:B6,C2:C6) works out B2×C2 + B3×C3 + … + B6×C6.
Both ranges must be the same size.
Formulas at a glance
=SUMPRODUCT(B2:B6,C2:C6) | price × qty, added |
Example
Write the formula to find the total cost of everything.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Price | Qty | |
| 2 | Pens | $1.25 | 10 | Total cost |
| 3 | Paper | $4.00 | 3 | First 3 items |
| 4 | Glue | $2.50 | 2 | |
| 5 | Tape | $3.00 | 4 | Last 2 items |
| 6 | Ruler | $1.20 | 5 |
Click E2 and type =SUMPRODUCT(B2:B6,C2:C6), then press Enter.
The answer is $47.50.
When to use it
- Total cost from prices and quantities
- Total pay from hours and rates
- Weighted scores
Common mistakes
- Ranges of different sizesBoth ranges must be the same size, or you get #VALUE!.
- Using a helper column you don’t needSUMPRODUCT does the multiplying for you.
- Including the header rowStart the ranges on the first number.
Practice it on a real sheet
Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.