How to Apply SUMIFS with Multiple Criteria in Different Columns

 

Method 1 – Apply the SUMIFS Function with Comparison Operators

We are going to sum all the values greater than a given benchmark from a subset of the table (the criteria value). Our criteria value is in cell H4, and the comparison value is in cell H5.

Steps:

  • Select cell H6.
  • Use the following formula in the cell.

=SUMIFS(D5:D15,C5:C15,H4,D5:D15,H5)

  • Press Enter.

Apply SUMIFS Function with Comparison Operators

  • You will get the sum result.

Read More: How to Use SUMIFS with Multiple Criteria in the Same Column


Method 2 – Using the SUMIFS Function with a Date Value

We have added a new column F for Delivery Date. Our vendor criteria value will be in cell I4. We will sum how many items have already been delivered or will be delivered in the next 20 days.

Steps:

  • Select cell I5.
  • Use the following formula in the cell.

=SUMIFS(D5:D15, F5:F15,">="&TODAY()-20, F5:F15,"<="&TODAY(),C5:C15,I4)

  • Press Enter.

Using SUMIFS Function with Date Value

  • It will show you zero (0) in cell I5.
  • Insert the vendor criteria in cell I4. We wrote David.

Insert the criteria to use the SUMIFS function for multiple criteria in different columns

  • The formula sums up the quality of the product which lies within our time limit.

Method 3 – Applying the SUMIFS Function for Blank Cells

We have 4 entities for vendor David. Among them, 2 delivery dates are blank cells. We’ll sum the number of items for those sales.

Steps:

  • Select cell I5.
  • Insert the following formula inside the cell.

=SUMIFS(D5:D15, F5:F15,"=",C5:C15,I4)

  • Press Enter, and you will get a 0 value in that cell.

Applying SUMIFS Function with Blank Cells for Multiple Criteria

  • Write down David as the vendor criteria in cell I4.
  • The formula will sum up the quality of the product for the blank cells, and the other two cells will be omitted.

Input David as a criteria to use SUMIF function for multiple criteria in different columns


Method 4 – Utilizing the SUMIFS Function with Multiple OR Criteria

We’ll sum up the sales for multiple vendors in a given month.

Steps:

  • Select cell I7.
  • Insert the following formula inside the cell.

=SUMIFS(D5:D15,C5:C15, I5, F5:F15,">=7/1/2021", F5:F15, "<=7/31/2021") + SUMIFS(D5:D15, C5:C15, I6, F5:F15, ">=7/1/2021", F5:F15, "<=7/31/2021")

  • Press Enter.

Utilizing SUMIFS Function with Multiple OR Criteria in Different Columns

Breakdown of the Formula

SUMIFS(D5:D15,C5:C15, I5, F5:F15,”>=7/1/2021″, F5:F15, “<=7/31/2021”): The SUMIF function sums up all the values between our criteria. Here, the value is 10.

SUMIFS(D5:D15, C5:C15, I6, F5:F15, “>=7/1/2021”, F5:F15, “<=7/31/2021”):  The SUMIF function sums up all the values defined in our another criterion. Here, the value is 12.

SUMIFS(D5:D15,C5:C15, I5, F5:F15,”>=7/1/2021″, F5:F15, “<=7/31/2021”) + SUMIFS(D5:D15, C5:C15, I6, F5:F15, “>=7/1/2021”, F5:F15, “<=7/31/2021”): Finally, the addition operator add both values and show it in cell I7. Here, the value is 22.

Read More: Excel SUMIFS with Multiple Vertical and Horizontal Criteria


Method 5 – Using an Array Argument in SUM and SUMIFS Functions

Let’s add up the sales for two vendors, David and Wayne for July.

Steps:

  • Select I5.
  • Insert the following formula inside the cell.

=SUM(SUMIFS(D5:D15,C5:C15, {"David","Wayne"}, F5:F15,">=7/1/2021", F5:F15, "<=7/31/2021"))

  • Press Enter.

Using Array Argument in SUM and SUMIFS Functions

Breakdown of the Formula

SUMIFS(D5:D15,C5:C15, {“David”,”Wayne”}, F5:F15,”>=7/1/2021″, F5:F15, “<=7/31/2021”): The SUMIF function figure out the values validated between our criteria. Here, the value is 10, 12.

SUM(SUMIFS(D5:D15,C5:C15, {“David”,”Wayne”}, F5:F15,”>=7/1/2021″, F5:F15, “<=7/31/2021”)):  At last, the SUM function adds both values get by the SUMIF function. Here, the value is 22.

Read More: SUMIFS: Sum Range Across Multiple Columns


Method 6 – Combining SUMPRODUCT, ISNUMBER, and MATCH Functions for SUMIF

Our criteria are in the range of cells I4:I6. Here, we will determine the Total Price for our criteria.

Steps:

  • Select cell I7.
  • Use the following formula inside the cell.

=SUMPRODUCT(--(D5:D15>=I4), --(ISNUMBER(MATCH(C5:C15, I5:I6,0))), E5:E15)

  • Press Enter.

Combining SUMPRODUCT, ISNUMBER, and MATCH Functions for SUMIF Application for Multiple Criteria in Different Columns

Breakdown of the Formula

MATCH(C5:C15, I5:I6,0): The MATCH function will check the criteria and define them with 1 and 2. Here, we get three 1 for David and one 2 for Wayne.

ISNUMBER(MATCH(C5:C15, I5:I6,0)):  The ISNUMBER function checks the result of the MATCH function. If the result is numeric, it will show TURE. Otherwise, it will display FALSE.

SUMPRODUCT(–(D5:D15>=I4), –(ISNUMBER(MATCH(C5:C15, I5:I6,0))), E5:E15): Finally, the SUMPRODUCT function sum the total price. Here, the value is $15,000.00.

Read More: How to Apply SUMIFS with INDEX MATCH for Multiple Columns and Rows


Things to Remember

  • In Excel, the order of arguments of the SUMIF and SUMIFS functions are different. In particular, sum_range is the first parameter in SUMIFS, but it is the third in SUMIF.
  • In the SUMIFS function, you need an equal number of ranges and criteria applied to them.

Download the Practice Workbook


Related Articles


<< Go Back to Excel SUMIFS with Multiple Criteria | Excel SUMIFS Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Abdullah Al Murad
Md. Abdullah Al Murad

Md. Abdullah Al Murad is a computer engineer who loves exploring Excel and VBA programming. Programming, to him, is a time-saving tool for efficiently managing data, files, and internet tasks. He is proficient in C, C++, Python, JavaScript, HTML, SQL, MySQL, PostgreSQL, Microsoft Office, and VBA and goes beyond the basics. He holds a B.Sc. in Computer Science and Engineering from American International University-Bangladesh. He has transitioned into the role of a content developer. Beyond his work, find... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo