A
AkaranaJack
How can I locate the boundary where a run of identical numbers in a
spreadsheet column ends, or to put it another way, how do I count a set of
contiguous similar values?
Here is a series, with the values starting in cell A1, and the desired
results to be autofilled down column B:
1 3
1 2
1 1
2 2
2 1
3 1
1 2
1 1
The values in column A are regular, rising by the same increment, then
reverting to 1 and starting out again.
MATCH(A1+1,INDEX(A1:A100,,1),0)-1 correctly counts as far as the first,
second and third boundaries, but in the seventh row it cannot cope with the
termination of the column, returning #NA.
COUNTIF(A1:A100,A1) counts all the instances of 1 in the column, thus
reaching an undesired result (5) in the first row.
This is part of a more complex set of functions in a database in Excel 97.
AJ
spreadsheet column ends, or to put it another way, how do I count a set of
contiguous similar values?
Here is a series, with the values starting in cell A1, and the desired
results to be autofilled down column B:
1 3
1 2
1 1
2 2
2 1
3 1
1 2
1 1
The values in column A are regular, rising by the same increment, then
reverting to 1 and starting out again.
MATCH(A1+1,INDEX(A1:A100,,1),0)-1 correctly counts as far as the first,
second and third boundaries, but in the seventh row it cannot cope with the
termination of the column, returning #NA.
COUNTIF(A1:A100,A1) counts all the instances of 1 in the column, thus
reaching an undesired result (5) in the first row.
This is part of a more complex set of functions in a database in Excel 97.
AJ