# SUMIFS

math · from excel · excel: not yet compared · sheets: not yet compared

sums cells that match multiple conditions

## signature

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

returns: `number`

## arguments

- sum_range: range: required
- criteria_range1: range: required
- criteria1: any: required
- criteria_range2: range: optional, repeatable
- criteria2: any: optional, repeatable

## examples

formula and result, asserted in the engine test suite.

| formula | result | with |
| --- | --- | --- |
| `=SUMIFS(B1:B5, A1:A5, ">2")` | `30` | B1=2, B2=4, B3=6, B4=8, B5=10, A1=10, A2=20, A3=30, A4=40, A5=50 |

## related

- [ABS](https://deepcalc.com/docs/functions/abs.md): returns absolute value of a number
- [ACOS](https://deepcalc.com/docs/functions/acos.md): returns arccosine of a number
- [ACOSH](https://deepcalc.com/docs/functions/acosh.md): returns inverse hyperbolic cosine
- [ACOT](https://deepcalc.com/docs/functions/acot.md): returns the arccotangent of a number
- [ACOTH](https://deepcalc.com/docs/functions/acoth.md): returns the inverse hyperbolic cotangent
- [ADD](https://deepcalc.com/docs/functions/add.md): adds two numbers: sheets exposes the + operator as a function
- [AGGREGATE](https://deepcalc.com/docs/functions/aggregate.md): aggregates a range with a chosen function, optionally ignoring error values
- [ARABIC](https://deepcalc.com/docs/functions/arabic.md): converts roman numeral to arabic number

## navigate

- [all math functions](https://deepcalc.com/docs/functions/math-functions.md)
- [function index](https://deepcalc.com/docs/functions.md): all 602 functions
- [error values](https://deepcalc.com/docs/errors.md) · [concepts](https://deepcalc.com/docs/concepts.md) · [limits](https://deepcalc.com/docs/limits.md)
- [everything in one file](https://deepcalc.com/llms-full.txt)

source: https://deepcalc.com/docs/functions/sumifs