6
0
Is there a way to use array formulas or some other feature to essentially have an excel function that means.
=Countblank({A1,A4:A6,A112:127,B29:B38}) etc.
Essentially, I want to refer to multiple locations where you would normally type a contiguous range. Non-VBA preferred, if that is indeed possible.
I know I can use
=Countblank(A1)+Countblank(A4:A6)+Countblank(A112:127)+Countblank(B29:B38)
in this case, but it isn't ideal for obvious reasons.
Thanks everyone :)
You could try naming each of the non-contiguous ranges. – BillDOe – 2015-07-10T18:21:35.763
2Some aggregate functions support this and others do not. You have little recourse if it is not supported. If you want to do this, you can define a UDF that takes a parameter array and outputs the result for a discontinuous range. That requires VBA though. – Byron Wall – 2015-07-10T19:43:04.053
That doesn't seem to work, BillOer. – Jason Clement – 2015-09-25T15:02:34.813
Why are you doing this? Can't you have an additional column that defines whether or not a column should be counted? There should be a way from inferring the logic from the data rather than having it hardcoded in the formula, for many reasons. – airstrike – 2016-10-12T17:58:05.787