【发布时间】:2011-04-03 12:53:29
【问题描述】:
我正在寻找一个 Excel 公式,它可以添加行的结果,直到它碰到一个空单元格。
第一行包含一个公式(包括值 X)。 以下行每行包含 3 个单元格(A、B、C),其中包含值。 简单的 True/False ("=IF(AND(X>=A2;X 是否高于 A,低于 B,如果为真,它返回 C 的值。 然后该公式查看下一行并重复该操作,并将所有返回的值加到一个总和中。
ROW1 - A1(formula)
ROW2 - A2(5) - B2(10) - C2(100)
ROW3 - A3(10) - B3(20) - C3(200)
ROW4 - (empty)
ROW2 - If we set X=8, then 8 is > 5, and < 10, and the value 100 is returned.
ROW3 - The action is repeated - this time with the result 0.
ROW4 - The row/cell is empty and the loop stops.
ROW1 - Formula has stopped and shows result (100 + 0 =) 100.
【问题讨论】: