The SUMIF function in Excel returns the sum of the cells in a range that meet a specific condition.