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

## navigate

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

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