SUMIFS with Multiple Criteria in Excel: How-To
In this article
SUMIFS adds up numbers in one column while checking two or more conditions across other columns. The syntax is SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2, ...), and the one rule that trips most people up is that the sum range comes first, before the criteria. A working example: =SUMIFS(D2:D100, B2:B100, "North", C2:C100, "Paid") totals the values in D for North region rows that are marked Paid. Every additional pair of criteria range and criteria you add narrows the result further (it acts as AND), and all ranges must be the same height and width, or Excel returns #VALUE!.
What You'll Need
- Excel 2007 or later on desktop, or Excel for the web; SUMIFS does not exist in Excel 2003 and older, and very old workbook formats may not support it.
- A data table with a clear header row, one type of value per column (dates in a date column, amounts in an amount column) and no blank rows cutting through the middle.
- Consistent text: trailing spaces, mixed case variations and stray apostrophes will make criteria miss matching rows.
- Criteria values entered as text in quotation marks, or referenced from cells, when you use operators.
Step-by-Step
- Lay out your table in one contiguous block. For example A1:F200 with headers such as Date, Region, Rep, Status, Amount. Avoid merged cells inside the block; merged cells break range alignment.
- Decide what you are summing and what you are filtering on. Write it out in plain words first: "sum Amount where Region is North and Status is Paid". That sentence becomes the formula almost literally.
- Start the formula with the sum range. Click the first cell where you want the total, type
=SUMIFS(, then select only the numbers column, e.g. E2:E200. Do not include the header row in any range. - Add the first criteria pair. Type a comma, select the Region column B2:B200, comma, then the criterion. For text, wrap it in quotes:
"North". So far:=SUMIFS(E2:E200, B2:B200, "North". - Add the second pair. Comma, select C2:C200 (Status), comma,
"Paid". Close the bracket. The result is=SUMIFS(E2:E200, B2:B200, "North", C2:C200, "Paid"). Press Enter. - Check the range sizes. Every range must have the same number of rows. If E goes to row 200, all other ranges must too. The simplest safeguard is to convert the block to an Excel Table with Ctrl+T and use structured references, which resize automatically as data is added.
- Use cell references instead of typed values so you can change criteria without editing the formula. Put "North" in H1 and "Paid" in H2, then write
=SUMIFS(E2:E200, B2:B200, H1, C2:C200, H2). Note that a text criterion held in a cell needs no quotation marks, but an operator criterion does. - Add operators inside the quotes when you are typing them. Greater than, less than, not equal and wildcards all go inside the string:
">1000","<>Paid",">="&H1. To combine a cell with an operator, concatenate with an ampersand. - Filter by a date range with two criteria on the same column. Dates are numbers, so use
=SUMIFS(E2:E200, A2:A200, ">="&DATE(2026,1,1), A2:A200, "<="&DATE(2026,3,31)). Using DATE() avoids the regional date-format confusion that breaks "1/3/2026" style strings on shared workbooks. - Use wildcards for partial text. An asterisk matches any number of characters, a question mark matches one.
"North*"catches North, Northern and Northeast."*phone*"finds phone anywhere in the cell. Wildcards are case-insensitive, so "north" and "North" match the same rows. - Verify the result independently. Turn on AutoFilter, filter for the same two conditions and read the status bar sum. If it differs from your formula, one of the ranges is misaligned or the criteria contain hidden characters.
- Lock the ranges before copying down. Press F4 on each range to add dollar signs, e.g.
$E$2:$E$200, then fill down against a column of criteria in adjacent cells.
Common Mistakes
- Putting the sum range last. That is SUMIF's order, not SUMIFS'. SUMIFS always takes the sum range first.
- Unequal range sizes. Selecting B2:B200 for one criterion and C2:C500 for another returns #VALUE!.
- Forgetting quotes around typed text.
SUMIFS(E:E, B:B, North)produces a #NAME? error because Excel reads North as an undefined name. - Expecting OR behaviour. Two criteria pairs are AND. For OR (North or South), use two SUMIFS added together:
=SUMIFS(E2:E200,B2:B200,"North")+SUMIFS(E2:E200,B2:B200,"South"), or an array constant likeSUM(SUMIFS(E2:E200,B2:B200,{"North","South"})). - Non-numeric numbers. Totals of zero often mean the values were imported as text. Test with
=ISNUMBER(E2); if FALSE, clean the column. - Wrong operator direction. Writing
"=>100"instead of">=100"silently returns nothing. - Excluding rows accidentally. Blank cells in a criteria column never match a positive criterion, so a filter on Status misses rows where Status is empty.
Tips
- Select the whole column reference (E:E) only for small sheets; full-column ranges with several criteria slow recalculation noticeably on large workbooks.
- Name your ranges (Formulas > Defined Names > Define Name) so formulas read as
=SUMIFS(Amount, Region, H1, Status, H2), which is much easier to audit. - For a running total by month, pair SUMIFS with EOMONTH to build the start and end dates of each period automatically.
- SUMIFS ignores text, blanks and errors in the sum range rather than failing, so zeros can hide a data-quality problem.
- Use SUMPRODUCT when you need criteria joined by OR across different columns, or when you need to compare two columns row by row.
- Keep the lookup criteria on the same sheet and in a small dedicated block, so anyone can see which filters produced the number.
Troubleshooting
#VALUE! error: the ranges are different sizes. Count the rows in each and rebuild the formula using the same row span. #NAME? error: unquoted text, a misspelled function or a deleted defined name. Result is 0: check that the criteria column actually contains the values you typed, that the sums are real numbers, and that there are no leading or trailing spaces. =TRIM() in a helper column will reveal them. Total too high: confirm no duplicate criteria pairs are redundant and that you have not included the header row inside a criteria range.
If dates will not filter, check whether they are stored as text: =ISNUMBER(A2) should be TRUE. Convert with Data > Text to Columns or by re-entering the date. If the formula worked yesterday and not today, examine whether rows were inserted at the top of the data, pushing values outside the fixed range; converting to an Excel Table prevents that permanently.
Frequently Asked Questions
How many criteria can SUMIFS handle?
Excel allows up to 127 range/criteria pairs. Practical readability usually argues for a handful, with a helper column for anything complex.
Can I use SUMIFS with a named Excel Table?
Yes. Reference columns as =SUMIFS(Sales[Amount], Sales[Region], "North", Sales[Status], "Paid") and the ranges grow with the table.
Why does my SUMIFS return the full total?
Usually one criterion is accidentally matching everything, often because the criteria cell is empty and all rows are treated as a match, or a wildcard alone such as "*" is being used.
Does SUMIFS work across two sheets?
Yes, provided both sheets are in the same workbook; close the reference with the sheet name, e.g. Data!$E$2:$E$200.
What is the difference between SUMIF and SUMIFS?
SUMIF takes one criterion and puts the sum range in the third position. SUMIFS takes multiple criteria and puts the sum range first.
Can I sum with an OR condition inside one column?
Yes, by adding two SUMIFS together or using an array constant of values inside SUM, as shown in Common Mistakes.