excel formula sum of column with conditions code example Example: EXCEL sum WITH condition SUMIF(range, criteria, [sum_range])