If you can reformat you date ranges in column A of Sheet1 to something like: Nov 16, 2008 - Nov 30, 2008
then you can use a formula, in B3 like:
=SUMPRODUCT((Sheet2!$A$7:$A$193=Sheet1!B$1)*(Sheet2!$E$7:$F$193="X")*(Sheet2!$B$7:$B$193>=LEFT(OFFSET($A3,-ROWS($A$1:$A1)+1,0),FIND("-",OFFSET($A3,-ROWS($A$1:$A1)+1,0))-1)+0)*(Sheet2!$B$7:$B$193<=MID(OFFSET($A3,-ROWS($A$1:$A1)+1,0),FIND("-",OFFSET($A3,-ROWS($A$1:$A1)+1,0))+2,255)+0))
copied down and across the first table....
You can then copy that formula to the 2nd table, but would have to change the ranges to match your Sheet2, section 2, then copy down and across
and repeat for each section's table.
Bookmarks