请问一个excel的问题
用下面这个简单的table做一个例子。如果我想count有多少个region 有item1 和item2, 正确答案是,有item1 的region有两个,US and Canada, 有item2的也是一样。
简单的table容易看,但是如果数据量大,只能依靠function来数。用我已知的count function, 会数重复,会说有item1 的有3个region, 有item2的有4个region。 请问怎么样才能让count不去重复数同样的region?就是要在前面加个判断,如果都是US,只数一次,都是Canada,也只数一次。谁知道啊?先谢谢了。
浏览附件385275
You did not give a clear example.
Item 1 Item 2
USA 5 0
USA 6 0
Can 1 1
Can 0 1
China 0 4
Japan 0 6
So you want get 2 in the column of Item 1 (since there are 2 regions having positive numbers of Item 1) and 3 in the column of Item 2 (since there are 3 regions (Can, China, Japan) having positive numbers of item 2), right?