Rolling average based on given X and time period count

Elitdarkphoenix

New Member
Joined
Nov 17, 2015
Messages
8
Hello everyone, I have a challenge that you might help me with.

i Have a twofold challenge with my attached data set and i am looking for a formula to provide me the required insight. I need to count the number of months until a product reaches a rolling average value of 2 million. Can you help?

ie: Product 1 reached the 2 million rolling cost in x months
 

Attachments

  • test1.PNG
    test1.PNG
    126.8 KB · Views: 15

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Edit: To enrich the assistance request i came up with this formula: =MATCH($D$2,SUBTOTAL(9,INDIRECT("$D$4"&":"&ADDRESS(ROW(D$8:D$52),COLUMN(D$8)))))
The problem is that it only counts the cumulative value until it reaches the intended target and not the rolling performance.
D2 = Target value
 
Upvote 0
Found my solution: =MATCH($F$2,SUBTOTAL(1,INDIRECT("$D$9"&":"&ADDRESS(ROW(D$9:D$41),COLUMN(D$8)))))
D2 = Target value

By changing the subtotal function number to average (1) i was able to make it work dynamically.
i expanded the indirect address as well so it would not generate a circular logic error.

Function_numFunction_numFunction
(includes hidden values)(ignores hidden values)
1101AVERAGE
2102COUNT
3103COUNTA
4104MAX
5105MIN
6106PRODUCT
7107STDEV
8108STDEVP
9109SUM
10110VAR
11111VARP
 
Upvote 0
Solution

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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