You could use the workbook open event to automatically copy the value to a storage cell. If on
Sheet1 your cell B2 has the formula
=AVERAGE(A:A)
and you copy and paste its value to cell C2 just before every time you update the values in column
A, then you could use
Private Sub Workbook_Open()
Application.EnableEvents = False
Worksheets("Sheet1").Range("C2").Value = Worksheets("Sheet1").Range("B2").Value
Application.EnableEvents = True
End Sub
Copy the code and place it into the Thisworkbook's codemodule.
See here for more instructions on using event code:
http://www.cpearson.com/excel/Events.aspx
HTH,
Bernie
MS Excel MVP
"Andy_jm" <And...@discussions.microsoft.com> wrote in message
news:9E24B660-0A9B-43D3...@microsoft.com...
Note: find contents of last used cell (column)
=LOOKUP(1E+100,H:H)
Average of last three numbers in a row:
=AVERAGE(OFFSET(A1,0,COUNT(1:1)-3,1,3))
Average of last three numbers in a column:
=AVERAGE(OFFSET(INDIRECT("A" & COUNTA(A:A)),-2,0,3))
HTH,
Ryan--
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.