SUMIF(range,criteria)
SUMIF function sums the values in the given range that meet the given criteria.
COUNTIF , SUM