Excel 函数
Excel 中的 FILTER 函数
了解如何在 Excel 中使用 FILTER 函数,理解其语法、常见用法,以及如何让 ExcelGPT 按你的真实工作簿结构生成或调整公式。
语法
FILTER(array, include, [if_empty])参数
公式各部分的作用说明。
array必填用于 FILTER 的参数 array。说明(原文):The range or array to filter.
include必填用于 FILTER 的参数 include。说明(原文):The logical test that determines which rows or values to return.
if_empty可选用于 FILTER 的参数 if_empty。说明(原文):Optional value to return when no results match.
示例
示例 1:FILTER 用法
=FILTER(A2:D100, C2:C100="Active", "No matches")展示 FILTER 的常见用法。说明(原文):Returns all rows where the status column equals Active.
示例 2:FILTER 用法
=FILTER(A2:F500, F2:F500>1000)展示 FILTER 的常见用法。说明(原文):Returns only the rows where the amount exceeds 1000.
常见错误
确认 FILTER 的参数顺序、数据类型和引用方向是否正确。
检查引用范围、空值、错误值或数组溢出是否会影响结果。
先在小范围样例上验证,再扩展到完整工作簿。