AVERAGEIFS function in Excel
The AVERAGEIFS function in Excel is a statistical function that calculates the arithmetic mean of a range of numbers that meet multiple criteria. The arithmetic mean is the sum of the numbers divided by the count of numbers in the range.
The syntax for the AVERAGEIFS function is as follows:
=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2],...)
where:
- average_range: The range of cells that contains the numbers to be averaged.
- criteria_range1: The first range of cells to be evaluated by the first criteria.
- criteria1: The first criteria used to determine which cells to include in the calculation.
- criteria_range2: [Optional] Additional ranges of cells to be evaluated by additional criteria.
- criteria2: [Optional] Additional criteria used to determine which cells to include in the calculation.
The AVERAGEIFS function returns the arithmetic mean of the cells in the average_range that meet all of the specified criteria.
Here's an example of how to use the AVERAGEIFS function:
Suppose you have a data set of exam scores for a class of students, and you want to calculate the average score for female students who scored above 80. You can use the AVERAGEIFS function as follows:
=AVERAGEIFS(B2:B20, A2:A20, "Female", C2:C20, ">80")
In this example, the AVERAGEIFS function calculates the arithmetic mean of the scores in cells B2:B20 that meet both criteria: the student's gender is "Female" (in range A2:A20) and the exam score is greater than 80 (in range C2:C20).
Note that the AVERAGEIFS function ignores empty cells, text values, and logical values in the range. Also, the criteria can include logical operators (>, <, >=, <=, <>, =) or wildcard characters (*, ?) to match patterns in text values. If you want to include only one criteria, you can use the AVERAGEIF function.
Comments
Post a Comment