Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel COUNTIFS已筛选_Excel_Spreadsheet_Countif - Fatal编程技术网

Excel COUNTIFS已筛选

Excel COUNTIFS已筛选,excel,spreadsheet,countif,Excel,Spreadsheet,Countif,我试图提取特定的过滤数据 未筛选表示例: A B C 1 Ext Room 1 Present 2 Ext Room 1 Present 3 Int Room 1 Present 4 Int Room 2 Present 5 Int Room 2 Present 因此,如果我想得到当前Int的数量,我会: =COUNTIFC1:C5;目前A1:A5;Int 答案是3 现在,如果我过滤房间并仅选择房间1,我将获得此

我试图提取特定的过滤数据

未筛选表示例:

    A       B       C
1  Ext   Room 1   Present
2  Ext   Room 1   Present
3  Int   Room 1   Present
4  Int   Room 2   Present
5  Int   Room 2   Present
因此,如果我想得到当前Int的数量,我会:

=COUNTIFC1:C5;目前A1:A5;Int

答案是3

现在,如果我过滤房间并仅选择房间1,我将获得此过滤表:

    A       B       C
1  Ext   Room 1   Present
2  Ext   Room 1   Present
3  Int   Room 1   Present
由于它现在是一个过滤表,相同的公式不起作用。给我以前的数值而不是1,因为现在只有1整数

我尝试使用SUBTOTAL和COUNTIF执行SUMPROD,但结果仍然无法正确显示

任何人都有一个不同的公式,可以让我在这个过滤表上得到我想要的。在这种情况下:Int-Present


最佳。

在SUMPROD中使用偏移量和行选项而不是countif找到答案。编辑的第一条评论

=SUMPRODUCT(SUBTOTAL(3;OFFSET(C1;ROW(C1:C5)-ROW(C1);0));(A1:A5="Int")+0)