AVERAGEIF函数返回满足给定条件的范围内所有像元的平均值(算术平均值)。
AVERAGEIF (range, criteria, [average_range])
Argument | 描述 | Required/Optional |
---|---|---|
Range | One or more cells to average, including numbers or names, arrays, or references that contain numbers. | Required |
Criteria | The criteria in the form of a number, expression, cell reference, or text that defines which cells are averaged. | Required |
Average_range | The actual set of cells to average. If omitted, range is used. | Optional |
范围内包含TRUE或FALSE的单元格将被忽略。
如果average_range中的一个单元格为空单元格,则AVERAGEIF将忽略它。
如果条件中的单元格为空,则AVERAGEIF会将其视为0值。
您可以在标准中使用通配符,问号(?)和星号(*)。问号与任何单个字符匹配;星号匹配任何字符序列。如果要查找实际的问号或星号,请在字符前键入波浪号(〜)。
来源:LearnFk无涯教程网
Average_range的大小和形状不必与range相同。平均的实际像元是通过使用average_range中的顶部,左侧像元作为起始像元,然后包括大小和形状与范围相对应的像元来确定的。
如果range为空白或文本值,则AVERAGEIF返回#DIV0!错误值。
如果范围中没有任何单元格符合条件,则AVERAGEIF返回#DIV/0!错误值。
如果要求平均值的值都是非数字的,则AVERAGEIF返回#DIV0!错误值
如果条件参数是长度大于255个字符的文本字符串,则AVERAGEIF返回#VALUE!错误值。
Excel 2007,Excel 2010,Excel 2013,Excel 2016
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)