Distribute Weekly Amount Monthly

molopez

New Member
Joined
Dec 18, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello!

I have a set of columns for Start / Finish / Weekly Amount, and the goal is to distribute the weekly amount into each month.

I attached a sample sheet with what the results should be.

Thanks for your help.

Monthly Distribution.xlsx
ABCDEFGHIJKLMNOPQRSTUV
1StartFinishDuration dDuration wWeekly Amount7/17/20237/24/20237/31/20238/7/20238/14/20238/21/20238/28/20239/4/20239/11/20239/18/20239/25/202310/2/202310/9/202310/16/202310/23/202310/30/2023
27/19/20238/3/202315.002.141111
38/7/202310/26/202380.0011.4311111111111111
4
5
6
7
8
9
10
11StartFinishDuration dDuration wWeekly Amount7/31/20238/31/20239/30/202310/31/2023
127/19/20238/3/202315.002.1413
138/7/202310/26/202380.0011.431445
Sheet1
Cell Formulas
RangeFormula
G1G1=MIN($A$2:$A$3)-WEEKDAY(MIN($A$2:$A$3,1)+1)
H1:V1H1=IF(G$1<(MAX($B$2:$B$3,1)+1),(G$1+7),"")
C2:C3,C12:C13C2=B2-A2
D2:D3,D12:D13D2=(B2-A2)/7
G11G11=EOMONTH(MIN($A$12:$A$13),0)
H11:J11H11=IF(G$11<EOMONTH(MAX($B$12:$B$13),0),EOMONTH(G$11,1),"")
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
New formula starting in G12:

$scratch.xlsm
GHIJ
117/31/20238/31/20239/30/202310/31/2023
123   
13 445
Monthly Amount
Cell Formulas
RangeFormula
G11G11=EOMONTH(MIN($A$12:$A$13),0)
H11:J11H11=IF(G$11<EOMONTH(MAX($B$12:$B$13),0),EOMONTH(G$11,1),"")
G12:J13G12=LET(S,SUMIFS($G2:$V2,$G$1:$V$1,">"&EOMONTH(G$11,-1),$G$1:$V$1,"<="&G$11),IF(S=0,"",S))
 
Upvote 0
Solution
One other note: It appears that you are associating each number with the Monday date for that week. I assume this is intended to be the start of the week. So an event that occurs on 9/1 will be counted in the week of 8/28. You are allocating numbers to months based on the week's start dates, so therefore that event on 9/1 will be counted as being in August. Hopefully that is what you really want. The only way to put these in the true calendar months is to have daily data.
 
Upvote 0
One other note: It appears that you are associating each number with the Monday date for that week. I assume this is intended to be the start of the week. So an event that occurs on 9/1 will be counted in the week of 8/28. You are allocating numbers to months based on the week's start dates, so therefore that event on 9/1 will be counted as being in August. Hopefully that is what you really want. The only way to put these in the true calendar months is to have daily data.
Yes, I already had a distribution based on a calculated daily amount, but the data I was given was in a weekly basis. That's why I was wondering if there was a better way.

Anyways, your solution really works :D

Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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