Excel不将空的fomulate单​​元格读为空白

时间:2016-11-21 05:31:18

标签: excel excel-formula excel-2010 excel-2007

我写了一个公式

=COUNTIFS(Excel_Export_IT_infrastructure!CF:CF,"<="&O4,Excel_Export_IT_infrastructure!CF:CF,">="&TODAY(), Excel_Export_IT_infrastructure!CM:CM,"<>Orphan",Excel_Export_IT_infrastructure!CG:CG,"<>",Excel_Export_IT_infrastructure!BC:BC,"=B")

现在问题是Excel_Export_IT_infrastructure!CG:CG,"<>"实际上并没有忽略空格,因为单元格CG隐藏了公式。我想它不考虑空白。

如何使Excel_Export_IT_infrastructure!CG:CG,"<>"过滤空白。 CG柱可能有细胞细胞但是空的吗?

1 个答案:

答案 0 :(得分:2)

试试这个公式:

=SUMPRODUCT(
(Excel_Export_IT_infrastructure!$CF:$CF<=$O4)*1,
(Excel_Export_IT_infrastructure!$CF:$CF>=TODAY())*1,
(Excel_Export_IT_infrastructure!$CM:$CM<>"Orphan")*1,
(Excel_Export_IT_infrastructure!$CG:$CG<>"")*1,
(Excel_Export_IT_infrastructure!$BC:$BC="B")*1)