SUMIF function

The SUMIF function is one of the math and trigonometry functions. It is used to add all the numbers in the selected range of cells based on the specified criterion and return the result.

Syntax

SUMIF(range, criteria, [sum_range])

The SUMIF function has the following arguments:

ArgumentDescription
rangeThe selected range of cells to apply the criterion to.
criteriaThe criterion used to determine the cells to sum, a value entered manually or included into the cell you make reference to.
sum_rangeThe range of cells to sum. It is an optional argument, if omitted, the function will sum the numbers of range.
Notes

You can use wildcard characters when specifying criteria. The question mark "?" can replace any single character and the asterisk "*" can be used instead of any number of characters.

How to apply the SUMIF function.

Examples

The figure below displays the result returned by the SUMIF function.

sumif function gif

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags