I hope you can help me out with a problem I can't figure out myself.

The problem is that I have a data sheat, in which I need to measure the longest uninterrupted number of intervals that the variable is below a certain number. Lets say 37. And the zero's are not included. In the following row the variable is 7 times below 37, and the maximum length of longest uninterrupted number of intervals is 4.

So basically I am looking for a formula that gives me the number 4.

I hope somebody is able to help me out

[TABLE="width: 64"]

<tbody>[TR]

[TD="class: xl65, width: 64, align: right"]0[/TD]

[/TR]

[TR]

[TD="class: xl65, align: right"]28[/TD]

[/TR]

[TR]

[TD="class: xl65, align: right"]26[/TD]

[/TR]

[TR]

[TD="class: xl65, align: right"]0[/TD]

[/TR]

[TR]

[TD="class: xl65, align: right"]23[/TD]

[/TR]

[TR]

[TD="class: xl65, align: right"]26[/TD]

[/TR]

[TR]

[TD="class: xl65, align: right"]27[/TD]

[/TR]

[TR]

[TD="class: xl65, align: right"]29[/TD]

[/TR]

[TR]

[TD="class: xl65, align: right"]38[/TD]

[/TR]

[TR]

[TD="class: xl65, align: right"]40[/TD]

[/TR]

[TR]

[TD="class: xl65, align: right"]33[/TD]

[/TR]

[TR]

[TD="class: xl65, align: right"]0[/TD]

[/TR]

</tbody>[/TABLE]