将Excel公式合并到COUNTIF所有选项卡

时间:2016-12-29 14:25:42

标签: excel countif

我目前正在使用COUNTIF公式计算单词"竞争对手"跨多张床单。是否有一种很好的方法可以合并此公式以便为一系列工作表运行COUNTIF

 =COUNTIF('Outside 12.2'!P2:P4977,"Competitor")+COUNTIF('Outside 12.7'!P2:P4977,"Competitor")+COUNTIF('Outside 12.8'!P2:P4977,"Competitor")+COUNTIF('Outside 12.12'!P2:P4977,"Competitor")+COUNTIF('Outside 12.19'!P2:P4977,"Competitor")+COUNTIF('Big East 11.30'!P2:P4977,"Competitor")+COUNTIF('Northern Tier 11.25'!P2:P200,"Competitor")+COUNTIF('Northern Tier 11.23'!P2:P56,"Competitor")+COUNTIF('Northern Tier 1'!P2:P1000,"Competitor")

1 个答案:

答案 0 :(得分:2)

在进行计算的工作表上,设置如下表格:

tigeravatar example for westman2222

在细胞E2中是这个公式:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&A2:A10&"'!"&B2:B10),E1))