formulastreak

SUMPRODUCT vs SUMIFS

Updated · Works in: all current Excel versions, Google Sheets · Every example checked before release

Short answer

Use SUMIFS for conditional totals: simpler to read and write. Use SUMPRODUCT((condition)*values) when a condition needs a calculation, such as MONTH(A2:A17)=3, or for weighted sums.

Use SUMIFS for conditional totals, and SUMPRODUCT when a condition needs a calculation SUMIFS can't do. SUMIFS takes ranges and criteria; SUMPRODUCT multiplies TRUE/FALSE conditions by the values and adds them up. Both work in every current Excel version and in Google Sheets.

SUMIFSSUMPRODUCT
ConditionsRange and criteria pairs (AND)Any expression that gives TRUE/FALSE
A calculation inside a condition (MONTH, LEFT…)NoYes
OR logicAdd two SUMIFSAdd conditions with +
Weighted sumsNoYes
Excel and Google SheetsYesYes

The same total both ways

Revenue from the North region. SUMIFS(E2:E17, B2:B17, "North") and SUMPRODUCT((B2:B17="North")*E2:E17) both give $3,744.50. In the SUMPRODUCT version, (B2:B17="North") is a column of TRUE/FALSE that becomes 1s and 0s when multiplied by the revenue.

Monthly sales by region · edit H1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultH1 = $3,744.50
ABCDEFGH
1MonthRegionProductUnitsRevenueNorth revenue$3,744.50
2Jan 2026NorthFern40$380.00
3Jan 2026NorthMonstera12$408.00
4Jan 2026SouthFern35$332.50
5Jan 2026SouthMonstera9$306.00
6Feb 2026NorthFern44$418.00
7Feb 2026NorthMonstera15$510.00
8Feb 2026SouthFern31$294.50
9Feb 2026SouthMonstera11$374.00
10Mar 2026NorthFern52$494.00
11Mar 2026NorthMonstera14$476.00
12Mar 2026SouthFern38$361.00
13Mar 2026SouthMonstera13$442.00
14Apr 2026NorthFern47$446.50
15Apr 2026NorthMonstera18$612.00
16Apr 2026SouthFern42$399.00
17Apr 2026SouthMonstera16$544.00

A condition SUMIFS can't express

March revenue, when column A holds full dates: SUMPRODUCT can apply MONTH to the whole column, SUMPRODUCT((MONTH(A2:A17)=3)*E2:E17), which gives $1,773.00. SUMIFS can't run a function on its criteria range; it needs two date criteria instead (on or after 1 March, before 1 April), which the SUMIFS dates fix shows.

Monthly sales by region · edit H1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultH1 = $1,773.00
ABCDEFGH
1MonthRegionProductUnitsRevenueMarch revenue$1,773.00
2Jan 2026NorthFern40$380.00
3Jan 2026NorthMonstera12$408.00
4Jan 2026SouthFern35$332.50
5Jan 2026SouthMonstera9$306.00
6Feb 2026NorthFern44$418.00
7Feb 2026NorthMonstera15$510.00
8Feb 2026SouthFern31$294.50
9Feb 2026SouthMonstera11$374.00
10Mar 2026NorthFern52$494.00
11Mar 2026NorthMonstera14$476.00
12Mar 2026SouthFern38$361.00
13Mar 2026SouthMonstera13$442.00
14Apr 2026NorthFern47$446.50
15Apr 2026NorthMonstera18$612.00
16Apr 2026SouthFern42$399.00
17Apr 2026SouthMonstera16$544.00

Speed and readability

SUMIFS says what it does in its arguments, so others can read it at a glance. For SUMPRODUCT, Microsoft advises against whole-column references in SUMPRODUCT for performance. SUMPRODUCT shines for weighted sums and averages: the SUMPRODUCT guide has a weighted average on a live sheet. If it shows #VALUE!, the ranges are different sizes or text crept into a multiplication.

Which should a beginner learn first?

SUMIFS: it covers most conditional totals you'll write, and its criteria rules carry over to COUNTIFS and AVERAGEIFS. Learn SUMPRODUCT once SUMIFS feels easy, for the cases above. The SUMIFS guide is the place to start.

Check yourself

One real exercise from the “Reporting patterns” unit. Checked on our server; no account needed.

Total North Monstera revenue with SUMPRODUCT, in H2.

  • Use SUMPRODUCT
Select H2 and type = to start its formula (in the cell or the formula bar)
ABCDEFGH
1MonthRegionProductUnitsRevenue
2Jan 2026NorthFern40$380.00North Monstera
3Jan 2026NorthMonstera12$408.00
4Jan 2026SouthFern35$332.50
5Jan 2026SouthMonstera9$306.00
6Feb 2026NorthFern44$418.00
7Feb 2026NorthMonstera15$510.00
8Feb 2026SouthFern31$294.50
9Feb 2026SouthMonstera11$374.00
10Mar 2026NorthFern52$494.00
11Mar 2026NorthMonstera14$476.00
12Mar 2026SouthFern38$361.00
13Mar 2026SouthMonstera13$442.00
14Apr 2026NorthFern47$446.50
15Apr 2026NorthMonstera18$612.00
16Apr 2026SouthFern42$399.00
17Apr 2026SouthMonstera16$544.00

Common mistakes

  • Ranges of different sizes inside SUMPRODUCT, which give #VALUE!.

  • Multiplying a text column directly instead of comparing it first: (B2:B17="North")*E2:E17, not B2:B17*E2:E17.

  • Reaching for SUMPRODUCT for a plain condition SUMIFS handles more clearly.

Questions

Can SUMIFS do OR conditions?+

Not in one function: add two SUMIFS together. SUMPRODUCT can add conditions instead of multiplying them, but watch for rows that match both.

Do these work in Google Sheets?+

Yes, both, with the same syntax.

Reading is step one. Now make it stick.

Practise it in a five-minute lesson on a live sheet, with instant feedback. No account needed for the free units.

Practise SUMPRODUCT in the course

Sources

Official documentation the facts on this page were checked against.