在应用过滤器时,如何使COUNTIF仅计算可见记录的小计


-1

我想要一个公式 COUNTIFBrand 3 列,如果过滤了 COUNTIF 更改过滤条件。

                    TOTAL COUNT 0        0          3   COUNTIF(H3:H5,"VoID")
Area    Region  Branch  Member  Brand 1  Brand 2    Brand 3 
East    NY        NY     1                           Void   
West    CA        LA     2                           Void   
North   IL      Chicago  3                           Void   

使用过滤器后,我获得相同的总计数,但需要它为1(仅计算可见单元格):

                    TOTAL COUNT 0        0          3   Answer needs to be 1
Area    Region  Branch  Member  Brand 1  Brand 2    Brand 3 
East    NY        NY    1                            Void   

1
我不确定你在问什么?你可以添加表格的样本部分吗?
Holloway

1
请在屏幕截图中提供示例。
Eric F

Answers:


0

你可以使用这个公式

=SUMPRODUCT(SUBTOTAL(3,OFFSET(H3,ROW(H3:H5)-ROW(H3),0)),(H3:H5="void")+0)

这将给你一个可见细胞计数 H3:H5 (过滤后)是“无效”。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.