Replace "result" with 0 in AV38 and enter in AV39 & copy down:
=IF(OR(ISERROR(AU39),SUMIF(AU39,">35")>35),
"",
IF(IF(ISERROR(AU40),1,AU40>35),
COUNTIF(INDEX($AU$39:AU39,MATCH(9.99999999999999E+307,$AV$38:AV38)):AU39,"<=35"),
""))
> I have in column AU cell 39 to cell 500 random sequences of 1-10 rows ,
> with numbers in them, (as an result of formulas)
[quoted text clipped - 27 lines]
> thanks
> bill gras
bill gras - 12 Dec 2005 10:14 GMT
Hi Aladin,
Thank you for your time and your reply
There is one thing that your formula does not do is: count all numbers under
35 , stop at the first number larger than 35 and than go to the next sequence
, and count
all numbers under 35 stop at the first number larger than 35 and than go to
the next
sequence , and so on .
Can that be done ?
I apologise if I did not explained my self properly the first time .
as per your formula :-
-- AU
> row 39 32
> 40 14
[quoted text clipped - 15 lines]
> 56 11 3
> 57 #value!
I hope you can still help me as I'm nearly finished my project
Thanking You
regards bill
bill gras
> Replace "result" with 0 in AV38 and enter in AV39 & copy down:
>
[quoted text clipped - 36 lines]
> > thanks
> > bill gras
Aladin Akyurek - 12 Dec 2005 15:08 GMT
> Hi Aladin,
> Thank you for your time and your reply
[quoted text clipped - 17 lines]
>> 45 #value!
>> 46 40
[...]
Are you trying to say that 3 should appear at the same row as 107 and 2
at the same row as 40?
bill gras - 13 Dec 2005 02:58 GMT
Hi Aladin
No . What I'm saying is that number 3 should be the only number (where it is)
and no number 2 because 107 is greater than 35 and that should be the cut off
point , there fore the next sequence should start after the #value! in
column AU45 . So the next sequence starts at AU 46 where the first number is
greater than 35 and that is the cut off point (no result) . The next sequence
starts at AU 51 after the #value! in AU50 and number 2 is correct , the cut
off point is at AU53 which the number is 146 so no number 3 . The next
sequence starts at AU58 after the #value! of AU57.
I hope this will help , please don't give up
thanks bill

Signature
bill gras
> > Hi Aladin,
> > Thank you for your time and your reply
[quoted text clipped - 21 lines]
> Are you trying to say that 3 should appear at the same row as 107 and 2
> at the same row as 40?
Let AU38 contain #VALUE!...
AV39, copied down:
=IF(1-ISNUMBER(AU38),MATCH(TRUE,INDEX(AU39:$AU$500>35,0),0)-1,"")
Hope this helps!
> I have in column AU cell 39 to cell 500 random sequences of 1-10 rows ,
> with numbers in them, (as an result of formulas)
[quoted text clipped - 27 lines]
> thanks
> bill gras