为COUNTIF添加额外的标准

时间:2014-02-05 22:19:04

标签: excel

我的COUNTIF公式目前看起来像这样:

=COUNTIF('Master Data Set'!Z:Z, Dashboard!AJ4)
=COUNTIF('Master Data Set'!Z:Z, Dashboard!AJ5)
=COUNTIF('Master Data Set'!Z:Z, Dashboard!AJ6)
=COUNTIF('Master Data Set'!Z:Z, Dashboard!AJ7)
=COUNTIF('Master Data Set'!Z:Z, Dashboard!AJ8)
=COUNTIF('Master Data Set'!Z:Z, Dashboard!AJ9)
...etc

如果在工作表主数据集列V 中也匹配,如何添加额外条件,以便它仅计算工作表主数据集列Z 中的值与工作表信息中心A6:A41 进行比较(因此两个名称都必须出现在两列中)?

1 个答案:

答案 0 :(得分:1)

如果我理解正确,

=COUNTIF('Master Data Set'!Z:Z,Dashboard!AJ4)*(COUNTIF('Master Data Set'!V:V,Dashboard!$A6)>0)