Syntax
=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2], [criteria2], ...)Arguments
| Argument | Required | Description |
|---|---|---|
average_range | Required | The cells to average |
criteria_range1 | Required | The first range to check |
criteria1 | Required | The condition for the first range |
criteria_range2 | Optional | More ranges |
criteria2 | Optional | More conditions |
How to use AVERAGEIFS
AVERAGEIFS takes 3 required arguments and 2 optional arguments, and accepts more values in the same pattern. Type =AVERAGEIFS( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=AVERAGEIFS(B1:B3, A1:A3, "y", B1:B3, ">10")Result Data in the sheet
| A | B | |
|---|---|---|
| 1 | y | 10 |
| 2 | n | 99 |
| 3 | y | 20 |
Related statistical functions
- AVEDEVReturns the average of the absolute deviations of the numbers from their mean.
- AVERAGEReturns the average (arithmetic mean) of the numbers.
- AVERAGEAReturns the average of the values, counting text as 0 and TRUE as 1.
- AVERAGEIFReturns the average of the cells that meet a condition.
- BETA.DISTReturns the beta distribution, optionally scaled to an interval from A to B.
- BETA.INVReturns the inverse of the cumulative beta distribution.
- BINOM.DISTReturns the binomial distribution probability of a number of successes in a number of trials.
- BINOM.DIST.RANGEReturns the probability that the number of successes falls between two values.
- BINOM.INVReturns the smallest number of successes for which the cumulative binomial distribution reaches a probability.