The SUMIFS function has become a staple in Excel due to its versatility and power in handling multiple conditions during summing operations. Its ability to filter and aggregate data based on various criteria makes it indispensable for financial analysts, accountants, data analysts, and anyone who works with large datasets.

SUMIFS is an extension and enhancement of the SUMIF function. While SUMIF was a significant step forward, allowing users to sum data based on a single condition, it had limitations when dealing with more complex data sets that required analysis based on multiple criteria. Recognizing the need for a more powerful tool, Microsoft introduced SUMIFS in Excel 2007 released as part of Office 2007. This new function maintained the core concept of SUMIF but extended its capabilities to handle multiple criteria across different ranges.

In this article, we will delve into the intricacies of the SUMIFS function in Excel, exploring its syntax, examples, and essential tips for seamless integration into your Excel workbook. Whether you're a seasoned Excel user or just embarking on your spreadsheet journey, this guide will equip you with the knowledge to use the SUMIFS function effectively.


Which Versions of Excel Support SUMIFS?

The SUMIFS function was introduced in Microsoft Excel 2007. Therefore, it is supported in Excel 2007 and all subsequent versions, including:

  • Excel 2010
  • Excel 2013
  • Excel 2016
  • Excel 2019
  • Excel for Microsoft 365 (previously known as Office 365)
  • Excel for Mac (2008 and later versions)
  • Excel for the web (part of Microsoft 365)

SUMIFS Syntax

The SUMIFS function in Excel is designed to sum up values in a range based on one or more criteria. Its syntax is a bit more complex than that of the SUMIF function because it can handle multiple criteria. Understanding the syntax is key to using SUMIFS effectively.

SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)


Arguments

sum_range This is the range of cells that will be summed up. It's a required argument and should contain the numbers you want to add together.
criteria_range1 This is the first range where criteria1 is to be applied.
criteria1 The criteria that is applied to criteria_range1 to define which cells to add. The criteria can include logical operators (like >, <, =, <>) and wildcards (like * for multiple characters and ? for a single character) for partial matching.
[criteria_range2, criteria2] Optional. Additional ranges and their associated criteria pairs. You can enter up to 127 range/criteria pairs. Each criteria_range must be the same size and shape as sum_range.

Examples of SUMIFS Usage

In the upcoming section, we'll explore a variety of examples that demonstrate the versatility and functionality of the SUMIFS function in Excel. These examples will range from basic to more complex scenarios, illustrating how SUMIFS can be utilized to analyze and aggregate data based on multiple criteria. These examples will provide a comprehensive understanding of how to effectively apply the SUMIFS function in different contexts.

In these examples, our focus will be on utilizing a straightforward data table, which includes columns filled with both text and numeric data. This approach is designed to showcase the practical application of the SUMIFS function in a clear and accessible manner, demonstrating how it can efficiently handle and analyze data that varies in type, from textual entries to numerical values.

Example 1: Simple SUMIFS Formula with a Single Criteria

In this basic yet illustrative example, we explore the use of the SUMIFS function in Excel, applying it with a single criterion. The scenario involves the data table with two specific columns: "Type" and "HP". The "Type" column contains various categories, and the "HP" column is filled with numeric values. Our goal is to calculate the total of the numbers listed in the "HP" column, but this calculation is conditional - it only includes the rows where the "Type" column exactly matches the term "WATER". This task highlights the functionality of SUMIFS in filtering and summing data based on a precise condition.

=SUMIFS(HP,Type,O2)

In this formula, HP represents the range of cells in the "HP" column that we intend to sum up, while Type is the range where the function checks for the criterion, which is the cell O2 which contains the word "WATER". It's important to note that the criterion seeks an exact replication of the term.

Simple SUMIFS Formula with a Single Criteria

