Assuming the load during the week is constant, one could calculate the "week's" length ratio as (F2):
Formula:
=MAX(C:C)/MAX(G:G)
equal 2.64 .
it can be used to select appropriate parts of weeks from left column - for normalized week1 data from weeks 1, 2 and 0,64 of week 3
for normalized week 2 data from 0,36 (rest) of week 3, then whole weeks 4 and 5 and 0.28 of week 6 etc.
I left it in a column-by column easy formulas to calculate whole weeks sum, and parts before first whole week and after last whole week.
The formulas are in yellow cells in attached sheet. In H2 just write 1, and in H3:
Formula:
=H2+$F$2
then the following formulas in cells and copied down
Formula:
I2: =SUMIFS(D:D,C:C,">"&H2,C:C,"<"&H3-1)
J2: =(1+TRUNC(H2)-H2)*VLOOKUP(TRUNC(H2),$C$2:$D$133,2,0)
K2: =(H3-TRUNC(H3))*VLOOKUP(TRUNC(H3),$C$2:$D$133,2,0)
L2: =SUM(I2:K2)
final touches: K51 write 0
H51 copy down one more row to H52 (it's used by I51)
PS. The formulas could be nested into one lon monster-formula (well, I've seen longer on this forum) but it would lose readability while formulas above are rather basic and readable :-)
Enjoy!
Bookmarks