I have a column of numbers representing each hour in a month (720 or 744 rows). I need to find the average of consecutive number blocks that fall between zero values. The block can be as small as two numbers or it could be as large as the whole month (no zero values in the column).
For example take a column of numbers 10,5,0,0,3,5,6,7,0,2,5,4,3,4. So I would need to find the average of the first block 10,2 then skipping 0,0 find another average of the next block 3,5,6,7, then skip 0 and find the average of the next block 2,5,4,3,4 and so on.
Any help would be appreciated. Thanks!
For example take a column of numbers 10,5,0,0,3,5,6,7,0,2,5,4,3,4. So I would need to find the average of the first block 10,2 then skipping 0,0 find another average of the next block 3,5,6,7, then skip 0 and find the average of the next block 2,5,4,3,4 and so on.
Any help would be appreciated. Thanks!