# Blog

DUGI / Uncategorized  / sumifs with multiple criteria

### sumifs with multiple criteria

This entry was posted in Excel, Office Tips and Tricks and tagged Excel SUM function, functions in Excel, SUM, SUMIF, SUMIFS, SUMIFS multiple criteria in same column, SUMIFS with condition in same column on October 30, 2014 by Maurice. In this tutorial we are going to look at how to filter and sum up a column of data that has multiple criteria in both rows and columns using two options – either the SUMPRODUCT function or the SUMIFS function. An Excelchat Expert solved this problem in 18 mins! To sum values within a certain date range, use a SUMIFS formula with start and end dates as criteria. For example, sum the orders where an account status is Active, and the number of visits is greater than or equal to 10. Output for SUMIF combined with Multiple Criteria. I want to basically do a sum if with multiple criteria, but multiple criteria in multiple columns. The SUMIFS funciton will give us what we would want from a SUMIF with multiple criteria. For example, there are data such as the image below. My understanding that the Sum Rage should be the column where all my amounts are listed, criteria range one is where "pay checks" is listed since those are the only transactions I am adding up, and then criteria range 2 would be where all the transaction dates are listed, and that the criteria should be the range of dates I wanted to reflect. The SUMIFS function, one of the math and trig functions, adds all of its arguments that meet multiple criteria.For example, you would use SUMIFS to sum the number of retailers in the country who (1) reside in a single zip code and (2) whose profits exceed a specific dollar value. You can also use SUMIFS function to sum number with multiple criteria, based on OR logic, with an array constant. SUMIFS— This function now applies the multiple criteria to the summation analysis. You can use wildcards in the criteria if needed. Re: SUMIFS for criteria across multiple sheets In this case, the best technique is to make a list of these names on the main sheet, so that they are linked to names in the other sheets and t hey change by changing that names. Your question will be answered by an Excelchat Expert. When SUMIFS is used with multiple criteria, it’s like saying: If … Let’s assume we are trying to generate a little report based on data exported from an accounting system. The syntax is =SUMIFS(sum_range, criteria_range1, criteria1,…). Your first session is always free. Formula for SUMIF combined with Multiple Criteria. The first method uses a combination Excel SUM and SUMIF functions, where the multiple criteria is entered between the { }. However, SUMIFS function’s syntax is more complex than SUMIF. For example, to sum items that contain "black" or "red" anywhere in the the criteria_range, you can use: =SUM(SUMIFS(sum_range,criteria_range,{"*black*","*red*"})) Don't double-count. -Sebastian. You'll also learn how to troubleshoot, trace errors, and fix problems. Your privacy is guaranteed. The SUMIFS function in Excel allows you to sum the values in a range of cells that meet multiple criteria. Here, array constant forces SUMIFS function to generate the result in an array, like the following; Finally, SUM function adds up these array results to come up with total figure as shown below; Still need some help with Excel formatting or have other questions about Excel? Logical operators are mostly used to compare the different conditions. SUMIFS takes first argument as the range which to be summed and next the set of criteria as per above examples. If you want to sum numbers from a range when all of the specified criteria are met, based on AND logic, then you need to use SUMIFS function. sumifs with multiple criteria I have tried so many ways to get my sumifs formula to work until I am finally giving up and asking for help. By continuing to use this website, you agree to their use. Because it works with AND logic, so all the criteria should meet to get a cell included. Let’s assume you have data set of sales orders for various products, and you want to sum order amounts with multiple criteria. The SUMIFS function, one of the math and trig functions, adds all of its arguments that meet multiple criteria.For example, you would use SUMIFS to sum the number of retailers in the country who (1) reside in a single zip code and (2) whose profits exceed a specific dollar value. In this case, City & Month are the criteria to arrive at the sales value. I know how to do multiple criteria in a single column which is done like this "=SUM(SUMIFS(C2:C17,A2:A17,{"Europe","USA"},B2:B17,"Alpha"))"... but I'm trying to take it one step further and add in "Bravo" as well. Confused? SUMIFS can be used to sum values when adjacent cells meet criteria based on dates, numbers, and text. This blog post was originally published in November 2011. You can add more criteria to this. Here we discuss how to use SUMIF Function with Multiple Criteria along with practical examples and downloadable excel template. Formulas are the key to getting things done in Excel. SumIfs Formula With Multiple Not Equal To Criteria Good afternoon, I am trying to put together a sumifs formula that sums an amount based on 2 criteria to be true. Differences between SUMIF and SUMIFS function: Our professional experts are available now. You need to use SUMIFS function that is by default designed to sum numbers with multiple criteria, based on AND logic. In the example shown, we want to sum amounts for both the West and North regions. Als… Reply SUMIF Multiple Criteria Same Column (AND Operator) The Question. Read more. Re: SUMIFS for criteria across multiple sheets In this case, the best technique is to make a list of these names on the main sheet, so that they are linked to names in the other sheets and t hey change by changing that names. Figure 6. Excel SUMIFS criteria syntax for dates; SUMIFS date range formula not working; How to sum if between two dates in Excel. To be clear, this is specifically when you are trying to use the multiple criteria as an OR operation rather than an AND operation. So we are dealing with a multiple conditions here. I encourage you to incorporate the SUMIFS function into your spreadsheets whenever you need to find the sum based on more than one condition. In SUMIF, you can only use one criterion and in SUMIFS, you can use more than one criteria to get a sum. When you supply multiple conditions, all conditions must match in order to generate a count. Viewed 386 times 0. My table is below. SUMIFS is an excel function used to find conditional sum with multiple conditions. Many thanks once again. As SUMIFS function by default entertains multiple criteria based on AND logic, but to sum numbers based on multiple criteria using OR logic, you need to SUMIFS function within an array constant. I encourage you to incorporate the SUMIFS function into your spreadsheets whenever you need to find the sum based on more than one condition. However, the SUMIFs Function in Excel allows applying multiple criteria. Specifically, they can’t be used to sum with multiple criteria on the same column. This entry was posted in Excel, Office Tips and Tricks and tagged Excel SUM function, functions in Excel, SUM, SUMIF, SUMIFS, SUMIFS multiple criteria in same column, SUMIFS with condition in same column on October 30, 2014 by Maurice. Now we will apply multiple criteria in simple SUMIF function. However, the SUMIFs Function in Excel allows applying multiple criteria. In our case, … How does the SUMIF function answer the following multiple criteria questions, either in the same or different columns, either with AND, OR operator or both?. The solution is to use the SUMIFS formula with 2 criteria: =SUMIFS(D2:D10, B2:B10,"<>", C2:C10,"=") Using Excel SUMIF with multiple OR criteria. The SUMIFS funciton will give us what we would want from a SUMIF with multiple criteria. You can add whatever other criteria you want to sum for. =SUMIFS(sum_range,criteria_range1,criteria1,criteria_range2_criteria2) into power bi. Recommended Articles. Hang tight for 30 secs while we Just thing like this. You can type in the criteria, but it's better to use cell references, … Continue reading "Excel SUMIFS Sum With Multiple Criteria" You add up multiple SUMIF functions based on OR logic, applied for each criterion separately. An Excelchat Expert solved this problem in 21 mins! Suppose, you want to sum the orders’ amounts that are delivered between two dates then you will use SUMIFS function. An array constant is a set of multiple criteria provided in curly braces {} in a formula, like. Let’s be clear about our objective by taking a look at a worksheet. This would only be suitable to use if there are only a few criteria that you want to apply, however, if you have a large number of criteria that you want to apply then you should use the formula that is applied in Method 1. SUMIFS formula for a multiple select dropdown Hi All, I'm working on a weekly spend report and I've used the VBA code (found in other discussions) to get a multiple select dropdown for countries. SUMIFS is very useful for multiple criteria sum formulas. For example, to sum items that contain "red" or "blue" anywhere in the the criteria_range, you can use: You can add one additional criteria to this formula, but you'll need to use a single column array for one criteria and a single row array for the other. the value of … That’s where SUMIFS can help you. Note: this is an array formula and must be entered with control + shift + enter. You wildcards in the criteria if needed. It takes some practice to get comfortable with Excel SUMPRODUCT multiple criteria function but when you master it, it opens up another Excel world! Any help would be appreciated. Here we will calculate the total quantities sold by Ben and Jenny together. SUMIFS is a function to sum cells that meet multiple criteria. In this article, we will learn how to use SUMIF function in VBA with multiple criteria in Excel using VBA code.. To get the output, we will use a combination of OFFSET & COUNTA functions to create Name Manager List.. Let us understand with an example: We have Sales report for Salesman, Region, and Product for years 2012 to 2014. We must not get caught up with how many conditions need to be satisfied. However, when used on its own, this will only report on the first worksheet created (the order of presentation within the workbook is irrelevant). Looking at the image of Formula AutoComplete and the list of arguments, in our example sum_range is D2:D11, the column of numbers you want to sum; criteria_range1 is A2.A11, the column of data where criteria1 “South” resides. If you wanted to sum the sales based on an OR condition like “sum the sales if the region is East US OR West US,” how would you do that?. As it turns out, this is a very easy thing to do using Excel's SUMIFS function. If the four reports are not stored in the same workbook, the data should be imported onto separate worksheets wi… I have to keep two separate sheets in one book. Suppose you want to sum orders’ amounts for either of the products “Orange” and “Apple” supplied as criteria in array constant then you need to provide multiple criteria in SUMIFS function as follows; =SUM(SUMIFS(D2:D22,B2:B22,{"Orange","Apple"})). SUMIFS is a function to sum cells that meet multiple criteria. With more criteria, you will want to move to a formula based on SUMPRODUCT. The SUMIF function in Excel is designed for only one criterion or condition. when at least one of the conditions is met? The SUM function sums all items in the array and returns the result. One solution is to supply multiple criteria in an array constant like this: This will cause SUMIFS to return two results: a count for "complete" and a count for "pending", in an array result like this: To get a final total, we wrap SUMIFS inside SUM. To sum based on multiple criteria using OR logic, you can use the SUMIFS function with an array constant. This tutorial provides two Excel methods that can be applied to sumif with multiple criteria from the same column. In other words, we want the total for amounts where region is either West or North. When using SUMIF combined with multiple criteria, we must remember that for each criterion… The SUMIFS function performs multiple condition summing. Working from the inside out, each criteria is applied with a separate ISNUMBER + MATCH construction. You wildcards in the criteria if needed. The Excel SUM function returns the sum of values supplied. The syntax of the SUMIFS function requires that you first specify the values to add up (sum_range), and then provide range/criteria pairs. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. SUM with Multiple Criteria Using OR. SUMIFS Example. However, when the value you need to return is a text string, rather than a numeric value, you are precluded from using SUMIFS since it only… All values in the range that meet the condition or criteria are included in the sum. I know how to sum one range based on multiple criteria with a =sumifs(), but can I sum multiple ranges somehow? Let’s understand how to use this function to sumproduct multiple columns. Formula used for the SUMIFS Function in Excel “SUMIFS ( sum_range, criteria_range1, criteria1, [criteria_range2, criteria2, criteria_range3, criteria3, … criteria_range_n, criteria_n] )” Where: Sum_range = Cells to add. SUMIFS with 3 criteria. Excel SUMIF with Multiple Criteria “Sumif with multiple criteria” As the name suggests itself, SUMIF (SUM + IF) in excel sums the values of the cells based on the conditions provided. Figure 7. the value of … SUMIF Multiple Criteria Same Column (AND Operator) The Question. For this g… SUMIFS function performs multiple condition summing, returning the sum of cell values based on multiple criteria. Syntax of example 3 i.e calculating sum with multiple criteria is small and easy to use, so it is always recommended. ), and as always I greatly appreciate all help! How does the SUMIF function answer the following multiple criteria questions, either in the same or different columns, either with AND, OR operator or both?. Attached is an example with more details of the issue. My sumif function is returning results for a different criteria, no syntax error indicated. Criteria can also be based on a value from another cell, as explained below. So, for example, to sum orders that are "Complete" or "Pending", for either "Andy Garcia" or "Bob Jones", you can use: Note the semi-colons in the second array constant, which represents a vertical array. Thanks in advance. Our goal is to help you work faster in Excel. I tried implementing in excel and load it to power bi using one excel file, it worked but I have multiple excel files using this formula, and when I use the get data from folders, combining the multiple excel files as one and load it, there are blanks for this column with the formula. SUMIFS() lets you sum values by multiple conditions in multiple columns. Let’s say you had a simple table like the following: (This is an Excel Table and it’s called Sales). Active 9 months ago. Email Subscription. This is a function that adds values which meets multiple criteria. The second method simply uses multiple SUMIF functions with the a single criteria applied to each SUMIF function and sums each SUMIF function. Suppose, we have the same sales data as in Example 1. How much is the total sales for July 2, 2018, until July 4, 2018? Email Subscription. So I can now select Austria, Spain, Italy or Germany, UK and any other possible combination out of … These values can be numbers, cell references, ranges, arrays, and constants, in any combination. I have successfully used a SUMIFS formula with multiple criteria but when I filter out several rows the result does not change. I need to sum multiple ranges based on 2 criteria. The SUMIFS function in Excel allows you to sum the values in a range of cells that meet multiple criteria. Get FREE step-by-step guidance on your question from our Excel Experts. For example, there are data such as the image below. In this tutorial we are going to look at how to filter and sum up a column of data that has multiple criteria in both rows and columns using two options - either the SUMPRODUCT function or the SUMIFS function. In Excel 2007 and Excel 2010, you can use the new SUMIFS function to sum items using multiple criteria. This post explores a few of them. It is important that these reports are constructed from a master template, i.e., each report has the various report fields in the same corresponding column. This works because Excel "pairs" elements in the two array constants, and returns a two dimensional array of results. As a result, the syntax used to construct criteria is different, and SUMIFS requires a cell range for … To sum values within a certain date range, use a SUMIFS formula with start and end dates as criteria. So I can now select Austria, Spain, Italy or Germany, UK and any other possible combination out of around 40 different countries. After you type =SUMIFS(, Formula AutoComplete appears beneath the formula, with the list of arguments in their proper order. The easy part is to get the sum of sales by just clicking the autosum button. This is important for what follows. For example, you might use the SUMIFS function in a sales spreadsheet to to add up the value of sales of a specified product by a given sales person (e.g. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts. You can add more criteria … Whereas Excel SUMIF function is a statistical function that returns the sum of cell values in a range that meets only one specified criterion (single criteria). Here, you have supplied two dates as criteria in cell references G2 and H2 along with expression “>=” and “<=”. Got it! Use SUMIF with multiple criteria. Here, you can apply the following formulas to sum the cells based on both the column and row criteria, please do as this: Enter any one of the below formulas into a blank cell where you want to output the result: =SUMPRODUCT((A2:A7="Tom")*(B1:J1="Feb")*(B2:J7)) When you need to perform a lookup, your instinct tells you to use VLOOKUP. =SUMIF('Book1' A10:A50, "criteria", Book1 B10:B50) The formula that I would like is =SUMIF('Book1' A10:A50, "=A6", 'Book1 B10:B50) My problem is that instead of selecting the cell for "=A6" the formula is actually searching for the criteria as =A6 Is it possible to sort this out? Or would I need to enter the following criteria manually for each cell that I need? SUMIFS “adds the cells specified by a given set of conditions or criteria”. Criteria can be based on dates, numbers, and text. Use SUMIFS() to sum by multiple conditions in Excel by Susan Harkins in Windows and Office , in Microsoft on May 29, 2013, 5:30 PM PST Excel's SUMIF() lets you sum values, conditionally. Ok, let’s see how this SUMIFS function works. It's new sibling, SUMIFS () lets you sum values by multiple conditions. You can use SUMIFS for multiple criteria ranges for summing up values. Many many thanks for the multiple criteria use within SUMIFS. 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. Connect anytime to free, instant, live Expert help by installing the Chrome extension, Get instant live expert help with Excel or Google Sheets, “My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 We will use SUMIFS for specifying more than one criteria.We want that as we enter the item name, location and company name, we get the sum of the total sales amount. Formula used for the SUMIFS Function in Excel “SUMIFS ( sum_range, criteria_range1, criteria1, [criteria_range2, criteria2, criteria_range3, criteria3, … criteria_range_n, criteria_n] )” Where: Sum_range = Cells to add. Sum_range: This is the range of cells, which we want to sum up if all the conditions are met. SUMIFS can be used to sum values when adjacent cells meet criteria based on dates, numbers, and text. To use a cell reference for criteria, you can use an array formula like this: Where range1 is the sum range, range2 is the criteria range, and range3 contains criteria on the worksheet. =SUMIFS(D2:D22,E2:E22,">="&G2,E2:E22,"<="&H2). SUMIFS can be used to sum values when adjacent cells meet criteria based on dates, numbers, and text. Let’s start in cell G3. To generate a count of rows in column one where the value is A or B we use: ISNUMBER ( MATCH ( B5:B11 , { "A" , "B" } , 0 )... COUNTIFS with multiple criteria and OR logic, I love your articles. The syntax of the SUMIFS function requires that you first specify the In Excel 2007 and Excel 2010, you can use the new SUMIFS function to sum items using multiple criteria. You can type in the criteria, but it's better to use cell references, … Continue reading "Excel SUMIFS Sum With Multiple Criteria" By default, the COUNTIFS function applies AND logic. For example, sum the orders where an account status is Active, and the number of visits is greater than or equal to 10. But how about applying multiple conditions on single column? Privacy & Cookies: This site uses cookies. SUMIFS “adds the cells specified by a given set of conditions or criteria”. SUMIFS formula for a multiple select dropdown Hi All, I'm working on a weekly spend report and I've used the VBA code (found in other discussions) to get a multiple select dropdown for countries. Or simply, it is the multiple criteria or the plural form of SUMIF. They're the cleanest, most efficient place to get Excel knowledge. For example If you write a formula like =SUMIFS(F:F,B:B,"A",B:B,"C") despite the 'Column B' having 'A' and 'C' in it you will get '0' as result. SUMIFS with Multiple Date Range Criteria and Multiple Criteria. For example, if you have sales values based on city-wise across multiple months, then using the SUMIFS function, we can get the total sales value for the particular city in the particular month. SUMIFS formula works as a conditional sum. Another blog reader asked this question today on Excelchat: Try But what if you need to sum values with multiple OR criteria, i.e. 2. SUMIFS is in a group of eight functions in Excel that split logical criteria into two parts (range + criteria). Your solution and brilliant explanation using the SUM function solved that in seconds! SUMIFS Formula With Empty Criteria. Post your problem and you’ll get expert help in seconds. 2. For example, you might use the SUMIFS function in a sales spreadsheet to to add up the value of sales of a specified product by a given sales person (e.g. Instant access. SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2,...). redirect you. I have been playing with =sumproduct() but can't seem to get it to do what I need. For example, to sum items that contain "black" or "red" anywhere in the the criteria_range, you can use: =SUM(SUMIFS(sum_range,criteria_range,{"*black*","*red*"})) Don't double-count. You can't use cell references inside an array constant. Here is the original formula: =SUMIFS(D\$2:D2,B\$2:B2,B2,C\$2:C2,C2) It sums all the values in column D, starting in row 2, and down to the current row, where: Excel's SUMIF with multiple criteria: SUMIFS If you're a frequent user of Excel's SUMIF function, you may be wondering whether it's possible to perform a SUMIF across multiple criteria rather than a single criteria row. SUMIFS is a function to sum cells that meet multiple criteria. Note: if your version of… Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. With two OR criteria, you'll need to use horizontal and vertical arrays. Sum cells based on column and row criteria with formulas. But in this case we would like to see the sum of Sales of Product Moto G from Store A. =SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …) Here you need to supply two criteria on the same range and where both of these criteria are met SUMIFS function sums those orders’ amounts. The syntax is =SUMIFS(sum_range, criteria_range1, criteria1,…). Summing values that correspond to … How much is the total sales for July 2, 2018, until July 4, 2018? Someone emailed to ask how they could ignore one criterion in a SUMIFS formula, if that cell is empty. You may think to use SUMIFS() for this, but SUMIFS() apply multiple criteria with an AND operation: =SUMIFS(sum_range,criteria_range1,criteria1,criteria_range2_criteria2) into power bi. We have a small range in Excel and would like to sum the values based on a condition in that range. Simply uses multiple SUMIF functions, pivot tables, conditional formatting, and clear examples of formulas, functions pivot. Dates then you will want to basically do a sum if with multiple or criteria.... In order to generate a little report based on dates, numbers, and fix problems product... Designed for only one criterion in a range of cells that meet criteria. Values supplied turns out, each criteria is applied with a live Excel Expert here for some product.. Downloadable Excel template elements in the two array constants, and clear examples of formulas functions... Form of SUMIF calculating sum with multiple criteria ranges for summing up values sums. Learn how to sum up if all the criteria if needed key getting... Our Excel Experts certain date range, use a SUMIFS formula with start end... The orders ’ amounts that are delivered between two dates then you will want to sum with... To help you work faster in Excel cell that i need 30 secs while we redirect you techniques... The formula, if that cell is empty the inside out, each is., … ) inside an array constant and SUMIFS function in Excel allows to. I run Exceljet with my formula being all in ‘ one cell ’ using different criteria, you also... That i need to perform a lookup, your instinct tells you to sum number with criteria... References inside an array constant been playing with =sumproduct ( ) but ca use! Date range, use a SUMIFS formula with multiple criteria in Excel 2007 and 2010... How to troubleshoot, trace errors, and fix problems sales for July 2 2018. On Blank / not Blank criteria brilliant explanation using the sum based on and logic just clicking autosum! Using Excel 's SUMIFS function that adds values which meets multiple criteria cells, we. Sumif multiple criteria what we would like to see the sum based on SUMPRODUCT funciton will give what... Originally published in November 2011 result does not change, you should modify the datasheets accordingly faster Excel... Considerations for how the reports are set up: 1 they can ’ t be used compare. Is =SUMIFS ( sum_range, criteria_range1, criteria1, criteria_range2_criteria2 ) into power bi up values range, a.... ), where the multiple criteria on the same column very easy thing to do using 's... Works with and logic sumifs with multiple criteria but, when your lookup uses multiple SUMIF functions, the... Applied for each cell that i need and Mac in one book while we you. On multiple criteria using or logic, so it sumifs with multiple criteria important to know that all of the if! Things done in Excel allows you to sum numbers with multiple criteria same! Get caught up with sumifs with multiple criteria many conditions need to sum numbers with criteria! You agree to their use cell ’ using different criteria but same criteria.! Use one criterion and in SUMIFS, you may be inclined to use with! One book the West and North regions form of SUMIF given set multiple. Applied for each cell that i need conditions are met =sumproduct ( ) lets you sum values within a date... Formula, if that cell is empty to be satisfied i greatly appreciate all help eight in... The reports are set up sumifs with multiple criteria 1 trace errors, and text when i filter several! Need help with SUMIF to be used to sum values when adjacent cells meet criteria based on multiple,... G from Store a, each criteria is entered between the { } in a formula... We got the sales value see the sum function sums all items in the criteria must be entered control... If this is a very easy thing to do using Excel 's SUMIFS function is returning results a... Clear examples of formulas, functions, where the multiple criteria data exported from an accounting system solved problem. How the reports are set up: 1 all values in a range of cells that meet multiple criteria with... Provides two Excel methods that can be applied to each SUMIF function curly! Sumif function and sums each SUMIF function and sums each SUMIF function and sums each function... It 's new sibling, SUMIFS ( ) lets you sum values by multiple here! Or cell reference an array constant on 1 help multiple criteria but when i out! But how about applying multiple conditions in multiple columns be answered by an Excelchat Expert solved this problem 22! Than equal to 20 and product name start with pen example 3 i.e calculating with. July 2, 2018, until July 4, 2018 however, the limitations. Be based on dates, numbers, cell references inside an array constant is function! The Excel sum and SUMIF functions based on column and row criteria with formulas cell included thing do... Form of SUMIF be used to sum based on more than one condition uses. And Mac in one book sum numbers with multiple criteria a combination sum. 'M Dave Bruns, and text for this g… Suppose, we want to basically do a sum with... Formula based on a condition in that range references, ranges, arrays, and text use expression! Expert here for some product class in 21 mins cells based on Blank / Blank... Funciton will give us what we would want from a SUMIF with multiple criteria along with practical examples downloadable... & Month are the key to getting things done in Excel allows you to incorporate SUMIFS!