To effectively harness Excel's power for data management, it's essential to master its formulas and functions. One such function is the SUMIFS function, which allows you to sum values in a range based on multiple criteria. This function is particularly useful when you need to analyze data based on various conditions. It is a versatile tool that can be used in many scenarios, from calculating sales figures for specific products or regions to analyzing customer data based on demographics or buying patterns.
Table of Contents
Formula Syntax
=SUMIFS(Sum_Range,Criteria_Range1,Criteria1,Criteria_Range2,Criteria2…)
- Sum_Range (required) – The cells to be summed.
- Criteria_Range1 (required) – The range that is checked against Criteria1. Criteria_range1 and Criteria1 form a search pair that looks for specific criteria within the range. Once items in the range match the criteria, their corresponding values in Sum_range are summed.
- Criteria1 (required) – The criteria that determine which cells in Criteria_range1 to include. Examples include 32, “>32”, B4, “apples”, or “32”.
- Criteria_Range2, Criteria2, … (optional) – Additional ranges and their corresponding criteria.
You can include up to 127 range/criteria pairs.
Let's explore a few examples to better understand this function.
download excel workbookSUMIFS-in-Excel.xlsx
Total Sales Amount for a Product in a Region
In this example, we are calculating the total sales amount for product 1001 in the East region. Let's break it down step by step.
STEP 1: Enter the SUMIFS function in cell F3.
=SUMIFS(
STEP 2: Enter the first argument – Sum_range. We've selected the range C2:C89 as it contains all the sales figures.
=SUMIFS(C2:C89,
STEP 3: Enter the second argument – Criteria_range1. Here, we've selected B2:B89, which includes the sales region details. We'll apply the East region criteria to this range.
=SUMIFS(C2:C89,B2:B89,
STEP 4: Enter the third argument – Criteria1. We've entered “East” to sum the sales in the East region.
=SUMIFS(C2:C89,B2:B89,”East”,
STEP 5: Enter the fourth argument – Criteria_range2. Here, we've selected A2:A89, which contains the product ID details. We'll apply the product 1001 criteria to this range.
=SUMIFS(C2:C89,B2:B89,”East”,A2:A89,
STEP 6: Enter the fifth argument – Criteria2. We've entered “1001” to sum the sales of product 1001.
=SUMIFS(C2:C89,B2:B89,”East”,A2:A89,”1001″)
As demonstrated, the SUMIFS function calculates the total sales of product 1001 in the East region by applying multiple criteria simultaneously.
Total Sales for a Product in 2 Regions
Here, we will calculate the sales for product 1002 in the North and South regions in cells F3 and G3. Let's go through this step by step.
STEP 1: Enter the SUMIFS function in cell F3.
=SUMIFS(
STEP 2: Enter the first argument – Sum_range. We've selected C2:C89, which contains all the sales figures we want to sum.
=SUMIFS(C2:C89,
STEP 3: Enter the second argument – Criteria_range1. Here, we've selected A2:A89, which contains the product ID details. We'll apply the product 1002 criteria to this range.
=SUMIFS(C2:C89,A2:A89,
STEP 4: Enter the third argument – Criteria1. We've entered “1002” to sum the sales of product 1002.
=SUMIFS(C2:C89,A2:A89,”1002″,
STEP 5: Enter the fourth argument – Criteria_range2. Here, we've selected B2:B89, which contains the region details. We'll apply the North and South criteria to this range.
=SUMIFS(C2:C89,A2:A89,”1002″,B2:B89,
STEP 6: Enter the fifth argument – Criteria2. We've entered {“North”, “South”} to sum the sales in the North and South regions separately in cells F3 and G3.
=SUMIFS(C2:C89,A2:A89,”1002″,B2:B89,{“North”,”South”})
Ensure to use curly brackets for your criteria.
As shown, the SUMIFS function calculates the total sales of product 1002 in the North and South regions by applying multiple criteria at once.
This can also be achieved by using two separate SUMIFS functions, as we did in the first example.
Total Sales when Sales Amount is Greater Than $20,000
In this example, we are calculating the total sales amount for product 1001, but only for transactions where the sales amount exceeds $20,000.
STEP 1: Enter the SUMIFS function in cell F3.
=SUMIFS(
STEP 2: Enter the first argument – Sum_range. We've selected C2:C89, which contains all the sales figures we want to sum.
=SUMIFS(C2:C89,
STEP 3: Enter the second argument – Criteria_range1. Here, we've selected A2:A89, which contains the product ID details. We'll apply the product 1001 criteria to this range.
=SUMIFS(C2:C89,A2:A89,
STEP 4: Enter the third argument – Criteria1. We've entered “1001” to sum the sales of product 1001.
=SUMIFS(C2:C89,A2:A89,”1001″,
STEP 5: Enter the fourth argument – Criteria_range2. Here, we've selected C2:C89, which contains the sales amount. We'll apply the rule – greater than $20,000 to this range.
=SUMIFS(C2:C89,A2:A89,”1001″,C2:C89,
STEP 6: Enter the fifth argument – Criteria2. We've entered >20000 to sum the sales for transactions where the sales amount is greater than $20,000.
=SUMIFS(C2:C89,A2:A89,”1001″,C2:C89,”>”&20000)
Conclusion
As demonstrated, Excel calculates the total sales amount for transactions where the product ID is 1001 and the transaction amount exceeds $20,000.
While the SUMIFS function is highly beneficial, it comes with certain limitations that you should be aware of:
- Range size: The SUMIFS function may not be suitable for some complex data analysis scenarios as it can become slow or cumbersome when used with very large datasets.
- Although the SUMIFS function supports multiple criteria, it may not capture all the nuances of complex datasets, such as interactions between different variables.
- Syntax complexity: Using the SUMIFS function can be challenging, especially when dealing with multiple criteria or complex datasets. A thorough understanding of Excel's features and syntax is necessary for its effective use.
- The size of each range must be consistent. If the provided ranges do not match, a #VALUE error will be returned.
- All range arguments must be actual ranges; arrays cannot be used with the SUMIFS function.
- SUMIFS is not case-sensitive.
The above is the detailed content of How to Use SUMIFS Function in Excel. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Grouping by month in Excel Pivot Table requires you to make sure that the date is formatted correctly, then insert the Pivot Table and add the date field, and finally right-click the group to select "Month" aggregation. If you encounter problems, check whether it is a standard date format and the data range are reasonable, and adjust the number format to correctly display the month.

Quick Links Check the File's AutoSave Status

The tutorial shows how to toggle light and dark mode in different Outlook applications, and how to keep a white reading pane in black theme. If you frequently work with your email late at night, Outlook dark mode can reduce eye strain and

To set up the repeating headers per page when Excel prints, use the "Top Title Row" feature. Specific steps: 1. Open the Excel file and click the "Page Layout" tab; 2. Click the "Print Title" button; 3. Select "Top Title Line" in the pop-up window and select the line to be repeated (such as line 1); 4. Click "OK" to complete the settings. Notes include: only visible effects when printing preview or actual printing, avoid selecting too many title lines to affect the display of the text, different worksheets need to be set separately, ExcelOnline does not support this function, requires local version, Mac version operation is similar, but the interface is slightly different.

It's common to want to take a screenshot on a PC. If you're not using a third-party tool, you can do it manually. The most obvious way is to Hit the Prt Sc button/or Print Scrn button (print screen key), which will grab the entire PC screen. You do

MicrosoftTeamsrecordingsarestoredinthecloud,typicallyinOneDriveorSharePoint.1.Recordingsusuallysavetotheinitiator’sOneDriveina“Recordings”folderunder“Content.”2.Forlargermeetingsorwebinars,filesmaygototheorganizer’sOneDriveoraSharePointsitelinkedtoaT

Finding the second largest value in Excel can be implemented by LARGE function. The formula is =LARGE(range,2), where range is the data area; if the maximum value appears repeatedly and all maximum values ??need to be excluded and the second maximum value is found, you can use the array formula =MAX(IF(rangeMAX(range),range)), and the old version of Excel needs to be executed by Ctrl Shift Enter; for users who are not familiar with formulas, you can also manually search by sorting the data in descending order and viewing the second cell, but this method will change the order of the original data. It is recommended to copy the data first and then operate.

TopulldatafromthewebintoExcelwithoutcoding,usePowerQueryforstructuredHTMLtablesbyenteringtheURLunderData>GetData>FromWebandselectingthedesiredtable;thismethodworksbestforstaticcontent.IfthesiteoffersXMLorJSONfeeds,importthemviaPowerQuerybyenter
