SUMIF Function in Excel
The SUMIF function adds cells specified in range by a certain condition or criteria.
The SUMIF function adds cells specified in range by a certain condition or criteria.
The Syntax for SumIF Function:
=sumif(range,criteria,[sum_range])
Range: A range is a range of cells you want to apply a specific criteria against.
Criteria: The criteria determines which cells to add.
Sum_range: Cells to sum.
Example:
The following example shows how to properly use the SumIf Function. Basically, we are using the SumIf function in Cell D3 to determine how many runs the Tigers scored in Home. The example uses the range A3:A12. The SumIf function matches the word “Home” in the range A3:A12 then adds the runs in the Sum_range B3:B12. Since our criteria is “Home,” the SumIf function ignores all of the away games.

Other Examples:
=SUMIF(A3:A12,C3,B3:B12) —– The SumIf Function returns: 20
=SUMIF(A3:A12,”Home”,B3:B12) —– The SumIf Function returns: 20
=SUMIF(A3:A12,”Away”,B3:B12) —– The SumIf Function returns: 13
Follow Up:
If you have any questions or need something explained further, please comment below.
Excel: SumIf FunctionIn Excel, the SumIf function adds all numbers in a range of cells, based on a given criteria. The syntax for the SumIf function is:
range is the range of cells that you want to apply the criteria against. criteria is used to determine which cells to add. sum_range are the cells to sum. Applies To:
For example: Let’s take a look at an example:
Based on the Excel spreadsheet above:
Using Named RangesYou can also use a named range in the SumIf function. For example, we’ve created a named range called family that refers to column A in Sheet 1.
Based on the Excel spreadsheet above:
To view named ranges: Under the Insert menu, select Name > Define.
|






August 28, 2009
Thanks for tutorials
well written and illustrated
a must read..
Page bookmarked
October 23, 2009
how many colom,for sum_range, if much?
November 5, 2009
It is too good, well illustrated.
I liked, the way how presented.
Thanks!!
Hema
November 6, 2009
Your welcome Hema!
December 23, 2009
thanks for this it enlightened me piz