difference between sum and sumif excel code example Example: excel sumif =SUMIF (range, criteria, [sum_range])