如何计数“否”在C列的名称& ID? [英] How to count "No" in column C base on Name & Id?
问题描述
我有3列。
-----A-----B-----C-----
---Name----ID---Report
在列AI中有名称(可以重复)
列BI中有ID(可以重复不同名称的相同ID)
列CI中有是和否(可以重复NO为同一个ID)
In column A I have Names(Can Repeat)
In column B I have IDs (can repeat with same ID for different names)
In column C I have Yes and No(Can Repeat with NO for same ID)
我需要帮助来计算John(列A)列C中的Number数,但只有在列B具有重复的ID时才计算一次
I need help to count Number of No's in column C for John(Column A) but only count once if column B has duplicate ID.
我可以通过过滤器和东西来做到这一点,但是我只需要使用公式来实现。
I can do this via filters and stuff but I need to do it using formula only please.
这里是我正在处理的文件(保管箱链接)
Dropbox excel文件链接
Here is file I am working on(dropbox link)
Dropbox excel file link
这是我到目前为止
=COUNTIF(A1:A1000,"*" & "John" & "*")
推荐答案
您可以使用以下单一公式:
You can use a single formula like this:
= SUM(IF(FREQUENCY(IF(A2:A200 =约翰,IF(C 2:C200 =否,B2:B200)),B2:B200),1))
需要使用CTRL + SHIFT + ENTER确认
That's an "array formula that needs to be confirmed with CTRL+SHIFT+ENTER
为您的示例提供3 - 请注意,它需要列B数据为数字,这似乎就是这种情况。 ....
That gives 3 for your example - note that it requires column B data to be numeric which seems to be the case here.....
这篇关于如何计数“否”在C列的名称& ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!