The SUMIF function, also known as Excel conditional sum, is used to add cells based on a certain condition, or criteria.