How to use the SUMIF function in Excel to add the values in a range that meet criteria that you specify.| support.microsoft.com