Hi,
See the file that I have made for your purpose. You can download it in this link below.
16/11/2017 - Bob
In column D and G I have given the first date of the week respectively, when the week begins with Sunday, and when it begins with Monday. Meantime please be careful to distinguish formulas in column E
and column H. In column E I have apply formula that work when the week begins with Sunday, and in column
H I have apply formula that work when the week begins with Monday.
Formula in column E, when the week begins with Sunday is this:
=SUMPRODUCT((YEAR($A$3:$A$1000)=YEAR($D3))*(ISOWEEKNUM($A$3:$A$1000+1)=WEEKNUM($D3,1))*($B$3:$B$1000))
Formula in column H, when the week begins with Monday is this:
=SUMPRODUCT((YEAR($A$3:$A$1000)=YEAR($G3))*(ISOWEEKNUM($A$3:$A$1000)=ISOWEEKNUM($G3))*($B$3:$B$1000))
or this:
=SUMPRODUCT((YEAR($A$3:$A$1000)=YEAR($G3))*(ISOWEEKNUM($A$3:$A$1000)=WEEKNUM($G3,2))*($B$3:$B$1000))
With those formula you don’t need to put a helper column, to find number of weeks and from this point to find results for which week. You need to have only a column when to give dates for each starting weeks and then to apply the
formula I have given to you.

Hope this helps.
Regards,
IlirU
If my reply response to your questions then please mark it as Answer. Thank you!