Skip to content

Excel function guide · Math & rounding

SUMPRODUCT function in Excel

SUMPRODUCT multiplies matching items in two or more ranges and adds up the results, for example units × price on every row for total revenue, without a helper column. Multiplying by a condition such as (D2:D5="North") makes it a conditional total.

Syntax

=SUMPRODUCT(array1, [array2], …)
=SUMPRODUCT((condition_range="value")*array1*array2)
ArgumentRequired?What it means
array1RequiredThe first range (or a calculation that produces one).
array2, …OptionalMore ranges of the same size. Items in the same position are multiplied, then all the products are added.

SUMPRODUCT examples

Every example uses this small table. The results are what Excel shows in the cell.

ABCD
1ProductUnitsPriceRegion
2Desk lamp12039North
3Office chair35240South
4Monitor arm6485North
5Webcam8865South
  1. 1. Total revenue

    =SUMPRODUCT(B2:B5, C2:C5)

    Result: 24,240

    120×39 + 35×240 + 64×85 + 88×65, without a revenue column.

  2. 2. With a condition

    =SUMPRODUCT((D2:D5="North")*B2:B5*C2:C5)

    Result: 10,120

    The comparison gives TRUE or FALSE per row; multiplying turns them into 1 or 0, so only North rows count: 4,680 + 5,440.

  3. 3. A number condition

    =SUMPRODUCT((B2:B5>50)*B2:B5*C2:C5)

    Result: 15,840

    Revenue from lines of more than 50 units: the office chair line (35 units) is left out.

Try it now

Practise SUMPRODUCT in a live sheet.

Type each formula yourself. Answers are checked by the same engine as the full course. No account needed.

Try it · SUMPRODUCT
0 XP
F2
A
B
C
D
E
F
1
Product
Units
Price
Region
Question
Answer
2
Desk lamp
120
39
North
Total revenue
3
Office chair
35
240
South
South revenue
4
Monitor arm
64
85
North
South units
5
Webcam
88
65
South
6
7
8
Double-click or start typing to edit

Step 1 of 3

In F2, calculate total revenue (Units × Price on every row, added up) with one SUMPRODUCT.

Common SUMPRODUCT mistakes

Practise this in Excel Quest

ROUND, ROUNDUP & ROUNDDOWN Members

Course 2 · Essential Functions · 9 min

Set clean prices, ship whole boxes and quote round numbers — choosing the right rounding for each job. SUMPRODUCT appears in the ROUND, ROUNDUP and ROUNDDOWN lesson, where you total an order with it and round the result for a quote.

This lesson is included in Formula Quest memberships. A free account starts you on the free lessons of the Excel Quest curriculum.

Related functions

All Excel function guides