GraH - Guido
Well-Known Member
Hi,
First time for me to post a question. Never thought I would need to do this for a rather simple formula using COUNTIFS. But a colleague asked me to explain this, and I really cannot. And since yesterday it has kept me busy. Thus calling for help here.
Presenting the case:
The data is the result of an imported access DB query. This query sets the blanks for all the columns in the same way via an if statement in access that uses "" as argument.
Strangely enough, when I delete the content of the blank cells in the column [Existing Queue], both formulas return the same and correct result.
But I do not get this. Why would the argument <>"" work in sumproduct and not in countifs for this 1 argument? While in countifs it does work for the first argument tRefData[Matched Ref],"<>"?
To be clear on the expectations: I do not need help solving it. We are using the sumproduct formula, but my colleague and I would really like to understand what is going on. Does some-one know or did you experienced the same? I tested the file in versions 2010 and 2016. And luckily the behaviour is consistent.
Enjoy the day.
First time for me to post a question. Never thought I would need to do this for a rather simple formula using COUNTIFS. But a colleague asked me to explain this, and I really cannot. And since yesterday it has kept me busy. Thus calling for help here.
Presenting the case:
- there is some customer data in the table tRefData
- we need some simple counters that check basic criteria in a few columns
- one of these counters for which we have used COUNTIFS returns however a wrong result:
- =COUNTIFS(tRefData[Matched Ref],"<>",tRefData[New Queue],"",tRefData[Existing Queue],"<>") returns 912
- =SUMPRODUCT((tRefData[Matched Ref]<>"")*(tRefData[New Queue]="")*(tRefData[Existing Queue]<>"")) returns 778
The data is the result of an imported access DB query. This query sets the blanks for all the columns in the same way via an if statement in access that uses "" as argument.
Strangely enough, when I delete the content of the blank cells in the column [Existing Queue], both formulas return the same and correct result.
But I do not get this. Why would the argument <>"" work in sumproduct and not in countifs for this 1 argument? While in countifs it does work for the first argument tRefData[Matched Ref],"<>"?
To be clear on the expectations: I do not need help solving it. We are using the sumproduct formula, but my colleague and I would really like to understand what is going on. Does some-one know or did you experienced the same? I tested the file in versions 2010 and 2016. And luckily the behaviour is consistent.
Enjoy the day.