It is not possible to use SUMPRODUCT that way in code. You have to use Evaluate.