I want to average the last non zero values that fall within the last 30 entries. Entries will be added regularly.
I also want to know if there is a way to re-display the values of the last 30 rows in another table within the same sheet and if it can update automatically as new rows are added.
the equation I have is: but I do not how to change it. Right now it gives me the average of the last 30 non zero values of the column regardless of whether it lies in the last 30 entries.
=AVERAGE(IF(ROW(A1:A100)>=LARGE(IF(A1:A100,ROW(A1:A100)),30),IF(A1:A100,A1:A100)))
</pre>
I also want to know if there is a way to re-display the values of the last 30 rows in another table within the same sheet and if it can update automatically as new rows are added.
the equation I have is: but I do not how to change it. Right now it gives me the average of the last 30 non zero values of the column regardless of whether it lies in the last 30 entries.
=AVERAGE(IF(ROW(A1:A100)>=LARGE(IF(A1:A100,ROW(A1:A100)),30),IF(A1:A100,A1:A100)))
</pre>