Cumulative Moving Average Help

nparrillo

New Member
Joined
Mar 27, 2023
Messages
29
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi All,

I am trying to get help with a 3 month cumulative moving average. In my attached example I will have 2 columns of data, Water Producted & Water Disposed Cost. In a third column I am trying to calculate the cumulative moving average looking backward.

For example: Month 3: (SUM Month 3,2,1 Water Produced) / (SUM Month 3,2,1 Water Disposed = $1.15 as shown in the example. As you move to the next month it would shift accordingly. Month 1 would just be itself, Month 2 would be Month 1 & 2. and then so on.

I have previously used and equation similar to =SUM(TAKE(B$2:B2,,(-1*3)))/SUM(TAKE(A$2:A2,,(-1*3))) where it had worked fine but I cannot get it to work. See attached example.

Thank you!
 

Attachments

  • Cumulative Moving Average.jpg
    Cumulative Moving Average.jpg
    155.2 KB · Views: 10

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
It looks like you need H2: =SUM(TAKE(B$2:B2,-3))/SUM(TAKE(C$2:C2,-3))
 
Upvote 0
It looks like you need H2: =SUM(TAKE(B$2:B2,-3))/SUM(TAKE(C$2:C2,-3))
Column H is supposed to show what the values should be if the formula worked. I have manually done a simple formula for each of the cells in H to show.

The actual formula I listed, does not seem to move properly.
 
Upvote 0
Upvote 1
Solution
Did you try my formula?

ABCDEFGHI
1Check
246,00933,97246,00933,9721.351.35
330,02934,51976,03868,4911.111.11
423,61921,83999,65790,3301.101.10
513,68119,23167,32975,5890.890.89
614,02915,77551,32956,8450.900.90
710,15612,69537,86647,7010.790.79
810,72713,78934,91242,2590.830.83
Sheet1
Cell Formulas
RangeFormula
E2:F2E2=B2
E3:F3E3=SUM(B2:B3)
E4:F8E4=SUM(B2:B4)
H2:H8H2=SUM(TAKE(B$2:B2,-3))/SUM(TAKE(C$2:C2,-3))
I2:I8I2=E2/F2

I don't know how you're getting your numbers in column H?
I did try it. For example, your
Did you try my formula?

ABCDEFGHI
1Check
246,00933,97246,00933,9721.351.35
330,02934,51976,03868,4911.111.11
423,61921,83999,65790,3301.101.10
513,68119,23167,32975,5890.890.89
614,02915,77551,32956,8450.900.90
710,15612,69537,86647,7010.790.79
810,72713,78934,91242,2590.830.83
Sheet1
Cell Formulas
RangeFormula
E2:F2E2=B2
E3:F3E3=SUM(B2:B3)
E4:F8E4=SUM(B2:B4)
H2:H8H2=SUM(TAKE(B$2:B2,-3))/SUM(TAKE(C$2:C2,-3))
I2:I8I2=E2/F2

I don't know how you're getting your numbers in column H?
That worked, thank you.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top