Jumlahkan sel dalam rentang yang memenuhi kriteria
=SUMIFS(sum_range, range1, criteria1, [range2], [criteria2], ...)
| Parameter | Deskripsi |
|---|---|
sum_range |
The range to be summed. |
range1 |
The first range to evaluate. |
criteria1 |
The criteria to use on range1. |
range2 |
[optional] The second range to evaluate. |
criteria2 |
[optional] The criteria to use on range2. |
The syntax for the SUMIFS function depends on the criteria being evaluated. Each condition is provided with a separate range and criteria. The generic
=SUMIFS(sum_range,range1,criteria1) // 1 condition
=SUMIFS(sum_range,range1,criteria1,range2,criteria2) // 2 conditions
The three formulas in I5:I7 look like this:
=SUMIFS(F5:F16,C5:C16,"red") // Red
=SUMIFS(F5:F16,C5:C16,"red",D5:D16,"TX") // Red and TX
=SUMIFS(F5:F16,C5:C16,"red",D5:D16,"TX",F5:F16,">20") // Red and TX and >20
It is often convenient to put criteria in another cell and then refer to this cell inside your formula. This makes it easy to change criteria later wi
=SUMIFS(sum_range,range,A1)
When a condition requires an operator, you must concatenate the cell reference to the operator. For example, to sum cells in a range greater than A1,
=SUMIFS(sum_range,range,">"&A1)
Note we are joining the ">" operator to cell A1 with an ampersand (&) character. In the worksheet below, SUMIFS has been configured to return the sum
=SUMIFS(D5:D9,D5:D9,">"&G4) // sum if greater than G4
=SUMIFS(C5:C9,B5:B9,"<>red") // not red
=SUMIFS(C5:C9,B5:B9,"<>blue") // not blue
=SUMIFS(C5:C9,B5:B9,"<>"&E7) // not E7