Excel SUMIF Function

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

Description

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.

Syntax

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.

Note:

  • 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.

=SUMIF(A2:A7,"Excel",C2:C7)

excel sumif examples1

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

=SUMIF(A2:A7,"Word",C2:C7)

excel sumif examples2

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

=SUMIF(B2:B7,"North",C2:c7)

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.…
  • SUMIF When Partial Text String Match
    If you want to sum cell values in column B and that match one criteria that the cell in the same row contains the partial text string “exc” in column A. You need to create a new formula based on the SUMIF function to achieve the result. .…
  • Sumif with 3D Reference for Multiple Worksheet
    If you want to sum 3d references across the different worksheet, and you need to create a complex formula based on the SUMPRODUCT function, the SUMIF function, and the INDIRECT function..….
  • Sum if Cells Begin with Specific Text or Number in Another Cells
    Assuming that you have a list of data A1:B4, and you want to sum all cells in column B if cells in column A begin with a specific text “excel” or a specific number “201”.You also can create a formula based on the SUMPRODUCT function and the LEFT functio..…
  • Sum Values in a Column based on Criteria in Another Column
    To use a formula to sum values in Column B based on Column A, you can create a formula based on the SUMIF function.You can also create an Excel Pivot Table to sum values based on another column……
  • Sum Values between Two Dates
    If you want to quickly sum values between two dates in Excel, you can create a formula based on the SUMIF function……
  • Sum Multiple Columns based on One Criteria
    You need to create a formula based on the SUM function to sum sale values for all two months in a newly helper column. And then create another formula based on the SUMIF function to sum total values for product “excel”…
  • Sum the Absolute Values
    Assuming that you have a list of data in range B1:B6 that contain negative numbers and positive numbers, and you want to sum all absolute values in these range of cells, You can use a formula based on the SUMIF function to achieve the result….
Related Posts

How to Sum if Equal to Many Items or A Range in Excel
How to Sum if Equal to Many Items 12

If we want to sum numbers from a range with criteria, we often select SUMIF of SUMIFS functions as the first choice to create a formula. The criteria can be a number or an array or a collection of some ...

How to Sum if Equal to X or Y in Excel
How to Sum if Equal to X or Y 19

In daily work, if we want to sum numbers from a range, and only sum the numbers which being equal to X or Y in the range, we can create a formula with Excel build-in functions to get the result. ...

How to Sum if Contains an Asterisk
How to Sum in Last N Days 14

In our daily life, we may want to sum amounts or sales for a specific period, for example in last N days. Sum numbers in Excel is easy to run, we can apply SUM function. But if we want to ...

How to Sum if Contains an Asterisk
How to Sum if Contains an Asterisk 7

To add numbers together we need to apply SUM function. And if we want to add numbers based on some conditions, we can add criteria with the help of SUMIFS function, SUMIFS can filter data with multiple criteria effectively. If ...

How to Sum in Vertical Range
How to Sum in Vertical Range 8

If we want to add numbers based on some conditions in Excel worksheet, we can add criteria with the help of SUMIFS function, SUMIFS can filter data with multiple criteria effectively. In this article, we will introduce you the method ...

How to Sum in Horizontal Range
How to Sum in Horizontal Range9

To add numbers together we need to apply SUM function. But if we want to add numbers based on some conditions, we can add criteria with the help of SUMIFS function, SUMIFS can filter data with multiple criteria effectively. In ...

How to Sum with Criteria and Or Logic in Excel
How to Sum with Criteria and Or Logic in Excel 8

To add numbers together we need to apply SUM function. And if we want to add numbers based on some conditions, we can add criteria with the help of SUMIFS function, SUMIFS can filter data with multiple criteria effectively. If ...

How to Subtotal Values for Groups and Only Keep One Subtotal for A Group in Column
How to Subtotal Values for Groups and Only Keep One Subtotal for A Group in Column14

Sometimes we may meet the case that subtotal values for different groups and only record a subtotal value for one group in a column, for other cells in this group, keep them blank. Today we will introduce you how can ...

How to Sum by Formula If Cells Are Not Blank in Criteria Range
How to Sum by Formula If Cells Are Not Blank in Criteria13

Sometimes we may meet the cases that some blank cells exist in criteria range or sum range. In most situations we will ignore them, so we need to filter data by ‘not blank/not empty’. Today we will introduce you how ...

How to Sum by Formula if Cell Ends with in Excel
How to Sum by Formula if Cell Ends with in Excel14

We have introduced the method of sum numbers based on criteria “sum if cell begins with” (you can refer to ‘How to Sum Data if Begins with in Excel’ on our website). In this article, we will show you the ...

Sidebar