SUMIF with Multiple Criteria (Table of Contents)
- Excel SUMIF Function with Multiple Criteria
- How to Use SUMIF Function with Multiple Criteria in Excel?
Excel SUMIF Function with Multiple Criteria
SUMIF in excel is used for calculating the total of any specified criteria and range, unlike the sum function, which is a single shot that calculates the total of the whole range without any specific criteria. We can use SUMIF for adding or subtracting different criteria ranges.
It can be accessed from Insert Function from the Math & Trig category.
Syntax for SUMIF
For better understanding, we have shown the syntax below.
Arguments of SUMIF Function:
- Range – This first range is the range for which we need to calculate the sum.
- Criteria – It is for fixing the criteria for what part of the range we need to calculate the sum.
- Sum_Range – It is that range which needs to get summed for defined criteria.
How to Use Excel SUMIF Function with Multiple Criteria?
Let’s understand how to use Multiple Criteria by using some examples in Excel.
SUMIF with Multiple Criteria – Example #1
We got the sales data for some product class. As we can see below, the data which we have has the owner’s names and quantity sold by them for the respective product class.
Now we will apply multiple criteria in the simple SUMIF function.
Considering the multiple criteria for calculating the sum of the above-shown data, we need to apply SUMIF so that we can get the sum of more than 1 owner’s quantity sold data. Here we will calculate the total quantities sold by Ben and Jenny together.
For this, go to the cell where we need to see the output and type the “=” (Equal) sign. This will enable all the inbuilt functions of excel. Now search and select the SUMIF function from the search list.
For calculating the sum of quantities sold by Ben, select the Owner’s name as in range, criteria as BEN, and sum range as complete Quantity Sold column C and press enter.
We will get the sum of Ben’s sold quantity as 24383.
To add another criterion in this syntax, we will add the quantity sold by Jenny with the help of the “+” sign as shown below.
Now press enter to get the total sum.
As we can see in the above screenshot, the quantity sold by Ben and Jenny together is coming as 35607. We can cross-check the sum separately as well to match the count with the SUMIF function.
SUMIF with Multiple Criteria – Example #2
There is another way to apply SUMIF criteria. For this, go to the cell where we need to see the output and click on the Insert function besides the formula bar as shown below.
We will get the Insert Function window. Now from there, select the function SUMIF from Or select a category of ALL as shown below.
We can see the suggested syntax at the bottom of the window. And click on, Ok.
Now in the functional argument box, select the A2 to A9, Criteria as Ben and sum range as C2 to C9 and click on Ok. This will frame the first half of the multiple criteria syntax.
Now insert plus sign (+) as shown below.
And click on Insert Function and search for SUMIF and click on Ok, as shown below.
And now, in the second half of the arguments of SUMIF, multiple criteria select the range and sum range same as selected for the first half of the syntax and enter criteria as Jenny. Once done, click on, Ok.
If we see the complete syntax, it will look like as shown below.
Now press enter to see the final output.
As we can see in the above screenshot, the output of SUMIF with multiple criteria is 35607 same as we got in example 1.
SUMIF with Multiple Criteria – Example #3
There is another method of using SUMIF with multiple criteria. Here we will use the same data which we have seen in example-1. We will also86+ see the calculated value of quantity sold by Ben and Jenny so that we can compare the result obtained from this method with the result got in example-1.
We will use Sum with SUMIF with multiple criteria of Ben and Jenny’s quantity sold.
Now go to the cell where we need to see the output of SUMIF and type “=” sign and search and select Sum function first.
Now search and select the SUMIF function as shown below.
Now select the range as A2 to A9, set the criteria as Ben and Jenny in inverted commas under curly brackets { } and select sum range as C2 to C9, as shown below.
Note: Adding Criteria in curly brackets are necessary. This allows the multiple criteria in the formula. Now press enter to see the result as shown below.
As we can see, the calculated result in example-1 and example-2 are equal. Which says our used multiple criteria for this example is also correct.
Pros of SUMIF with Multiple Criteria
- It is good to use multiple criteria with SUMIFto get the result quickly.
- The syntax may look complex, but it is better to use to once instead of using it in different cells and later adding up then.
- We can insert as many criteria as required.
Cons of SUMIF with Multiple Criteria
- As the syntax for multiple criteria, SUMIF has more than 1 criteria, so sometimes it becomes complex to rectify the error.
Things to Remember
- Use curly brackets {} if you are going to use SUMIF with multiple criteria, as shown in example-3. And in that curly brackets, enter the content manually instead of framing it with cell selection. Curly brackets support only text entered in it.
- Syntax of example 3, i.e. calculating sum with multiple criteria, is small and easy to use, so it is always recommended.
Recommended Articles
This is a guide to SUMIF Function with Multiple Criteria in Excel. Here we discuss how to use SUMIF Function with Multiple Criteria along with practical examples and downloadable excel template. You can also go through our other suggested articles –
13 Online Courses | 100+ Hours | Verifiable Certificates | Lifetime Validity
4.5
View Course
Related Courses