jrtaylor,
I don't understand how
and R26 should be $33.29.
If I have been understanding where the resets occur formula should be averaging M25:M26 in R26, or $24.73 and $75.38. I get $50.05 in R26 with this array entered formula in R9 filled down. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
Formula:
=IF(Q9=0,Q9,AVERAGE(IF(INDEX($M$9:M9,MATCH(2,1/($Q$9:Q9=0),1)+1):INDEX($M$9:M9,MATCH(2,1/($Q$9:Q9>0),1))>0,INDEX($M$9:M9,MATCH(2,1/($Q$9:Q9=0),1)+1):INDEX($M$9:M9,MATCH(2,1/($Q$9:Q9>0),1)))))
What am I missing?
Bookmarks