Hi,
I am trying to find a quick way of counting the number of contiguously connected sub-ranges, within a larger range, that meet a specified criterion. For example, in the range A1:C10, there may be say, 7 cells with values above some specified threshold, let's say 1 for the sake of argument.
So, assuming that they held data, then I could use: ={Count(if(A1:C10>1,A1:C10)} to count the number of cells matching my criterion, however I do not want the number of cells per se, but the number of groups of cells.
Say, for example, the cells which are thresholded are:
A2:B3, A5, B8:B9
Then the answer I am looking for is 3, because there are 3 contiguous groups.
Supposedly the Areas function provides what I need, but it does not seem to work.
If I use: {=AREAS(IF(A1:C10>1,A1:C10))} (entered as either a standard formula or an array) I get a VALUE! error.
Can anybody suggest what I might be doing wrong please?
I am trying to find a quick way of counting the number of contiguously connected sub-ranges, within a larger range, that meet a specified criterion. For example, in the range A1:C10, there may be say, 7 cells with values above some specified threshold, let's say 1 for the sake of argument.
So, assuming that they held data, then I could use: ={Count(if(A1:C10>1,A1:C10)} to count the number of cells matching my criterion, however I do not want the number of cells per se, but the number of groups of cells.
Say, for example, the cells which are thresholded are:
A2:B3, A5, B8:B9
Then the answer I am looking for is 3, because there are 3 contiguous groups.
Supposedly the Areas function provides what I need, but it does not seem to work.
If I use: {=AREAS(IF(A1:C10>1,A1:C10))} (entered as either a standard formula or an array) I get a VALUE! error.
Can anybody suggest what I might be doing wrong please?