【发布时间】:2014-11-15 00:25:39
【问题描述】:
在 D10 中,我想对 ColumnD 值求和(在 2:9 行中,使用 VLOOOKP 公式得出),但每个不同的 ColA 值只计算一次:
Col A Col B Col C Col D
Test2 testlast2 ttttt 1 *
Test2 testlast2 ttttt 1
Test4 testlast4 ttttt 1 *
Test5 testlast5 ttttt 1 *
Test6 testlast6 ttttt -BLANK-
Test7 testlast7 ttttt -BLANK-
Test7 testlast7 ttttt 1 *
Test7 testlast7 ttttt 1
在上面的示例中,结果应该是4,如星号所示。
我尝试过以下公式:
=SUMPRODUCT((A2:A9<>"")/COUNTIF(A2:A9,A2:A9&""))
(返回5)没有成功。
【问题讨论】:
-
我不知道这是否只是一个错字,但您的
A2:A9范围之一是A24:A9。
标签: arrays excel excel-formula worksheet-function countif