ExcelUnpackUnpack Excel, one formula at a time.
Log inSign up

Lesson 24 · Conditional sums

SUMPRODUCT in Excel

SUMPRODUCT multiplies two lists row by row, then adds the results. =SUMPRODUCT(B2:B6,C2:C6) works out the total cost of every item in one formula.

Practice this lesson →Pro lesson. The first 4 lessons are free.

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.

ABCD
1ItemPriceQty
2Pens$1.2510Total cost
3Paper$4.003First 3 items
4Glue$2.502
5Tape$3.004Last 2 items
6Ruler$1.205

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.

SUMPRODUCT in Excel: how it works, with examples · ExcelUnpack