How do I do a conditional sum in Excel? code example Example: EXCEL sum WITH condition SUMIF(range, criteria, [sum_range])