excel - Excel 中的这个表达式是什么意思

标签 excel excel-formula array-formulas excel-match

使用 INDEXMATCH 进行查找,并发现有人使用以下形式的表达式:

=INDEX(*range used*, MATCH(MIN(ABS(data!E2-lookup!$L$5:$L$105)),ABS(data!E2-lookup!$L$5:$L$105),0))

lookup!$L$5:$L$105 是值查找表范围。我知道它应该做什么,但是 data!E2-lookup!$L$5:$L$105 部分没有意义。这是如何工作的?

最佳答案

此公式仅适用于数组公式。

MATCH 部分获取该值在 lookup!$L$5:$L$105 中的位置,该位置最接近 data!E2< 中的值。然后,INDEX 部分获取 *rangeused* 中的相应值。用公式来说:它与差异数组 ABS(data!E2-lookup!$L$5:$L$105) 中的值匹配,这是这​​些差异中最小的。

示例:

enter image description here

F2 中的公式为:

{=INDEX($A$2:$A$11,MATCH(MIN(ABS(E2-$B$2:$B$11)),ABS(E2-$B$2:$B$11),0))}

注意,这是一个数组公式。将其输入到不带大括号的单元格中,然后按[Ctrl]+[Shift]+[Enter]完成。

关于excel - Excel 中的这个表达式是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30054379/

相关文章:

excel - 如何找到整个Excel工作簿中的最大值

excel - 从 "-"左侧提取文本,但忽略不包含 "-"的单元格

excel - 满足参数时 OR 函数未返回 "TRUE"

excel - 在列上输入公式

google-sheets - Google 表格公式匹配多个条件

google-sheets - Google Sheets Countif 与 Arrayformula

python - 删除 python 列表中的 None

VBA 运行时错误 9 : Subscript out of range

vba - 形状上的双击事件

excel - 查找Excel单元格中重复出现的单词的频率和位置