Calculate the average of cells that meet a condition.
The AVERAGEIF function averages only the cells in a range that meet a criterion. Its syntax is =AVERAGEIF(range, criteria). For example, =AVERAGEIF(A1:A6,">=100") averages only values ≥ 100.
Calculate the average of cells in A1:A6 whose value is greater than or equal to 100 and place the result in B1.
Click cell B1, type your formula and press Enter.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| Scores | Avg >= 100 | ||||
| 1 |
87
|
||||
| 2 |
89
|
||||
| 3 |
139
|
||||
| 4 |
57
|
||||
| 5 |
151
|
||||
| 6 |
157
|
||||
| 7 |