if statement in excel to see if sum code example Example: EXCEL sum WITH condition SUMIF(range, criteria, [sum_range])