So, I now read that you want a *single* cell to display the average of the
*last 12* entries in a column ... right?
With data in A1 to A100, try this *array* formula:
=AVERAGE(A100:INDEX(A1:A100,LARGE(ROW(1:100)*(A1:A100<>""),12)))
--
Array formulas are entered using CSE, <Ctrl> <Shift> <Enter>, instead of the
regular <Enter>, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually.
NOW ... this will average the bottom (last)12 numbers in A1 to A100,
BUT ... If you have *less* then 12, it will *still* return the average for
any values entered.
*Caveat*
It will *not* count *empty* cells to be included in the 12 cells to average.
SO, if you have no values for a particular month, you'll have to enter a
zero in that cell so it can be included in the average.
--
HTH,
RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================
RagDyer,
I guess I should have used a better example, I was looking for something
that would provide the average as follows:
example 1
1/2005 through 12/2005 and then when 1/2006 got populated the average would
be of 2/2005 through 1/2006 and keep rolling as I added more data.
Thank you for your response.