The average of all cells that fulfil various conditions will be returned by this function.
Syntax:
=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)
Parameter list:
In this example, we first calculate the average price of a hotel room from the A column if the town is in Paris, has more than 3 bedrooms, and has a Personal Chef.
The first parameter we need to give is the column from which we want the average, which is A2:A6.
The second and third parameters are the criteria range1 and criteria2. Criteria1 means the whole range with the town name and the town name to sort, which is B2:B6 and Paris.
The fourth and fifth parameters are the second criteria range (C2:C6) and the criteria (>2), which are the number of bedrooms and bedrooms greater than 2.
The sixth and seventh parameters are the third criteria range (D2:D6) and the criteria (Yes), which indicate whether or not Personal Chef is present.
Second, we calculate the average of the A column when the town is London, the bedroom is equal to or less than three, and there is no personal chef.
Using this function is similar to using the filter function in Excel.
Ask Your Query