SUMIF(range,criteria,sum_range)
the range is the...well....the range of cells you want to be included.
criteria in the form of a number, expression, or text that defines which cells will be added. For example, criteria can be expressed as 32, "32", ">32", "apples".
sum_range is the actual cells to add if their corresponding cells in range match the criteria