1

我正在尝试对具有应大于 0 且性别应为 MALE 的条件的潜在客户计数数据求和。我不想使用countifs,因为它不受 excelcius 支持。

我尝试了以下公式:

=IF('Universe data'!R2:R801>0,IF('Universe data'!H2:H801=MALE,COUNT('Universe data'!R2:R801)))

它给了我一个 #N/A 错误。

这如何使用 COUNTIF 来完成?

这是数据:我想要的操作是潜在客户数不为 0 的男性的总和,答案应该是 10,我如何计算男性和女性的数量 countif 给出所有行或 0

gender    lead count      
--------  -----------
MALE            0
MALE            6
FEMALE          1
FEMALE          2
MALE            1
FEMALE          1
MALE            3
FEMALE          1
MALE            0
MALE            0

感谢和问候

4

1 回答 1

4

I got a working solution to this. But it works only because the value you do not want to count is 0.

use =SUMIF(A:A;"MALE";B:B)

This is how it looks in my example: enter image description here

Edit: If you want to count male with a value above 0, and add 1 for each regardless of their value. Add another column And write this if statement in the column: =IF(B2<>0;1;0)

Then use this formula: =SUMIF(A:A;"MALE";C:C) enter image description here

Hope this is what you wanted. If not give me some feedback and ill try to adopt it. :)

于 2013-04-15T14:29:46.767 回答