Dapatkan nilai maksimal dengan kriteria
=MAXIFS(max_range, range1, criteria1, [range2], [criteria2], ...)
| Parameter | Deskripsi |
|---|---|
max_range |
Range of values used to determine maximum. |
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 MAXIFS function depends on the criteria being evaluated. Each condition is provided with a separate range and criteria. The generic
=MAXIFS(max_range,range1,criteria1) // 1 condition
=MAXIFS(max_range,range1,criteria1,range2,criteria2) // 2 conditions
In the worksheet shown above, the formulas in G5 and G6 are:
=MAXIFS(D5:D16,C5:C16,"F") // returns 93
=MAXIFS(D5:D16,C5:C16,"M") // returns 83
The formulas in H5:I6 are:
H5=MAXIFS(D5:D16,C5:C16,"F",E5:E16,"A") // returns 93
I5=MAXIFS(D5:D16,C5:C16,"F",E5:E16,"B") // returns 85
H6=MAXIFS(D5:D16,C5:C16,"M",E5:E16,"A") // returns 83
I6=MAXIFS(D5:D16,C5:C16,"M",E5:E16,"B") // returns 79
To return the maximum value in A1:A100 when cells in B1:B100 are greater than 50:
=MAXIFS(A1:A100,B1:B100,">50")
To get the maximum value in A1:A100 when cells in B1:B100 are less than or equal to 100, and cells in C1:C100 are greater than zero:
=MAXIFS(A1:A100,B1:B100,"<=100",C1:C100,">0")
To construct "not equal to" criteria, use the "" operator surrounded by double quotes (""). For example, to return the maximum value in A1:A100 when
=MAXIFS(A1:A100,B1:B100,"<>red")