I confess I'm not entirely sure I follow as I can't validate your "suggested" results to your sample data... I would have expected something like the below for the first category (< 1000)
B4:
=SUMPRODUCT((Sheet1!$C$3:$C$14<1000)*(Sheet1!$D$1:$U$1=B$3)*ISNUMBER(Sheet1!$D$3:$U$14))
copied to D4
B5:
=SUMPRODUCT((Sheet1!$C$3:$C$14<1000)*(Sheet1!$D$1:$U$1=B$3)*Sheet1!$D$3:$U$14)
copied to D5
If the above is not what you want then can you elaborate further as to why the results in your file are as you suggest because I for one could not fathom.
Bookmarks