SUMPRODUCT vs SUMIFS: Which Should You Use?
By ExcelReady TeamUpdated 7 min read
The short answer
Use SUMIFS for everyday conditional totals, such as sales for one region: it is easier to read, ignores text and is fast on big data. Use SUMPRODUCT when you must multiply columns before adding (units times price), apply a function to the range (such as MONTH), or combine OR conditions in one formula.
Key takeaways
- SUMIFS adds one existing column of numbers where every condition is true.
- SUMPRODUCT multiplies arrays row by row and adds the results, so it can total a calculation you never stored.
- SUMIFS supports wildcards and operators like ">=100"; SUMPRODUCT uses tests like (A2:A7="North") instead.
- SUMPRODUCT can test a calculated value, such as MONTH(dates)=1; SUMIFS can only test the cells as they are.
- Both work in every Excel version, so pick on clarity and the task, not compatibility.
On this page+
The short answer to SUMPRODUCT vs SUMIFS: use SUMIFS for ordinary conditional totals, and use SUMPRODUCT when the total needs a calculation first, such as units times price, or a test SUMIFS can't express. SUMIFS is easier to read and faster; SUMPRODUCT is more flexible. This comparison is for anyone who knows SUMIFS and keeps seeing SUMPRODUCT in other people's files or test answers.
SUMPRODUCT vs SUMIFS at a glance#
SUMIFS adds a column with conditions. SUMPRODUCT multiplies arrays and adds the results, and conditions are just one more array.
| Feature | SUMIFS | SUMPRODUCT |
|---|---|---|
| Syntax | =SUMIFS(sum_range, range1, criteria1, ...) | =SUMPRODUCT(array1, [array2], ...) |
| Main job | Add numbers that match conditions | Multiply row by row, then add |
| Conditions | Pairs of range and criteria | Tests in parentheses, such as (A2:A7="North") |
| Multiply columns first | No (needs a helper column) | Yes |
| OR logic | Add two SUMIFS together | + between tests |
| Test a calculated value (e.g. MONTH) | No | Yes |
Wildcards (*, ?) | Yes | No (needs other functions) |
| Text in the numbers | Ignored | #VALUE! when multiplied with * |
| Speed on large data | Fast | Slower |
| Excel versions | Excel 2007 and later | All versions |
How each function works#
SUMIFS takes the range to add first, then pairs of "where to check" and "what to match". A row is added only if it matches every pair. The SUMIFS function guide covers the criteria rules, such as ">=100" and "<>Closed".
SUMPRODUCT takes arrays of the same size, multiplies them position by position, and adds the products. =SUMPRODUCT(C2:C7,D2:D7) works out C2×D2 + C3×D3 + … + C7×D7.
The trick for conditions: a test like (A2:A7="North") returns TRUE or FALSE for each row. When you multiply it, TRUE acts as 1 and FALSE as 0, so non-matching rows become zero. Our SUMPRODUCT guide explains the multiply-and-add idea step by step.
The same totals, side by side#
The clearest way to compare them is to answer the same questions on the same data:
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Region | Product | Units | Price |
| 2 | North | Laptop | 3 | 900 |
| 3 | South | Laptop | 2 | 900 |
| 4 | North | Monitor | 5 | 250 |
| 5 | East | Monitor | 4 | 250 |
| 6 | North | Keyboard | 10 | 45 |
| 7 | South | Keyboard | 6 | 45 |
Task 1: total units for North#
Both work, and SUMIFS is clearer:
=SUMIFS(C2:C7,A2:A7,"North")
=SUMPRODUCT((A2:A7="North")*C2:C7)Both return 18 (3 + 5 + 10).
Task 2: total revenue for North#
There is no revenue column, so revenue must be units × price. SUMIFS can't multiply, so you first add a helper column E with =C2*D2 filled down. SUMPRODUCT does it in one formula:
=SUMIFS(E2:E7,A2:A7,"North")
=SUMPRODUCT((A2:A7="North")*C2:C7*D2:D7)Both return 4,400 (2,700 + 1,250 + 450). The helper column is easier to check, and you can see each row's revenue. SUMPRODUCT keeps the sheet tidy. Without conditions, =SUMPRODUCT(C2:C7,D2:D7) gives total revenue of 7,470.
Task 3: units for North or South (OR logic)#
SUMIFS conditions are always AND, so for OR you add two SUMIFS. In SUMPRODUCT, adding tests with + means OR:
=SUMIFS(C2:C7,A2:A7,"North")+SUMIFS(C2:C7,A2:A7,"South")
=SUMPRODUCT(((A2:A7="North")+(A2:A7="South"))*C2:C7)Both return 26. This + trick is safe here because a row can't be North and South at once. If two OR tests can both be true, wrap them as ((test1)+(test2)>0) so a row isn't counted twice. SUMIFS with OR logic shows more patterns.
Task 4: rows where a calculation passes a test#
Suppose you want revenue only from lines worth more than 1,000. SUMIFS can only test cells that already exist. SUMPRODUCT can test a calculation:
=SUMPRODUCT((C2:C7*D2:D7>1000)*C2:C7*D2:D7)The result is 5,750 (2,700 + 1,800 + 1,250). The same idea works on dates: (MONTH(A2:A20)=1) picks January rows, which SUMIFS can't do without a date range.
Task 5: counting with SUMPRODUCT#
SUMPRODUCT can also count, because adding up 1s and 0s is counting. These both return 3, the number of North rows:
=COUNTIFS(A2:A7,"North")
=SUMPRODUCT(--(A2:A7="North"))The double minus -- turns TRUE and FALSE into 1 and 0. You will see this form in older workbooks. For a plain count, COUNTIFS is clearer; COUNTIF vs COUNTIFS compares the counting functions.
Is SUMPRODUCT slower than SUMIFS?#
On large data, usually yes. SUMIFS is built for one job and handles criteria efficiently. SUMPRODUCT works through every cell of every array you give it, including the calculations inside the parentheses, so long ranges and many SUMPRODUCT formulas add up.
For a few hundred or a few thousand rows, you won't notice the difference. If a workbook with tens of thousands of rows and dozens of SUMPRODUCT formulas feels slow, the usual fix is a helper column plus SUMIFS, or a pivot table. Pivot table vs SUMIFS compares those two for reports.
When to use SUMIFS#
Use SUMIFS whenever you are adding up one column with one or more conditions. It is the better choice when:
- The numbers already exist in a column, such as an Amount or Hours column.
- Other people will read the file. Admin and HR reports are full of SUMIFS because the shape is easy to follow. See Excel skills for admin and office jobs and Excel skills for HR and recruiting.
- You need wildcards or operators, such as
"*board"or">=250".=SUMIFS(C2:C7,B2:B7,"*board")returns 16 keyboard units. - The data is large. SUMIFS is usually faster than array maths.
- A job test asks for a conditional total. SUMIFS is what graders expect.
When to use SUMPRODUCT#
Use SUMPRODUCT when the total needs work done to the data before adding. It is the better choice when:
- You must multiply columns first, such as units × price or hours × rate, and you don't want a helper column.
- You need OR logic in one formula.
- You need to test a calculated value, such as the month or year of a date, or a line total.
- You need a weighted average:
=SUMPRODUCT(weights,scores)/SUM(weights). See how to calculate a weighted average.
Common mistakes with SUMIFS and SUMPRODUCT#
Most problems come from argument order and range sizes:
- Putting the sum range last in SUMIFS. In SUMIF it goes last; in SUMIFS it goes first. SUMIF vs SUMIFS explains the difference.
- Ranges of different sizes. Both functions need every range the same height; otherwise both return #VALUE!.
- Using AND() inside SUMPRODUCT.
AND(A2:A7="North",B2:B7="Laptop")returns one TRUE or FALSE for the whole range. Multiply the tests instead:(A2:A7="North")*(B2:B7="Laptop"). - Forgetting the parentheses around a test. Write
(A2:A7="North")*C2:C7, notA2:A7="North"*C2:C7, which compares against a multiplication. - Text in a number column. SUMIFS skips it, but SUMPRODUCT with
*returns #VALUE!. Fix the data; numbers stored as text shows how. - Whole-column ranges in SUMPRODUCT.
A:Amakes it process every row of the sheet, which slows the workbook. Use the actual data range or a table.
If you're new to formulas in general, start with how to write your first Excel formula; for counting instead of adding, see COUNTIF vs COUNTIFS.
Our recommendation#
Reach for SUMIFS first. It covers most conditional totals, it is faster, and anyone who reads your sheet will understand it. A helper column plus SUMIFS is a perfectly professional answer, and it is easier to check.
Switch to SUMPRODUCT when SUMIFS can't express the question: multiplying columns, OR conditions in one cell, or tests on calculated values like months. Learn to read it too, because you will meet it in older workbooks built before FILTER and dynamic arrays. For pulling out the matching rows rather than totalling them, see XLOOKUP vs FILTER.
In short: SUMIFS for adding a column with conditions, SUMPRODUCT for anything that needs maths first.
Practise it#
Try the revenue-by-region SUMPRODUCT in the exercise on this page. Then build multi-condition totals in the COUNTIFS and SUMIFS lesson, and if ranges still feel new, warm up with the SUM and AutoSum lesson.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
There is no revenue column, only Units (C2:C7) and Price (D2:D7). In G2, use SUMPRODUCT to find the total revenue for the North region (A2:A7) in one formula.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Price | |||||||
| 2 | North revenue | |||||||
| 3 | ||||||||
| 4 | ||||||||
| 5 | ||||||||
| 6 | ||||||||
| 7 | ||||||||
| 8 | ||||||||
| 9 | ||||||||
| 10 |
Tip: Multiply three things inside SUMPRODUCT: the test (A2:A7="North") in parentheses, the units and the prices. The result is 4,400.
Practise this in a lesson
Frequently asked questions
Is SUMPRODUCT better than SUMIFS?
Not in general. SUMIFS is simpler and faster for adding a column with conditions. SUMPRODUCT is better when you need to multiply columns or test calculated values, which SUMIFS can't do.
Can SUMIFS multiply two columns?
No. SUMIFS can only add one existing range. Either add a helper column, such as =C2*D2, and SUMIFS that, or use SUMPRODUCT to multiply and add in one step.
How do I write SUMPRODUCT with a condition?
Put the condition in parentheses and multiply it by the numbers: =SUMPRODUCT((A2:A7="North")C2:C7D2:D7). Each TRUE counts as 1 and each FALSE as 0, so only matching rows are added.
Why does SUMPRODUCT return #VALUE!?
The usual causes are ranges of different sizes, or text in a column you multiply with *. Make every range the same height and clean the text out of number columns.
Do I need Ctrl+Shift+Enter for SUMPRODUCT?
No. SUMPRODUCT handles arrays by itself in every version of Excel, which is one reason it was popular before dynamic arrays arrived.