This page isn't translated yet, so its text is in English. Function names and formulas are shown in your Excel language.
Excel function · Adding up
SOMME.SI.ENS(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
=SOMME.SI.ENS(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?
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Category | Month | Amount | Food in Jan | |
| 2 | Food | Jan | 18 | 27 | |
| 3 | Food | Feb | 22 | ||
| 4 | Train | Jan | 25 | ||
| 5 | Food | Jan | 9 | ||
| 6 | Hotel | Feb | 90 |
The formula in E2:
=SOMME.SI.ENS(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
SUMIForder and putting the sum range last. InSUMIFSit always comes first. - Expecting either/or logic. Every pair must match; to add food or train, add two
SUMIFSresults 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 language | Function name | Separator |
|---|---|---|
| English | SUMIFS | , |
| Deutsch | SUMMEWENNS | ; |
| Français | SOMME.SI.ENS | ; |
| Español (España) | SUMAR.SI.CONJUNTO | ; |
| Español (México) | SUMAR.SI.CONJUNTO | , |
| 日本語 | SUMIFS | , |
| 한국어 | SUMIFS | , |
| 繁體中文 | SUMIFS | , |
| ไทย | SUMIFS | , |
| ខ្មែរ | SUMIFS | , |
| Tiếng Việt | SUMIFS | ; |