non overlapping average

fabiogiallo

New Member
Joined
Mar 1, 2018
Messages
6
Good evening all,

I have a column with results with gaps (blank cells) in between and i need to calculate in another column a rolling average (non overlapping) every 6 results (as per attached image).
the blank cells could be anywhere, always changing.
Any suggestion about formula or vba code to use?

Thank you in advance.
Immagine.png
r
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Where exactly are these results going to show up?
What if the number of records is not an exact multiple of 6? What happens to the last few records in that case?
 
Upvote 0
Maybe:

Book1
ABC
1Results6 number averages
27052.83333
35662.33333
43234.5
5#NUM!
645#NUM!
756#NUM!
8
958
10
1157
1265
1366
14
15
1655
17
1867
1964
20
2174
2256
23
24
25
2611
2719
28
2923
30
3124
32
33
3444
3545
3646
Sheet2
Cell Formulas
RangeFormula
C2:C7C2=AVERAGE(INDEX(A:A,AGGREGATE(15,6,ROW($A$2:$A$100)/($A$2:$A$100<>""),ROWS($C$2:$C2)*6-5)):INDEX(A:A,AGGREGATE(15,6,ROW($A$2:$A$100)/($A$2:$A$100<>""),ROWS($C$2:$C2)*6)))
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top