I have a worksheet that looks similar to the below - the data-set is very large so I just need to be able to create a single formula to take the average of the first 4 values in that row. some at the beginning are blank - I want the formula to ignore blank and take the average of the first four values. I know there is an average formula that ignores blanks - but I just don't know how I can constrict this formula to only take the first 4 values down to about 500k of rows.
[TABLE="width: 704"]
<colgroup><col width="64" span="11" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]January[/TD]
[TD="width: 64"]February[/TD]
[TD="width: 64"]March[/TD]
[TD="width: 64"]April[/TD]
[TD="width: 64"]May[/TD]
[TD="width: 64"]June[/TD]
[TD="width: 64"]July[/TD]
[TD="width: 64"]August[/TD]
[TD="width: 64"]September[/TD]
[TD="width: 64"]November[/TD]
[TD="width: 64"]December[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]20[/TD]
[TD="class: xl66, align: right"]10[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]70[/TD]
[TD="class: xl66, align: right"]70[/TD]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]60[/TD]
[TD="class: xl66, align: right"]70[/TD]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]20[/TD]
[TD="class: xl66, align: right"]10[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]80[/TD]
[TD="class: xl66, align: right"]250[/TD]
[TD="class: xl66, align: right"]80[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]250[/TD]
[TD="class: xl66, align: right"]80[/TD]
[TD="class: xl66, align: right"]20[/TD]
[TD="class: xl66, align: right"]50[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]10[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]0[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]0[/TD]
[TD="class: xl66, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]120[/TD]
[TD="class: xl66, align: right"]10[/TD]
[TD="class: xl66, align: right"]120[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]20[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]50[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]120[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]20[/TD]
[/TR]
</tbody>[/TABLE]
you help is very much appreciated!
[TABLE="width: 704"]
<colgroup><col width="64" span="11" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]January[/TD]
[TD="width: 64"]February[/TD]
[TD="width: 64"]March[/TD]
[TD="width: 64"]April[/TD]
[TD="width: 64"]May[/TD]
[TD="width: 64"]June[/TD]
[TD="width: 64"]July[/TD]
[TD="width: 64"]August[/TD]
[TD="width: 64"]September[/TD]
[TD="width: 64"]November[/TD]
[TD="width: 64"]December[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]20[/TD]
[TD="class: xl66, align: right"]10[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]70[/TD]
[TD="class: xl66, align: right"]70[/TD]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]60[/TD]
[TD="class: xl66, align: right"]70[/TD]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]20[/TD]
[TD="class: xl66, align: right"]10[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]80[/TD]
[TD="class: xl66, align: right"]250[/TD]
[TD="class: xl66, align: right"]80[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]250[/TD]
[TD="class: xl66, align: right"]80[/TD]
[TD="class: xl66, align: right"]20[/TD]
[TD="class: xl66, align: right"]50[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]10[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]0[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]0[/TD]
[TD="class: xl66, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]120[/TD]
[TD="class: xl66, align: right"]10[/TD]
[TD="class: xl66, align: right"]120[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]20[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]30[/TD]
[TD="class: xl66, align: right"]50[/TD]
[/TR]
[TR]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66"] [/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]120[/TD]
[TD="class: xl66, align: right"]50[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]40[/TD]
[TD="class: xl66, align: right"]20[/TD]
[/TR]
</tbody>[/TABLE]
you help is very much appreciated!