Excel 函数
Excel 中的 AVERAGEIF 函数
了解如何在 Excel 中使用 AVERAGEIF 函数,理解其语法、常见用法,以及如何让 ExcelGPT 按你的真实工作簿结构生成或调整公式。
语法
AVERAGEIF(range, criteria, [average_range])参数
公式各部分的作用说明。
range必填用于 AVERAGEIF 的参数 range。说明(原文):The cells to test against the condition.
criteria必填用于 AVERAGEIF 的参数 criteria。说明(原文):The condition to evaluate.
average_range可选用于 AVERAGEIF 的参数 average_range。说明(原文):Optional range to average when different from the criteria range.
示例
示例 1:AVERAGEIF 用法
=AVERAGEIF(B:B, "West", F:F)展示 AVERAGEIF 的常见用法。说明(原文):Returns the average amount in column F for rows where region equals West.
示例 2:AVERAGEIF 用法
=AVERAGEIF(D:D, ">80")展示 AVERAGEIF 的常见用法。说明(原文):Returns the average of values in column D that are greater than 80.
常见错误
确认 AVERAGEIF 的参数顺序、数据类型和引用方向是否正确。
检查引用范围、空值、错误值或数组溢出是否会影响结果。
先在小范围样例上验证,再扩展到完整工作簿。