what is sum function in excel code example Example: excel sumif =SUMIF (range, criteria, [sum_range])