Dynamic Production Data Calculation

javedmati

Board Regular
Joined
Dec 19, 2008
Messages
213
Hi,

In Column A2 to A31 I have date for April 2018
In Column B2 to B31 I am entering Daily Production Data

Monthly production target is 720,000 (i.e. 24,000 per day in case of April 2018).

If the production on 1st April is say 10,000 (Instead of 24,000) then the required production on daily basis for 2nd April to 30th April should automatically change to 24,482.75 (i.e. (720,000 - 10,000)/29) in order to meet the monthly target of 720,000.

Can someone please help ?

Thanks a lot in advance :)
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Excel 2010
AB
24/1/201810000
34/2/201824482.76
44/3/201824482.76
54/4/201824482.76
64/5/201824482.76
74/6/201824482.76
84/7/201824482.76
94/8/201824482.76
104/9/201824482.76
114/10/201824482.76
124/11/201824482.76
134/12/201824482.76
144/13/201824482.76
154/14/201824482.76
164/15/201824482.76
174/16/201824482.76
184/17/201824482.76
194/18/201824482.76
204/19/201824482.76
214/20/201824482.76
224/21/201824482.76
234/22/201824482.76
244/23/201824482.76
254/24/201824482.76
264/25/201824482.76
274/26/201824482.76
284/27/201824482.76
294/28/201824482.76
304/29/201824482.76
314/30/201824482.76
Sheet6
Cell Formulas
RangeFormula
B3=(720000-SUM($B$2:B2))/(2+30-ROW())
 
Last edited:
Upvote 0
Hi,
I can’t use the formula. Because I need to manually enter every day’s production data which will overwrite the formula.

I believe it has to be a VP script. After entering data for one day I call the MACRO to do the calculations.
 
Upvote 0
Just type the production amounts over each formula and the rest will adjust.
 
Last edited:
Upvote 0
Dear Sir,

Let's say I manually enter production data from B2 to B10. I understand that from B11 to B31 it will automatically update values however if I need to make any changes in the cells B2 to B10 then this will not work since the formula is overwritten.

Please help me
 
Upvote 0

Excel 2010
AB
1
24/1/201810000
34/2/20189873
44/3/201811254
54/4/201819654
64/5/201828733
74/6/201822343
84/7/201814871
94/8/201811000
104/9/20186587
114/10/201829811
124/11/201827793.7
134/12/201833243
144/13/201827490.96
154/14/201827490.96
164/15/201827490.96
174/16/2018132546
184/17/201819987.03
194/18/201819987.03
204/19/201819987.03
214/20/201819987.03
224/21/201819987.03
234/22/201819987.03
244/23/201819987.03
254/24/201865432
264/25/201812412.87
274/26/201812412.87
284/27/201812412.87
294/28/201812412.87
304/29/201812412.87
314/30/201812412.87
Sheet6
Cell Formulas
RangeFormula
B12=(720000-SUM($B$2:B11))/(2+30-ROW())


Note the mix of entered values with formulas. It will work even if there are breaks and you can paste the formula back into the overwritten cells as desired. What am I missing? Do you want all the formula results to be the same no matter where? Right now the earlier formulas are weighted more because they represent a lower deduction from the 720k goal.
 
Last edited:
Upvote 0
Same as above but with the formula cells highlighted in blue:


Excel 2010
AB
1
24/1/201810000
34/2/20189873
44/3/201811254
54/4/201819654
64/5/201828733
74/6/201822343
84/7/201814871
94/8/201811000
104/9/20186587
114/10/201829811
124/11/201827793.7
134/12/201833243
144/13/201827490.96
154/14/201827490.96
164/15/201827490.96
174/16/2018132546
184/17/201819987.03
194/18/201819987.03
204/19/201819987.03
214/20/201819987.03
224/21/201819987.03
234/22/201819987.03
244/23/201819987.03
254/24/201865432
264/25/201812412.87
274/26/201812412.87
284/27/201812412.87
294/28/201812412.87
304/29/201812412.87
314/30/201812412.87
Sheet6
Cell Formulas
RangeFormula
B12=(720000-SUM($B$2:B11))/(2+30-ROW())
 
Upvote 0

Forum statistics

Threads
1,214,553
Messages
6,120,179
Members
448,948
Latest member
spamiki

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