Returns a conditional sum across a range. Make a copyExamples
Sample Usage
SUMIF[A1:A10,">20"]
SUMIF[A1:A10,"Paid",B1:B10]
Syntax
SUMIF[range, criterion, [sum_range]]
range
- The range which is tested againstcriterion
.-
criterion
- The pattern or test to apply torange
.If
range
contains text to check against,criterion
must be a string.criterion
can contain wildcards including?
to match any single character or*
to match zero or more contiguous characters. To match an actual question mark or asterisk, prefix the character with the tilde [~
] character [i.e.~?
and~*
]. A string criterion must be enclosed in quotation marks. Each cell inrange
is then checked againstcriterion
for equality [or match, if wildcards are used].If
range
contains numbers to check against,criterion
may be either a string or a number. If a number is provided, each cell inrange
is checked for equality withcriterion
. Otherwise,criterion
may be a string containing a number [which also checks for equality], or a number prefixed with any of the following operators:=
[checks for equality],>
[checks that the range cell value is greater than the criterion value], or