Excel 公式得到的值刚好大于另一个
Excel formula get value just greater than an other
我想知道如何检索大于另一个值的最小值。
据我所知:
使用近似匹配,VLOOKUP
在A列中搜索值X,找到A列中小于或等于X的最大值。
为了找到大于或等于 x
的最小值,VLOOKUP
的等价物是什么
示例:在此 table 中,如果我的值为 -0,322
VLOOKUP
returns : -0,362
哪个公式会 return :-0,317 ?
Aggregate()
和 Index()
会帮助你。假设您在 C1
单元格中有 -0.322
然后使用下面的公式。请参阅屏幕截图以便更好地理解。
=INDEX($A:$A,AGGREGATE(15,6,ROW($A:$A)/($A:$A>$C),ROW(1:1)))
Please Note: Comma (,) and dot (.) depends on regional settings. So just replace Dot (.) with comma for your excel.
您可以简单地使用以下 array 公式:
=MIN(IF(A1:A17>B1,A1:A17,""))
其中 B1
是您要比较的值。
我想知道如何检索大于另一个值的最小值。
据我所知:
使用近似匹配,VLOOKUP
在A列中搜索值X,找到A列中小于或等于X的最大值。
为了找到大于或等于 x
的最小值,VLOOKUP
的等价物是什么
示例:在此 table 中,如果我的值为 -0,322
VLOOKUP
returns : -0,362
哪个公式会 return :-0,317 ?
Aggregate()
和 Index()
会帮助你。假设您在 C1
单元格中有 -0.322
然后使用下面的公式。请参阅屏幕截图以便更好地理解。
=INDEX($A:$A,AGGREGATE(15,6,ROW($A:$A)/($A:$A>$C),ROW(1:1)))
Please Note: Comma (,) and dot (.) depends on regional settings. So just replace Dot (.) with comma for your excel.
您可以简单地使用以下 array 公式:
=MIN(IF(A1:A17>B1,A1:A17,""))
其中 B1
是您要比较的值。