Hello,
I'd like to find the 3 day rolling average of two columns while ignoring blanks. Looking at M7 it would be something similar to that formula but ignoring blanks in J and K while automatically finding the previous 3 non blank values. I've tried using offset, large, and various if statements but I keep confusing myself and would appreciate the help.
Thanks!
I'd like to find the 3 day rolling average of two columns while ignoring blanks. Looking at M7 it would be something similar to that formula but ignoring blanks in J and K while automatically finding the previous 3 non blank values. I've tried using offset, large, and various if statements but I keep confusing myself and would appreciate the help.
Thanks!
Bench PA2 PA9 Rolling Average.xlsx | |||||||
---|---|---|---|---|---|---|---|
I | J | K | L | M | |||
3 | Baseline = | 117% | |||||
4 | Date | Std Hrs | Clock Hrs | Productivity | 3 Day Avg | ||
5 | 26-May | 85.8 | 41.25 | 78% | |||
6 | 27-May | 55 | 57 | -18% | |||
7 | 28-May | 113 | 54.75 | 76% | 41.8% | ||
8 | 29-May | 35 | 33 | -9% | 19.9% | ||
9 | 30-May | 15 | 24.25 | -47% | 24.4% | ||
10 | 31-May | -25.4% | |||||
11 | 1-Jun | 55 | 40.5 | 16% | -7.6% | ||
12 | 2-Jun | 50 | 45 | -5% | 5.0% | ||
Bench |
Cell Formulas | ||
---|---|---|
Range | Formula | |
L5:L12 | L5 | =IF(AND(K5=0,J5>0),$J$3,IFERROR(((J5/K5)-$J$3)/$J$3,"")) |
M7:M12 | M7 | =((SUM(J5:J7)/SUM(K5:K7))-$J$3)/$J$3 |
Press CTRL+SHIFT+ENTER to enter array formulas. |