Got it. Had to use the SUMPRODUCT in an IF statement. SUMPRODUCT was adding up the nonblanks and therefore multiplying the calculation rather than just giving me the calculation. I modified it to:

=IF(SUMPRODUCT(--(AH5:AH104<>""))=0,"",(A*B+C*D)))

Thanks for the help!