In this dataset, there are five rows that meet this criterion, meaning that the SUMIFS function will sum up the values in the corresponding cells of the "HP" column. This straightforward example serves as a perfect demonstration of how SUMIFS can be adeptly used to perform sum operations in Excel based on specific, singular conditions, thereby showcasing its utility in basic data analysis tasks.

It's important to recognize that the SUMIFS function in Excel is inherently case-insensitive. This means that the function treats upper and lower case letters equivalently. Therefore, in our scenario, if the "Type" column contained the word "WATER" in various combinations of upper and lower case letters - such as "WATER" and "water" - the SUMIFS function would still identify and sum these entries under the same criterion. The function's case-insensitive nature ensures consistent results regardless of the text case used in the data.

Example 2: SUMIFS Formula with Multiple Criteria

In this particular example, we're going to explore a more advanced application of the SUMIFS function in Excel, involving two distinct criteria. Our objective is to compute the sum of values in the "HP" column, but this calculation is contingent on specific conditions related to the "Type" and "Generation" columns. Firstly, we require that the "Type" column must strictly match the term "Fire". This exact match is essential to accurately filter the data, especially since our dataset includes variations of the word "FIRE" combined with other characters. These variations are not to be included in our sum, thus necessitating a precise match.

=SUMIFS(HP,Type,"FIRE",Generation,"<>I")

The second criterion introduces an element of exclusion. We aim to sum values in the "HP" column where the corresponding entry in the "Generation" column is not equal to "I". This brings into play the not equal to ("<>") operator within the SUMIFS function, demonstrating its utility in excluding specific data points. By setting this condition, we effectively filter out any rows where "Generation" is labeled as "I", focusing our sum on all other entries.

SUMIFS Formula with Multiple Criteria

Upon applying the SUMIFS function with these criteria, the results show that only one row in the entire dataset fulfills both conditions. As a consequence, the output of our SUMIFS function is simply the value in the "HP" column of that single qualifying row. This outcome effectively demonstrates the power and precision of the SUMIFS function in handling complex criteria. Not only does it allow for exact matching, but it also adeptly incorporates the use of exclusion criteria, thereby showcasing its comprehensive applicability in more nuanced data analysis scenarios in Excel.

Example 3: SUMIFS Formula with Multiple Criteria and Wildcard

In this modified scenario, we employ a variation of the previous example but with a key difference: the introduction of a wildcard in the SUMIFS function. Previously, our focus was on summing values in the "HP" column, exclusively for rows where the "Type" column exactly matched the word "FIRE". This strict criterion meant that any rows where "FIRE" appeared alongside other characters were not included in the calculation. Such a precise match ensured that only rows with "FIRE" and nothing else in the "Type" column contributed to the sum.

=SUMIFS(HP,Type,"*FIRE*",Generation,"<>I")

However, in this updated example, we adjust our approach to broaden the scope of our data selection. Instead of looking for an exact match, we now aim to include all rows that contain the word "FIRE" in the "Type" column, regardless of whether it appears with additional characters. To achieve this, we utilize a wildcard character in our SUMIFS function. Wildcards are special characters that represent one or more other characters, and in this case, they allow us to capture all variations of "FIRE" within the dataset, such as "FIRE, FLYING", "FIRE, GROUND", or simply "FIRE".

SUMIFS Formula with Multiple Criteria and Wildcard

By applying this wildcard approach, additional rows that were previously excluded are now considered in our sum calculation. The SUMIFS function, therefore, sums up the values in the "HP" column for all rows where the "Type" column contains the word "FIRE", in any form. This adjustment exemplifies the flexibility and adaptability of the SUMIFS function, showcasing how slight modifications in criteria, like the introduction of wildcards, can significantly alter the outcome and applicability of the function in various data analysis contexts in Excel.

Example 4: SUMIFS Formula with Three Criteria

This example illustrates a more complex application of the SUMIFS function in Excel, where we integrate three distinct criteria into a single formula. Our objective in this scenario is to sum values in the "HP" column, but this summation is constrained by specific conditions across three different columns. The first criterion is that the "Type" column must be exactly "WATER". This condition filters the dataset to focus only on rows that correspond to the "WATER" category.

