Excel 函数
Excel 中的 IFERROR 函数
了解如何在 Excel 中使用 IFERROR 函数,理解其语法、常见用法,以及如何让 ExcelGPT 按你的真实工作簿结构生成或调整公式。
语法
IFERROR(value, value_if_error)参数
公式各部分的作用说明。
value必填用于 IFERROR 的参数 value。说明(原文):The formula or expression to evaluate.
value_if_error必填用于 IFERROR 的参数 value_if_error。说明(原文):The value to return if the formula results in an error.
示例
示例 1:IFERROR 用法
=IFERROR(XLOOKUP(A2, Sheet2!A:A, Sheet2!C:C), "Not found")展示 IFERROR 的常见用法。说明(原文):Returns a friendly message instead of an error when the lookup has no match.
示例 2:IFERROR 用法
=IFERROR(F2/G2, 0)展示 IFERROR 的常见用法。说明(原文):Returns zero when the denominator is blank or zero instead of showing an error.
常见错误
确认 IFERROR 的参数顺序、数据类型和引用方向是否正确。
检查引用范围、空值、错误值或数组溢出是否会影响结果。
先在小范围样例上验证,再扩展到完整工作簿。