The SUMIFS function, one of the math and trig functions, adds all of its arguments that meet multiple criteria.