=SUMIFS(Total,Type,"WATER",Attack,">=50",Sp.Atk,"<100")

The second and third criteria involve numerical comparisons in two separate columns: "Attack" and "Sp. Atk". For the "Attack" column, we set the condition that the numbers must be greater than or equal to 50. This criterion selectively includes rows where the attack value meets or exceeds this threshold. Conversely, for the "Sp. Atk" column, our condition is that the numbers must be smaller than 100. This ensures that only rows with special attack values below this limit are considered for the summation. These numerical conditions work in conjunction with the categorical criterion on the "Type" column to refine the data selection further.

SUMIFS Formula with Three Criteria

Applying the SUMIFS function with these three criteria reveals that only two rows in the dataset meet all the specified conditions. As a result, the function computes the sum of the "HP" values in just these two rows. This example showcases the SUMIFS function's capability to handle multiple, diverse criteria simultaneously, demonstrating its effectiveness in extracting and summarizing data that meets a complex set of requirements. This advanced use of SUMIFS is particularly valuable in scenarios where data analysis requires stringent filtering across various data types and ranges.

 

Download Workbook


SUMIFS Function Tips

  • Always use same number of rows and columns for sum and criteria range arguments.
    • Bad Example: =SUMIFS(G2:G15,F2:H10,">2014",J2:J20,"IT")
    • Good Example: =SUMIFS(G2:G11,F2:F11,">2014",J2:J11,"IT")
  • SUMIFS function supports the following comparison operators:
Operator Description Criteria Sample Criteria Meaning
= Equal to “=10000” Equal to 10000
<>  Not equal to “<>10000” Not equal to 10000
Greater than “>10000” Greater than 10000
Less than “>10000” Less than 10000
>= Greater than or equal to “>=10000” Greater than or equal to 10000
<= Less than or equal to “<=10000” Less than or equal to 10000
? Takes the place of a single character “Admin?” 6-character word starts by “Admin”
* Can take the place of any number of characters. “Admin*” Any number of character word starts with “Admin”
~ Use tilde in front of a  question mark or an asterisk to actually find them “Admin~*” Equal to "Admin*"

Note: Wildcards cannot be used for numeric values. Searching a wildcard in a range of numeric values returns no matches.


Potential Issues and Errors in SUMIFS Function

#VALUE! With Match String That Exceeds 255 Characters

When using the SUMIFS function in Excel to match strings, it's important to be aware of its limitations with regard to string length. Specifically, the function can yield incorrect results if it's used to match strings that exceed 255 characters in length. Additionally, attempting to match the string "#VALUE!" with SUMIFS can also lead to inaccurate outcomes.

TRUE and FALSE Values Within Sum Range

When utilizing the SUMIFS function in Excel, it's important to understand how it interprets TRUE and FALSE values within the sum_range. In the context of this function, TRUE is evaluated as the number 1, and FALSE is evaluated as 0. This numerical interpretation of boolean values can lead to unexpected results, particularly when these TRUE and FALSE values are included in the summing process along with other numerical values. This aspect is a critical consideration in scenarios where the sum_range includes or interacts with boolean values, as it can significantly impact the overall outcome of the calculation.

In conclusion, harnessing the capabilities of the SUMIFS function in Excel can elevate your data processing capabilities to new heights. This guide has equipped you with the syntax, examples, and valuable tips to make the most of this versatile function. As you navigate through your Excel workbook, armed with the understanding of SUMIFS, you'll find yourself adept at aggregating data based on specific criteria, streamlining your analytical processes. Excel functions are the building blocks of efficiency, and mastering the SUMIFS function adds a potent tool to your arsenal, ensuring that your data analysis endeavors are both precise and powerful. Now, dive into your Excel spreadsheets with confidence, armed with the knowledge to wield the SUMIFS function with finesse.