简体   繁体   English

Excel公式:COUNTIFS()返回值错误

[英]Excel Formula: COUNTIFS() return value is wrong

I'm using COUNTIFS() formula in Excel to count number of dates in a list,corresponding to a particular name. 我在Excel中使用COUNTIFS()公式来计算列表中与特定名称相对应的日期数。 The output values are not accurate 输出值不准确

Formula used: 使用的公式:
= COUNTIFS($G$31:$G$37,B32,$F$31:$F$37,"") = COUNTIFS($ G $ 31:$ G $ 37,B32,$ F $ 31:$ F $ 37,“”)

COUNTIFS(range1 -text, comparison value, range2-date, check for value in range 2 ) COUNTIFS(范围1-文本,比较值,范围2日期,检查范围2中的值)

The formula first compares a list range1 (G column) with a given text comparison, then it compares the range2 (F column) list to check for a date/blank space. 公式首先将列表range1(G列)与给定的文本比较进行比较,然后将range2(F列)列表进行比较以检查日期/空白。

I've also tried this version of formula: 我也尝试过此版本的公式:

= COUNTIFS($G$31:$G$37,B32,$F$31:$F$37,"?????????") = COUNTIFS($ G $ 31:$ G $ 37,B32,$ F $ 31:$ F $ 37,“ ?????????”)

and it returns a '0' every time 每次返回“ 0”

Am I using this function the right way? 我是否以正确的方式使用此功能? Data Image 资料图片

Looking at your provided sample data try: 查看提供的样本数据,请尝试:

=COUNTIFS($G$31:$G$37,B32,$F$31:$F$37,"<>")

In cel C32 and drag down... 在cel C32 ,向下拖动...

It was the "<>" (anything other then empty) you were looking for I assume. 我想的是您要查找的"<>" (除了空以外的任何东西)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM