I have seen people use SUM in calcs when there is no need to use it and I just assumed that they didn’t know what they were doing but I just downloaded a template from excel and they use it as well. So I am wondering maybe there is a good reason to do that and I am completely missing something.
Example:
=IF(SUM(A20)>0,SUM((A20*E20)-F20),"")
Why not just:
=IF(A20>0, (A20*E20)-F20, "")
I see two reasons why people use sum in such situation:
#VALUE!error. Wrapping it withSUMwill cast a string to a 0.While the latter has some use, it’s normally better to ensure consistent data – or handle it more explicit in the formula, e.g.
IF(ISTEXT(A1),0,A1).I do not see any reason why someone would wrap the result of a formula in a SUM…