SUMIF

From Microsoft Office Spreadsheet Functions