=SUMPRODUCT(IFERROR(F5:F10000,0),IFERROR(I5:I10000,0))

After typing in the formula (but still editing it), press CTRL-SHIFT-ENTER so that Excel treats it as an array formula.