I want to calculate monthly values from weekly ones, by taking into account the number of days in the weeks that overlap each month.
Below is an example. Row 5 shows the figures I want to calculate, by referencing the rows above.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]03/05/2015[/TD]
[TD]10/05/2015[/TD]
[TD]17/05/2015[/TD]
[TD]24/05/2015[/TD]
[TD]31/05/2015[/TD]
[TD]07/06/2015[/TD]
[TD]14/06/2015[/TD]
[TD]21/06/2015[/TD]
[TD]28/06/2015[/TD]
[TD]05/07/2015[/TD]
[TD]12/07/2015[/TD]
[TD]19/07/2015[/TD]
[TD]26/07/2015[/TD]
[TD]02/08/2015[/TD]
[TD]09/08/2015[/TD]
[TD]16/08/2015[/TD]
[TD]23/08/2015[/TD]
[TD]30/08/2015[/TD]
[TD]06/09/2015[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]13[/TD]
[TD]14[/TD]
[TD]17[/TD]
[TD]22[/TD]
[TD]18[/TD]
[TD]21[/TD]
[TD]27[/TD]
[TD]26[/TD]
[TD]22[/TD]
[TD]20[/TD]
[TD]19[/TD]
[TD]20[/TD]
[TD]24[/TD]
[TD]25[/TD]
[TD]30[/TD]
[TD]32[/TD]
[TD]34[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]May-15[/TD]
[TD]Jun-15[/TD]
[TD]Jul-15[/TD]
[TD]Aug-15[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]72.42857[/TD]
[TD]98.285714[/TD]
[TD]91.85714[/TD]
[TD]132.1429[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So far I've been using a formula like this for July-15 for example:
=(J2/7*5)+K2+L2+M2+(N2/7*5)
It's taking 5/7 of the values for first and last weeks, because 5 of their 7 days were in July.
However, I want a formula that will do this automatically, simply by referencing the weekly time series, and the month in question. It therefore wouldn't require me to manually change the number of weeks/days depending on the particular month.
Hope that makes sense - really appreciate any help, this has me stuck.
Below is an example. Row 5 shows the figures I want to calculate, by referencing the rows above.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]03/05/2015[/TD]
[TD]10/05/2015[/TD]
[TD]17/05/2015[/TD]
[TD]24/05/2015[/TD]
[TD]31/05/2015[/TD]
[TD]07/06/2015[/TD]
[TD]14/06/2015[/TD]
[TD]21/06/2015[/TD]
[TD]28/06/2015[/TD]
[TD]05/07/2015[/TD]
[TD]12/07/2015[/TD]
[TD]19/07/2015[/TD]
[TD]26/07/2015[/TD]
[TD]02/08/2015[/TD]
[TD]09/08/2015[/TD]
[TD]16/08/2015[/TD]
[TD]23/08/2015[/TD]
[TD]30/08/2015[/TD]
[TD]06/09/2015[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]13[/TD]
[TD]14[/TD]
[TD]17[/TD]
[TD]22[/TD]
[TD]18[/TD]
[TD]21[/TD]
[TD]27[/TD]
[TD]26[/TD]
[TD]22[/TD]
[TD]20[/TD]
[TD]19[/TD]
[TD]20[/TD]
[TD]24[/TD]
[TD]25[/TD]
[TD]30[/TD]
[TD]32[/TD]
[TD]34[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]May-15[/TD]
[TD]Jun-15[/TD]
[TD]Jul-15[/TD]
[TD]Aug-15[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]72.42857[/TD]
[TD]98.285714[/TD]
[TD]91.85714[/TD]
[TD]132.1429[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So far I've been using a formula like this for July-15 for example:
=(J2/7*5)+K2+L2+M2+(N2/7*5)
It's taking 5/7 of the values for first and last weeks, because 5 of their 7 days were in July.
However, I want a formula that will do this automatically, simply by referencing the weekly time series, and the month in question. It therefore wouldn't require me to manually change the number of weeks/days depending on the particular month.
Hope that makes sense - really appreciate any help, this has me stuck.