I'm going to use a helper column in sheet 1 because it isn't possible without it, far as I know...(without VBA anyway) You can simply right click the column and hide it.
I used:
=A2&"_"&INDEX(Sheet2!$B:$B,MATCH(Sheet1!B2,Sheet2!$A:$A,0))
for the helper column, all it does is tell which week the respective name is.
Then I populated the table with this formula:
=SUMIF(Sheet1!$D$2:$D$9,Sheet3!$A2&"_"&Sheet3!B$1,Sheet1!$C$2:$C$9)
I also used unique name ranges and stuff to make that part easier for you also. You can see the name ranges by clicking formulas at the top, then going to name manager. I created one called Name and UniqueName. Few formulas and stuff that make them possible. Most notably, the array entered formula:
=INDEX(Name,MATCH(0,COUNTIF($A$1:A1,Name),0))
which you can see in the unique name column on sheet3.
Workbook attached, let me know if any questions, hopefully the helper column doesn't make the workbook irrelevant...
Bookmarks