ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to make a cell show average of the last 5 entries in a column? (https://www.excelbanter.com/excel-worksheet-functions/241924-how-make-cell-show-average-last-5-entries-column.html)

Hal

How to make a cell show average of the last 5 entries in a column?
 
I need to make a fixed cell display the average of the last 5 entires in a
column that will periodically have another entry added to it and may at some
point contain 50 or so entries.

Max

How to make a cell show average of the last 5 entries in a column?
 
One way
Assuming continuous numeric data running in A1 down
In B1: =AVERAGE(OFFSET(INDIRECT("A"&COUNT(A:A)),,,-5))
will return the average of the last* 5 numbers in col A
*bottommost
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Hal" wrote:
I need to make a fixed cell display the average of the last 5 entires in a
column that will periodically have another entry added to it and may at some
point contain 50 or so entries.



All times are GMT +1. The time now is 11:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com