Forum Discussion
DAHAWOR1953
Oct 16, 2023Copper Contributor
Using COUNTIFS
It does not work on multiple criteria ranges if the second criteria_Range2 is longer than Criteria_Range 1? =COUNTIFS(A:A43,A79,C2:C51,A79) A79 is text. Is there a workaround? Appreciate any sugg...
- Oct 16, 2023
HansVogelaar
Oct 16, 2023MVP
Change the ranges so that they are the same size.
- DAHAWOR1953Oct 16, 2023Copper ContributorThank you for the speedy reply but I am unable to change the column lengths they are populated.
- HansVogelaarOct 16, 2023MVP
- DAHAWOR1953Oct 16, 2023Copper ContributorBrill - that's what I need - again many thanks for the speedy reply, really appreciated.
- DAHAWOR1953Oct 16, 2023Copper ContributorMany thanks for a speedy reply but I am unable to make the columns the same length.
- HansVogelaarOct 16, 2023MVP
But COUNTIFS makes no sense if the ranges have different sizes:
COUNTIFS checks whether the first cell in the first range and the corresponding cell in the second range both satisfy the conditions. If so, it adds 1 to the count.
Then it checks the second cell in the first range and the corresponding cell in the second range, etc.
If one range is smaller than the other, there is no corresponding cell for some cells in the larger range, so COUNTIFS fails.
So you must specify ranges of the same size.