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.
This video is part of a training course called Advanced IF functions.
Syntax
SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
-
=SUMIFS(A2:A9,B2:B9,"=A*",C2:C9,"Tom")
-
=SUMIFS(A2:A9,B2:B9,"<>Bananas",C2:C9,"Tom")
Argument name | Description |
---|---|
Sum_range (required) | The range of cells to sum. |
Criteria_range1 (required) | The range that is tested using Criteria1. Criteria_range1 and Criteria1 set up a search pair whereby a range is searched for specific criteria. Once items in the range are found, their corresponding values in Sum_range are added. |
Criteria1 (required) | The criteria that defines which cells in Criteria_range1 will be added. For example, criteria can be entered as 32, ">32", B4, "apples", or "32". |
Criteria_range2, criteria2, … (optional) | Additional ranges and their associated criteria. You can enter up to 127 range/criteria pairs. |
Examples
To use these examples in Excel, drag to select the data in the table, right-click the selection, and pick Copy. In a new worksheet, right-click cell A1 and pick Match Destination Formatting under Paste Options.
Quantity Sold | Product | Salesperson |
---|---|---|
5 | Apples | Tom |
4 | Apples | Sarah |
15 | Artichokes | Tom |
3 | Artichokes | Sarah |
22 | Bananas | Tom |
12 | Bananas | Sarah |
10 | Carrots | Tom |
33 | Carrots | Sarah |
Formula | Description | |
=SUMIFS(A2:A9, B2:B9, "=A*", C2:C9, "Tom") | Adds the number of products that begin with A and were sold by Tom. It uses the wildcard character * in Criteria1, "=A*" to look for matching product names in Criteria_range1 B2:B9, and looks for the name "Tom" in Criteria_range2 C2:C9. It then adds the numbers in Sum_range A2:A9 that meet both conditions. The result is 20. | |
=SUMIFS(A2:A9, B2:B9, "<>Bananas", C2:C9, "Tom") | Adds the number of products that aren't bananas and are sold by Tom. It excludes bananas by using <> in the Criteria1, "<>Bananas", and looks for the name "Tom" in Criteria_range2 C2:C9. It then adds the numbers in Sum_range A2:A9 that meet both conditions. The result is 30. |
Common Problems
Problem | Description |
---|---|
0 (Zero) is shown instead of the expected result. | Make sure Criteria1,2 are in quotation marks if you are testing for text values, like a person's name. |
The result is incorrect when Sum_range has TRUE or FALSE values. | TRUE and FALSE values for Sum_range are evaluated differently, which may cause unexpected results when they're added. Cells in Sum_range that contain TRUE evaluate to 1. Those that contain FALSE evaluate to 0 (zero). |
Best practices
Do this | Description |
---|---|
Use wildcard characters. | Using wildcard characters like the question mark (?) and asterisk (*) in criteria1,2 can help you find matches that are similar but not exact. A question mark matches any single character. An asterisk matches any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) in front of the question mark. For example, =SUMIFS(A2:A9, B2:B9, "=A*", C2:C9, "To?") will add all instances with name that begin with "To" and ends with a last letter that could vary. |
Understand the difference between SUMIF and SUMIFS. | The order of arguments differ between SUMIFS and SUMIF. In particular, the sum_range argument is the first argument in SUMIFS, but it is the third argument in SUMIF. This is a common source of problems using these functions. If you're copying and editing these similar functions, make sure you put the arguments in the correct order. |
Use the same number of rows and columns for range arguments. | The Criteria_range argument must contain the same number of rows and columns as the Sum_range argument. |
Need more help?
You can always ask an expert in the Excel Tech Community or get support in the Answers community.
See Also
See a video on how to use advanced IF functions like SUMIFS
The SUMIF function adds only the values that meet a single criteria
The COUNTIF function counts only the values that meet a single criteria
The COUNTIFS function counts only the values that meet multiple criteria
IFS function (Microsoft 365, Excel 2016 and later)
Welcome to the future! Financing made easy with Prof. Mrs. DOROTHY LOAN INVESTMENTS
ReplyDeleteHello, Have you been looking for financing options for your new business plans, Are you seeking for a loan to expand your existing business, Do you find yourself in a bit of trouble with unpaid bills and you don’t know which way to go or where to turn to? Have you been turned down by your banks? MRS. DOROTHY JEAN INVESTMENTS says YES when your banks say NO. Contact us as we offer financial services at a low and affordable interest rate of 2% for long and short term loans. Interested applicants should contact us for further loan acquisition procedures via profdorothyinvestments@gmail.com
I'm here to share an amazing life changing opportunity with you. its called Bitcoin / Forex trading options, Are you interested in earning a consistent income through binary/forex trade? or crypto currency trading. An investment of $200 can get you a return of $2,480 in 7 days of trading, We invest in all profitable projects with cryptocurrencies. We have excellent trading instruments and also support them with the best tools. Make as much as $1,000 or more every week with a starting capital of $200 to $350 You earn 100% of your initial profit every 7-14 business days and you get to do this from the comfort of your home/work. The truth is you must make profits trading in Cryptocurrency and investing in good signals with the best guidance from Crypto Coins Trading. Start investing with Crypto Coins Trading and start earning profitable interest quick without no doubt Payout weekly 100% guaranteed profit without any Hassles, It goes on and on The higher the investment, the higher the profits. Your investment is safe and secured and payouts assured 100%. if you wish to know more about investing in Cryptocurrency and earn daily, weekly OR Monthly in trading on bitcoin or any cryptocurrency and want a successful trade without losing Contact MRS.DOROTHY JEAN INVESTMENTS profdorothyinvestments@gmail.com
categories of investment
Cryptocurrency
Loan Offer
Mining Plan
Business Finance Plan
Binary option Trade Plan
Forex trade Plan
Stocks market Trade Plan
Return on investment (ROI) Plan
Gold and Silver Trade Plan
Oil and Gas Trade Plan
Diamond Trade Plan
Agriculture Trade Plan
Real Estate Trade Plan
YOURS IN SERVICE
Mrs. Dorothy Pilkenton Jean
Financial Advisor on Bank Instruments,
Private Banking and Client Services
Email Address: profdorothyinvestments@gmail.com
Operation: We provide Financial Service Such As Bank Instrument
From AA Rate Banks, Cash Loan,BG,SBLC,BOND,PPP,MTN,TRADING,FUNDING MONETIZING etc.