Monthly demand to weekly demand

yuvaraj859

New Member
Joined
Dec 5, 2021
Messages
4
Office Version
  1. 2010
Platform
  1. Windows
Hi ,
How to split the year or monthly demand to weekly demand for the every month

for example - Dec monthly demand is 5648 , working days is 27 ( excluding sunday ) avg per day is 209, 1st week should be 837, 2nd wk -1255, 3rd wk -1255, 4th wk -1255 , 5th wk -1046.

like this every month how can i spilt ,

can anyone tell any formula or macros for this
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi yuvaraj859,

I assume your weeks must run Mon to Sun, hence the short first week of December 2021.

You can condense some calculations but I don't know how your data looks and how you want results presented so here is an approach showing most of the working out.

yuvaraj.xlsx
ABCDEFGH
1DemandWeek Start01-Dec-2106-Dec-2113-Dec-2120-Dec-2127-Dec-21
25648Week End05-Dec-2112-Dec-2119-Dec-2126-Dec-2131-Dec-21
3Daily DemandWorking Days46665
4209.19Working Days x Daily Demand8371255125512551046
Sheet1
Cell Formulas
RangeFormula
E1:H1E1=D2+1
D2:H2D2=MIN(D1+(7-WEEKDAY(D1,11)),EOMONTH(D1,0))
D3:H3D3=NETWORKDAYS.INTL(D1,D2,11)
D4:H4D4=ROUND(D3*$A$4,0)
A4A4=ROUND(A2/NETWORKDAYS.INTL(D1,EOMONTH(D1,0),11),2)
 
Upvote 0
ok thank you ..

tell me Dec monthly demand is 5648 working days is 27, jan demand 4000 working days is 22 days.
 
Upvote 0
The only two cells to change are shown in amber. If you enter 5648 and start 1 Dec 2021 then it shows the working days for each week as 4,6,6,6,5 so =27 and it shows that 5648 broken down by week, 837, 1255, 1255, 1255, 1046.

For January enter 4000 and change to start to 1/1/2022 and it shows the breakdown.

You really need to share how your sheet looks and where you want the calculations to go if you want further help.

yuvaraj.xlsx
ABCDEFGHI
1DemandWeek Start01-Jan-2203-Jan-2210-Jan-2217-Jan-2224-Jan-2231-Jan-22
24000Week End02-Jan-2209-Jan-2216-Jan-2223-Jan-2230-Jan-2231-Jan-22
3Daily DemandWorking Days166661
4153.85Working Days x Daily Demand154923923923923154
Sheet1 (2)
Cell Formulas
RangeFormula
E1:I1E1=D2+1
D2:I2D2=MIN(D1+(7-WEEKDAY(D1,11)),EOMONTH(D1,0))
D3:I3D3=NETWORKDAYS.INTL(D1,D2,11)
D4:I4D4=ROUND(D3*$A$4,0)
A4A4=ROUND(A2/NETWORKDAYS.INTL(D1,EOMONTH(D1,0),11),2)
 
Upvote 0
Hi

i have pasted the data.

1640408851875.png
 
Upvote 0
I'm not following. I'm not sure why the first week is week 2 starting 3 Jan, but the real challenge is I can't see how you derive the working days for each month or week.

You show week 6 has 1 working day but what about Feb 2nd to Feb 6th?
I see February has 24 working days stated but with the 5, 5 and 6 for Feb 7th to Feb 27th and potentially the 1 for the week started 31st Jan then that suggests week commencing 28th Feb has 7 working days, which would seem incorrect.

The January calculation is simple enough (404/22=18.36363636 so multiply each week's working days by that number gives 110.1818182 plus 73.45454545 plus 110.1818182 plus 91.81818182 plus 18.36363636 works us back to 404) but the split weeks won't always be just 1 working day so you need to know which are the actual working dates.

If you can confirm how the working days are reduced from the 6, Monday to Saturday, then you can perform the calculation. I assume it's some set of Public Holidays so if you provide the list of those dates it can be incorporated into the formula.
 
Upvote 0
Below I'm showing a possible solution if the days not worked (unless Sunday) can be put in a list of dates. My list is almost random and put into column A, but you could move that to another Sheet. I've moved the week columns to be below the month input, just to make it easier to see on the mini-sheet.

I've made two rows for each week:
  • Working Days 1st being the calculated working days for that week start up to that date plus 6 days or, if that takes us into the next month, then the end of that month.
  • Working Days 2nd checks if the start week plus 6 takes us into the next month and if so it calculates working days from the 1st of that month to the start week plus 6 days.
In most cases Working Days 2nd will be zero but when a week spans two months, as in week commencing 31st Jan, then Working Days 1st is calculated as 1, for 31st Jan, and Working Days 2 is calculated as 5, being working days from 1st Feb to 6th Feb.

The Total Production Plan then becomes the average daily production for the month of the start week multiplied by the Working Days 1st plus the average daily production for the month of the start week plus 6 days multiplied by the Working Days 2nd.

yuvaraj.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1Non-Workind Dates
201-Jan-22Working Days222425242525262625262626
314-Jan-22Customer Part No.Jan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22Oct-22Nov-22Dec-22
415-Jan-22155001AD4041526144415501280743100010001000100010001000
526-Jan-22
611-Mar-22
712-Mar-22
814-Apr-22
915-Apr-22Date03-Jan-2210-Jan-2217-Jan-2224-Jan-2231-Jan-2207-Feb-2214-Feb-2221-Feb-2228-Feb-2207-Mar-2214-Mar-2221-Mar-2228-Mar-2204-Apr-2211-Apr-2218-Apr-2225-Apr-2202-May-2209-May-2216-May-2223-May-2230-May-2206-Jun-2213-Jun-22
1014-May-22Working Days 1st646516661466464666566265
1114-Jun-22Working Days 2nd000050005000200000000400
1215-Aug-22WeekNUM2345678910111213141516171819202122232425
1302-Sep-22Total Production Plan1107311092336382382382352231347347360388258388388307256307307221178149
1402-Oct-22
1524-Dec-22
1625-Dec-22
2nd
Cell Formulas
RangeFormula
F2:Q2F2=NETWORKDAYS.INTL(F3,EOMONTH(F3,0),11,$A$2:$A$999)
F3F3=E9
G3:Q3G3=EOMONTH(F3,0)+1
F9:AB9F9=E9+7
E10:AB10E10=NETWORKDAYS.INTL(E9,MIN(E9+6,EOMONTH(E9,0)),11,$A$2:$A$999)
E11:AB11E11=IF(MONTH(E9)=MONTH(E9+6),0,NETWORKDAYS.INTL(DATE(YEAR(E9+6),MONTH(E9+6),1),E9+6,11,$A$2:$A$999))
E12:AB12E12=WEEKNUM(E9)
E13:AB13E13=ROUND((INDEX($F$4:$AAA$4,MATCH(E9,$F$3:$AAA$3,1))/INDEX($F$2:$AAA$2,MATCH(E9,$F$3:$AAA$3,1))*E10)+(INDEX($F$4:$AAA$4,MATCH(E9+6,$F$3:$AAA$3,1))/INDEX($F$2:$AAA$2,MATCH(E9+6,$F$3:$AAA$3,1))*E11),0)
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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