Skip to content

Excel function · Adding up

SUMIFS

Adds up the values that meet several conditions at once.

What it does

SUMIFS adds a value only when every condition is true for its row. Each condition is a pair: a range to check and what it must match. Unlike SUMIF, the range to add comes first.

Syntax

=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)

Arguments in square brackets are optional, and … means you can add more of the same. In this Excel language, arguments are separated by ,

Arguments

sum_range
The cells to add.
criteria_range
A range to check, the same size as the sum range.
criteria
What that range must match: text in quotes, a comparison such as ">=10", or a cell.

Example

How much of the spending was food in January?

ABCDE
1CategoryMonthAmountFood in Jan
2FoodJan1827
3FoodFeb22
4TrainJan25
5FoodJan9
6HotelFeb90

The formula in E2:

=SUMIFS(C2:C6,A2:A6,"Food",B2:B6,"Jan")

Result: 27

Only rows 2 and 5 are both Food and Jan, so 18 + 9 = 27. Row 3 is food in February and row 4 is January but train, so neither counts.

Common mistakes

  • Using the SUMIF order and putting the sum range last. In SUMIFS it always comes first.
  • Expecting either/or logic. Every pair must match; to add food or train, add two SUMIFS results together.
  • Ranges of different sizes. Unlike SUMIF, this gives a #VALUE! error.

In other Excel languages

Excel translates function names, and in some languages the argument separator too. Type the name your Excel shows.

Excel languageFunction nameSeparator
EnglishSUMIFS,
DeutschSUMMEWENNS;
FrançaisSOMME.SI.ENS;
Español (España)SUMAR.SI.CONJUNTO;
Español (México)SUMAR.SI.CONJUNTO,
日本語SUMIFS,
한국어SUMIFS,
繁體中文SUMIFS,
ไทยSUMIFS,
ខ្មែរSUMIFS,
Tiếng ViệtSUMIFS;

Practise it

More from this module

All functions