
Originally Posted by
murf58
In the attached file I have noted the first stride on a graph with two red bars and used the stars to highlight the two points I need
I can't see that in the current attachment I'm afraid - just the data points.

Originally Posted by
murf58
I have noted that each stride seems to be about 50 samples long. Ideally I would like to have this number located in a cell so that I could change it and see the effect on the calculations (for example it will be a shorter range if used on running data).
This is a key point - so are you saying you intend to base each step on this arbitrary input cell (eg 50) as opposed to using some logic or other to establish each step separately based on the 6000 data points ?
If that is the case then what you want to do should be relatively straightforward - you just need to use an INDEX (or Volatile OFFSET) statement to create the various ranges for use in conjunction with MIN/MAX.
If we assume (using sample) that C1 holds 50 (step value) then:
With the above in place (to help us identify how many calcs need to be performed) then:
C2:C351 can be copied to D2:D351 with MIN changed to MAX.
As you alter C1 you should find that the results in C2:D2 onwards adjust accordingly.
Bookmarks