Or, as an alternative :
Formula: copy to clipboard

=SUMIF(E5:E104,"<>""")
or, as last post:
=IF(SUMIF(AH5:AH104,"<>""")=0,"",(A*B+C*D))


Hope this helps