ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Using the OFFSET and COUNT functions to get a moving total (https://www.excelbanter.com/excel-discussion-misc-queries/53075-using-offset-count-functions-get-moving-total.html)

Eduardo

Using the OFFSET and COUNT functions to get a moving total
 
I am currently using the following formula:
=OFFSET(D10,COUNT(D11:D202),0). This inserts in a cell the value of the
last item in column D. What I am trying to figgure out is how to get
the total of the last 12 enteries in column D. ie. as each new value is
entered into that column, it should automaticaly calculate the total of
the last 12 values.
Thanks, Eduardo


Biff

Using the OFFSET and COUNT functions to get a moving total
 
Hi!

Assuming that there are no empty cells within the range:

=SUM(OFFSET(D10,COUNT(D11:D202),,-12))

Biff

"Eduardo" wrote in message
oups.com...
I am currently using the following formula:
=OFFSET(D10,COUNT(D11:D202),0). This inserts in a cell the value of the
last item in column D. What I am trying to figgure out is how to get
the total of the last 12 enteries in column D. ie. as each new value is
entered into that column, it should automaticaly calculate the total of
the last 12 values.
Thanks, Eduardo




Eduardo

Using the OFFSET and COUNT functions to get a moving total
 
Thanks, it worked. Eduardo



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

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