Forum Discussion
Using COUNTIFS and Blank Criteria
Or else, use the below Formula and change the Number Format of the cell to display zero as blank.

- vijaykumar shetyeAug 26, 2018Brass Contributor
Hi John Triebe,
The original File that you had sent, contains formulas which I believe have evaluated correct results. If these are not the correct results, then enter the correct results on another column, with reasons why the existing results are incorrect.
Have you tested the formulas that I had sent? Is there any difference from the results of these formulas and the expected results? Can you mention the details?
You may reattach the file, highlighting the cells where the results are not as per your expectations.
Vijaykumar Shetye,
Panaji, Goa, India
- John TriebeAug 26, 2018Copper Contributor
Yes, I did try your method and it did not provide the correct result. I've attached another small spreadsheet showing the correct results (in green) and what I get (in RED) if I try using the COUNTIFS function in which one or more of the criteria reference cells contains a blank, and then copying that for multiple sets of criteria. I hope this better explains what I'm trying to accomplish. And I'll also ask that if the COUNTIFS function will not work in this situation, is there a statement using another function that could be copied to provide the correct results?
- SergeiBaklanAug 27, 2018Diamond Contributor
Hi John,
I'd use
=SUMPRODUCT(($B$4:$B$17=H5)*($C$4:$C$17=I5)*($D$4:$D$17=J5)*($E$4:$E$17=K5))
and attached