sum in excel with if condition code example Example: excel sumif =SUMIF (range, criteria, [sum_range])