I have some acceleration data for which I am trying to count the length of sequences given a set of conditions. In this case I want to count the length of a sequence when the acceleration moves > 2.78 and then drops back below 0.
An example would be
[-1.1, -1, 0, 1.2, 1.8, 2, 2,88, 2.86, 2.53, 1.98, 1.21, 0.89, 0.11, -0.21]
The return result here would be a count of 7 (2,88, 2.86, 2.53, 1.98, 1.21, 0.89, 0.11)
I have done this previously to identify the largest sequence with one condition using the following formula
{=MAX(FREQUENCY(IF($T2:$T81781>2.78,ROW($T2:$T81781)),IF($T2:$T81781<=2.78,ROW($T2:$T81781))))}
Using the above example, the result using this formula would be 2 (2.88, 2.86)
Help please
Bookmarks