What is the SUMIFS function?
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)SUMIFS adds the values in rows that meet every condition you give it. A row is added only if all conditions are TRUE for that row.
Unlike SUMIF, the range to add comes first. All ranges must be the same size, or SUMIFS returns #VALUE!.
Arguments
- sum_range
- The cells to add.
- criteria_range1
- The cells checked by criteria1.
- criteria1
- The condition. Type a value such as "Seoul", a comparison such as ">=20" or "<>Seoul", or a wildcard pattern such as "B*" (* for any characters, ? for one character). Text and comparisons go in double quotes.
- criteria_range2, criteria2
- More range/condition pairs. Up to 127 pairs are allowed.
SUMIFS examples
Example 1. Seoul sales with quantity 20 or more
=SUMIFS(D2:D9, A2:A9, "Seoul", C2:C9, ">=20")Rows 2 and 7 match both conditions. 45000 + 96000 = 141000.
Example 2. Everything except one branch
=SUMIFS(D2:D9, A2:A9, "<>Seoul")<> means "not equal". This adds the sales of every branch except Seoul.
Common mistakes
Using SUMIF argument order
In SUMIFS, sum_range is the first argument, not the last.
Ranges of different sizes
D2:D9 with A2:A8 returns #VALUE!. Every range must cover the same rows.
Expecting OR logic
SUMIFS joins conditions with AND. For "Seoul or Busan", add two SUMIFS together.
FAQ
- Can I use SUMIFS with just one condition?
- Yes. Many people use SUMIFS everywhere so that the argument order is always the same.