Freedom Mortgage interview question

What does SUMIF do in Excel?