You can't really use VLOOKUP within SUMPRODUCT but first things first the VLOOKUP itself doesn't make sense:
VLOOKUP($BZ$7:$BZ$15,$C$39:$C$49,K38,FALSE)
ie the table_array contains only one column - I think C49 should be Q49, correct ?
Given the restriction on VLOOKUP, current config. (numerical nature of the condition) then based on your sample file you could perhaps use:
H31:
=SUMPRODUCT(($D$7:$D$15="CO")*($H$7:$H$15="C")*($I$7:$I$15="Y")*$AS$7:$AS$15*$BJ$7:$BJ$15*SUMIF($C$39:$C$49,$BZ$7:$BZ$15,H$39:H$49)*H22)
Bookmarks