Hello,
I want excel to find me the last 5 values so then I can do Average, Min, Max...
I found this formula
=AVERAGE(OFFSET(C3,COUNT(C:C),0,-5))
from site
https://exceljet.net/formula/average-last-5-values
</pre>
but the problem is my column is full of numbers and I want it to ignore the Zeros. So what I really want is the last 5 non zero values
Example:
10
20
7
1
4
8
4
0
0
0
0
Here I want the formula to pick up the 4,8,4,1,7. (the 5 last numbers that are not 0)
Should I copy the column to another place removing the zeros first (how to automate it?) and then use the offset on that new column?
much appreciated if anyone could help!
I want excel to find me the last 5 values so then I can do Average, Min, Max...
I found this formula
=AVERAGE(OFFSET(C3,COUNT(C:C),0,-5))
from site
https://exceljet.net/formula/average-last-5-values
</pre>
but the problem is my column is full of numbers and I want it to ignore the Zeros. So what I really want is the last 5 non zero values
Example:
10
20
7
1
4
8
4
0
0
0
0
Here I want the formula to pick up the 4,8,4,1,7. (the 5 last numbers that are not 0)
Should I copy the column to another place removing the zeros first (how to automate it?) and then use the offset on that new column?
much appreciated if anyone could help!