- criteria_range1, criteria_range2: Range containing conditionals to be summed, of which criteria_range1 is a required parameter, the remaining criteria_range are optional and contain up to 127 arguments, which are required parameters.
- criteria1, criteria2, .: The condition to calculate the average, of which criteria1 is a required parameter, other criteria are optional parameters, containing up to 127 conditions.
Attention:
- If the value of the argument contains a logical value or a blank cell -> that value is ignored.
- If the range is blank or text -> the function returns the # DIV / 0 error value
- If a cell in the criterion is blank -> the function considers it as a value of 0.
- If the value in the data box is a logical value = True -> is considered 1, the value of False is considered to be 0.
- If the values in average_range cannot be converted to numbers -> the function returns the # DIV / 0 error value
- If no value meets all of the conditions -> the function returns the # DIV / 0 error value !
- Alternative characters such as *,? Can be used in the condition of averaging.
For example:
Calculate the average of the values with the condition in the following data table:
1. Calculate the average of the profits of consumer goods groups with profits greater than 200.
- In the cell to calculate enter the formula : = AVERAGEIFS (C6: C10, B6: B10, "= * consumption *", C6: C10, "> 200")
- Press Enter -> the average value of consumer goods items with profits greater than 200 are:
2. Calculate the average plus profit of consumer goods except for the Chinese group.
- In the cell to calculate enter the formula: = AVERAGEIFS (C6: C10, B6: B10, "= * consumption *", B6: B10, "<> * China *")
- Press Enter -> Average value of profit of consumer goods except Chinese goods is:
Above are instructions and specific examples when using the AVERAGEIFS function in Excel.
Good luck!