Hi all,
I have a data set that contains a number of week ends i.e. week ending 03/09/23, 10/09/23 etc. and I need to summarise this into a monthly summary. Where the week ending is over two months i.e. 03/09/23 I want it to take the total and divide by 7 and multiply it by the number of days in the month i.e. for 03/09/23 I would want 3 days worth in Sept and 4 days in Aug. Then on top of this I need it to look up categories and bring it back based on those as well as the dates.
Example sheet attached.
The weekly forecast has a helper row in it (Row 10) which identifies the number of days in the month (this may not be needed). I need the formula in the Summary tab cells D13:O26 and D31:O58.
I have the following formula used to do this based on only one sum range and no additional criteria but I don't know how to amend it to do what I need. (see Sheet 1 tab in the file)
=SUMPRODUCT((DATE(YEAR($G$9:$G$18),MONTH($G$9:$G$18),1)=DATE(YEAR(O$8),MONTH(O$8),1))*$I$9:$I$18/7*($H$9:$H$18))+SUMPRODUCT((DATE(YEAR($G$9:$G$18),MONTH($G$9:$G$18),1)=DATE(YEAR(O$8),MONTH(O$8)+1,1))*(7-$I$9:$I$18)/7*($H$9:$H$18))
Thanks in advance.
James
Bookmarks