You do not need parallel loops to calculate a running average. Just keep two arrays of old data in a shift register inside the same loop. The first array is 9000 points (15 min) and the second is 36000 points (1 hr).
Append new data to the top of the array and delete any excess points from the bottom. Calculate the average on the entire array every time you add a point and write these values to other Excel columns.
Michael Munroe
www.abcdef.biz