Returns the sum of the given numbers based on a specified condition.
Syntax
test_range: The range to test. Eg., A2:A8
condition: The condition may be:
A number, such as 15
An expression, such as 2/3 or SQRT(A1)
A text string, such as "lockers"
Other than testing for similar values in test_range for the given condition, SUMIF function also allows the use of >, <, >=, <=, =, <> in the condition.
Remarks
If you don't remember the complete text you need to search for, use
.*
,
.?
and
/
instead.
.* - Can be used to replace any number of characters. For example.,
Zyl.*
finds
Zylker
.? - Can be used to replace a single character. For example,.,
Karthi.?
finds
Karthik
and
Karthic
Examples
|
Formula
|
Result
|
|
=SUMIF(A2:A8;"Lockers";D2:D8)
|
$44,014
|
|
=SUMIF(A2:A8;"Portable Wardrobes";B2:B8)
|
633
|
Possible Errors
|
Errors
|
Meaning
|
|
#N/A!
|
|
|
#NAME!
|
|
|
#VALUE!
|
|
|
#REF!
|
|
Similar Functions