SpreadsheetFormulas
beginnerSUMIFSUMIFS

SUMIF vs SUMIFS: The Argument-Order Trap

You total East region sales with SUMIF, then add a second condition, rearrange it into SUMIFS — and get zero or a #VALUE! error, because the two functions want their arguments in opposite orders.

Quick formula
=SUMIFS(B2:B50,A2:A50,"East",B2:B50,">1000")
Sample input
1RegionAmount
2East1200
3West800
4East450
5East2000
Result
1QuestionResult
2East total (SUMIF or SUMIFS)3650
3East over $1,000 (SUMIFS)3200

Excel & Google Sheets

=SUMIFS(B2:B50,A2:A50,"East",B2:B50,">1000")

This formula works in both Excel and Google Sheets.

How it works

SUMIF reads: where to look, what to match, what to add — =SUMIF(A2:A50,"East",B2:B50) puts the sum range last. SUMIFS reverses it: the sum range comes FIRST, followed by range/condition pairs — =SUMIFS(B2:B50,A2:A50,"East"). Both of those return the identical East total; SUMIFS just keeps accepting more pairs, and every pair must match (AND logic). The reversal exists because SUMIF's sum range is optional while SUMIFS takes unlimited pairs, but the practical effect is that copying SUMIF's order into SUMIFS sums the wrong column or errors out. Standardizing on SUMIFS for every conditional total means one argument order to remember.

B2:B50
The numbers to add — FIRST in SUMIFS, last in SUMIF.
A2:A50,"East"
First condition pair: region must equal East.
B2:B50,">1000"
Second pair: only orders over $1,000. Add more pairs as needed.

When to use it

Use it to total deals by region, invoices by customer, or hours by project — and the moment a boss adds "but only over $1,000," you just append a pair instead of rewriting.

Common mistakes

  • Porting SUMIF's argument order into SUMIFS.

    =SUMIFS(A2:A50,"East",B2:B50) follows SUMIF's order and breaks — SUMIFS wants the sum range first: =SUMIFS(B2:B50,A2:A50,"East").

  • Adding a second condition to SUMIF.

    SUMIF physically can't take two conditions. Don't nest or chain it — switch to SUMIFS and move the sum range to the front.

  • Sum range and criteria ranges of different sizes.

    =SUMIFS(B2:B50,A2:A999,"East") returns #VALUE!. Every range must span exactly the same rows.

Did this formula help?

Engine-verified against the sample data aboveLast reviewed 2026-07-08