Reputation: 59
I am facing the probem of COUNTIF with ARRAYFORMULA in googlesheet as below
Any one have solution to fix it ?
Thanks alot.
Upvotes: 1
Views: 94
Reputation: 552
Sadly, CountIf can not be used like you are suggesting in an array. If you put it in an array, all values will be counted in the range. That being said, this can be achieved with a slight workaround.
=Array_Constrain(iferror(sort({row(B:B)-row(B1)+2-match(sort(B:B),sort(B:B),0),SORT(ROW(B:B)+2-row(B1)+2,B:B,1)},2,1),),9^9,1)
This formula will allow you to get a running count of the values in Column B. Have a great day!
Upvotes: 1