Highest/lowest average of N consecutive rows ignoring blanks

plotting

New Member
Joined
Jun 13, 2016
Messages
21
Here is a sample list of data that I want to see if I can find a running list of highest and lowest averages over a given cell count, ignoring blanks
1655132561634.png


For instance, the highest 3 week period would be A1:A4 = 101.10% and the lowest would be A14:A16 = 89.87%
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
If you have LET, then try:

Book3
ABCDE
198.52%# of consecutive weeksHighLow
2103.35%3101.10%89.87%
3
4101.43%
591.59%
690.44%
790.30%
891.67%
995.22%
1096.19%
1189.15%
1290.80%
1392.02%
1487.98%
1592.17%
1689.47%
1792.59%
1899.39%
Sheet3
Cell Formulas
RangeFormula
D2:E2D2=LET(f,FILTER(ROW(A1:A20),A1:A20<>""),s,SEQUENCE(ROWS(f)-C2+1),ss,INDEX(f,s)-1,sl,INDEX(f,s+C2-1)-ss,AGGREGATE({14,15},6,SUBTOTAL(1,OFFSET(A1,ss,0,sl)),1))
Dynamic array formulas.


If you don't have LET, then I think this will require VBA.

I'd also like to add that averaging averages is mathematically suspect, and should ONLY be done if the number of data points in each average is the same.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,584
Messages
6,125,669
Members
449,248
Latest member
wayneho98

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