C
CWatters
I have data collected every 10 mins that rises and falls in value. I'm
trying find out how long the data remains above a certain value.
For example suppose the data was
2 3 4 5 5 4 5 3 3 1 1 2 3 4 5 6 6 5 4 3 3 2 1 .....
and I wanted to find out how long it stays at 4 or above.
Is there a way to do something like a COUNT WHILE function so that I can
generate
Either
0 0 1 2 3 4 5 0 0 0 0 0 0 1 2 3 4 5 6 0 0 0 0 0...
or
0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0...
from the above data?
I tried using SUBTOTAL but it's way too slow because of the size of the
data I have.
trying find out how long the data remains above a certain value.
For example suppose the data was
2 3 4 5 5 4 5 3 3 1 1 2 3 4 5 6 6 5 4 3 3 2 1 .....
and I wanted to find out how long it stays at 4 or above.
Is there a way to do something like a COUNT WHILE function so that I can
generate
Either
0 0 1 2 3 4 5 0 0 0 0 0 0 1 2 3 4 5 6 0 0 0 0 0...
or
0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0...
from the above data?
I tried using SUBTOTAL but it's way too slow because of the size of the
data I have.