Excel SUMIF Function

This post will guide you how to use Excel SUMIF function with syntax and examples in Microsoft excel.


The Excel SUMIF function sum the numbers in the range of cells that meet a single criteria that you specify. You can use the SUMIF function to sum cells that based on the dates, numbers or texts based on one criteria in Excel.

The SUMIF function will extend the capabilities of the SUM function by giving you a choice that you want only sum those values that meet a single criteria.

The SUMIF function is a build-in function in Microsoft Excel and it is categorized as a Math and Trigonometry Function.

The SUMIF function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2011 for Mac.


The syntax of the SUMIF function is as below:

=SUMIF (range, criteria, [sum_range])

Where the SUMIF function arguments are:

  • Range -This is a required argument. The range of cells that you want to apply the criteria against. And the cells in each range must be numbers, or names, arrays, or references that contain numbers. And if you provide the blank and text values for range argument, the values will be ignored by the SUMIF function.
  • Criteria -This is a required argument. The criteria used to determine which cells in the range to be summed.
  • sum_range – This is an optional argument. The actual cells to sum together, and if this argument is omitted, and the SUMIF function will use the range as the sum_range, it means that the cells in range are added together.


  • Any criteria that includes logical or math symbols must be enclosed in double quotation marks.
  • The numeric criteria can be supplied without quotation marks.
  • You can use the wildcard characters in the criteria argument.

Excel SUMIF Function Examples

The below examples will show you how to use Excel SUMIF Function to sum the values in a range of cells based on one criteria.

Suppose that you have a sales table as shown below:

Product Region Sales
Excel North $210
Word North $230
Access North $190
Excel East $150
Word East $240
Access East $140

1# to sum of the sales of the product “Excel” in all regions, enter the following formula in Cell D1.


excel sumif examples1

2# to sum of the sales of the product “Word” in all regions, enter the following formula in Cell D2.


excel sumif examples2

3# to get total sales from North region, enter the following formula in Cell D3.


excel sumif examples3

Related Functions

  • Excel SUM Function
    The Excel SUM function will adds all numbers in a range of cells and returns the sum of these values. You can add individual values, cell references or ranges in excel.The syntax of the SUM function is as below:= SUM(number1,[number2],…)…
  • Excel SUMIFS Function
    The Excel SUMIFS function sum the numbers in the range of cells that meet a single or multiple criteria that you specify. The syntax of the SUMIFS function is as below:=SUMIFS (sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)…
  • Excel SUMSQ Function
    The Excel SUMSQ function returns the sum of squares of a given set of arguments.The syntax of the SUMSQ function is as below:=SUMSQ(number1, [number2], …)…
  • Excel SUMX2MY2 Function
    The Excel SUMX2MY2 function returns the sum of the difference of squares between two supplied arrays.The syntax of the SUMX2MY2 function is as below:=SUMX2MY2 (array_x, array_y)…

Related Examples

  • Sum Values by Group
    Assuming that you have a table that contain the product name and its sales result. And you have group by those values based on the product name, then you want to sum values based one each product name. You can create a new Excel formula based on the IF function and SUMIF function.…


So empty here ... leave a comment!

Leave a Reply

Your email address will not be published. Required fields are marked *