# SUMIF

## Content

This function adds the cells using the given criteria.

## Syntax

`SUMIF(array, condition, [sumrange])`

## Arguments

This function has these arguments:

| Argument | Description |
| -------- | ----------- |
| *array* | [Required] Range of cells to check; each cell in the array can be a double-precision floating-point value or an integer value |
| *condition* | [Required] Condition that determines which cells are added, as a text, number, or expression |
| *sumrange* | [Optional] Range of cells to add; if omitted, then all the cells in the array are added |

## Examples

`SUMIF(A1:B7,">150",C1:C11)`
`SUMIF(A1:A9,">150")`