count of max occcurances
Try this array formula** :
=MAX(FREQUENCY(IF(A1:A10=1,ROW(A1:A10)),IF(A1:A10< 1,ROW(A1:A10))))
** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.
--
Biff
Microsoft Excel MVP
"stuart" wrote in message
...
hi everyone and all you super intelligent people out there
(thought id start with a compliment to make you smile)
anyway here is what im after from the below data i want to be able to see
if
a person has more than 3 occurances of the number 1 in a row or not - i
can
easily count the total 1's however i want to be able to see if more than 3
occur in sequence - any suggestions
column A
row person flag
1 1
2 0
3 0
4 1
5 1
6 1
7 1
8 0
9 0
10 1
="little formula to tell me yes 1 appeared it happend 4 times in
row"
hope you can help
thanks in advance
me
|