C
CWatters
I have data collected every 10 mins that rises and falls in value (looks
a bit like a mountain range). I'm trying to find out how long the data
remains above a certain value on average.
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, on average.
The first occurance goes
4 5 5 4 5 which is 5 * 10 min slots = 50mins
The second occurance goes
4 5 6 6 5 4 which is 6 * 10 min slots = 60 mins
So the average time above 4 would be (50+60)/2 = 55 mins
Anyone see a way to write an equation or use functions to do this? I'm
not sure I'm experienced enough work with macros.
If it matters the data is in a single column and there are about 100,000
data points.
a bit like a mountain range). I'm trying to find out how long the data
remains above a certain value on average.
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, on average.
The first occurance goes
4 5 5 4 5 which is 5 * 10 min slots = 50mins
The second occurance goes
4 5 6 6 5 4 which is 6 * 10 min slots = 60 mins
So the average time above 4 would be (50+60)/2 = 55 mins
Anyone see a way to write an equation or use functions to do this? I'm
not sure I'm experienced enough work with macros.
If it matters the data is in a single column and there are about 100,000
data points.