1

我正在尝试从条件C2:C1700所在的范围创建一个 CountIf 函数00/01/1900 or 0。我范围内的单元格都是检索日期的公式。(如果单元格为空白,则为 0,如果单元格正确,则为 4235)。我正在使用格式来显示日期yyyy-mm-dd(如果有区别的话)。

Cell: C2 = [path]Sheet1!X2 - Value = 0 
Cell: C3 = [path]Sheet1!X3 - Value = 4235
Cell: C4 = [path]Sheet1!X4 - Value = 0
Cell: C5 = [path]Sheet1!X5 - Value = 0

现在在我的工作表中,我想创建一个=COUNTIF('[path]Orders'!$C$2:$C$1700;0),但我似乎无法获得正确的公式。要么0要么#VALUE。我也尝试过TEXT()格式化DATE()我的标准,但没有一个奏效。

谢谢你。

4

1 回答 1

1

Here is the formula you need, this is an array formula so you have to finish it off by pressing Ctrl + Shift + Enter.

=SUM(IF($C$2:$C$1700=0,1,0))

To check for additional conditions such as blanks just add nested IFs like so:

=SUM(IF($C$2:$C$1700=0,1,IF($C$2:$C$1700="",1,0))) 
于 2013-03-27T10:56:04.450 回答