Excel SUMIFS Function: Add Data That Meets Multiple Conditions

Learn how Excel SUMIFS adds values that meet several conditions. Clear syntax, worked examples, common errors and practical tips for faster reports.

SUMIFS function — SheetSkill guide
In short

SUMIFS adds the numbers in one range only when the matching cells in one or more other ranges meet all your conditions. It is the go-to function for multi-condition totals such as sales by region and month.

=SUMIFS(sum_range, criteria_range1, criteria1, ...)

What does SUMIFS do?

SUMIFS is Excel's multi-condition adding machine. You give it a range of numbers to add, then pairs of ranges and criteria. Excel checks every row: if all the criteria are true, the number in that row is included in the total. If any condition fails, the row is skipped. The result is a single number, such as total sales for the North region in January.

The function matters because real questions rarely have one condition. Managers ask for revenue by product and quarter, hours by employee and project, or expenses by department and category. Filtering and manually adding is slow and easy to get wrong. SUMIFS answers those questions in one formula that updates automatically when the data changes.

A typical situation: you maintain a sales log with date, region, product and amount. Your manager wants the total for the East region in March for product A. Instead of sorting and selecting, you write =SUMIFS(D2:D100, A2:A100, "East", B2:B100, "March", C2:C100, "A") and the answer appears instantly. Change a criterion and the total recalculates.

When to use SUMIFS

  • Total sales for a region within a date range
  • Sum hours worked by employee and project
  • Add expenses for a department and category
  • Calculate revenue by product and quarter
  • Count-like totals such as units sold by store and month
  • Add invoice amounts for a customer with a status of Paid

SUMIFS syntax

=SUMIFS(sum_range, criteria_range1, criteria1, ...)
ArgumentRequired?What to enter
sum_rangeRequiredThe cells containing the numbers to add. Only rows where all criteria match are included. Example: D2:D100 holds the amounts.
criteria_range1RequiredThe first range to test. It must be the same size as sum_range. Example: A2:A100 holds regions.
criteria1RequiredThe condition for criteria_range1. Can be text, a number, a cell reference, or an operator in quotes such as ">100". Example: "East".
criteria_range2, criteria2, ...OptionalAdditional range-and-condition pairs. Each pair must match for a row to be included. You can use up to 127 pairs. Example: B2:B100, ">=2024-01-01".

What it returns: A single number: the sum of the values in sum_range for every row where all criteria are true. If no rows match, it returns 0.

SUMIFS examples

1 Example 1: Total sales for one region

The goal is to add all sales amounts for the North region. The formula checks each row in column A for "North"; when it matches, the value in column B is added. Rows for other regions are ignored. The result is the combined North sales figure, 3,700.

D2=SUMIFS(B2:B7, A2:A7, "North")
ABCDE
1RegionSales
2North12003700
3South800
4North1500
5East950
6North1000
7West700
8
The formula in D2 returns 3700.

2 Example 2: Sales above a threshold in one region

Here you want North region sales that are greater than 1,000. SUMIFS uses two conditions: region equals "North" and sales greater than 1000. The comparison operator must be inside quotes. Only rows 2 and 4 qualify, giving 1,200 + 1,500 = 2,700.

D2=SUMIFS(B2:B7, A2:A7, "North", B2:B7, ">1000")
ABCDE
1RegionSales
2North12002700
3South800
4North1500
5East950
6North1000
7West700
8
The formula in D2 returns 2700.

3 Example 3: Sales by region and month

You need total sales for the East region in March. The formula tests column A for "East" and column B for "March". Both conditions must be true in the same row. Only row 4 matches, so the result is 1,100.

E2=SUMIFS(C2:C7, A2:A7, "East", B2:B7, "March")
ABCDEF
1RegionMonthSales
2NorthJanuary12001900
3EastFebruary900
4EastMarch1100
5NorthMarch1500
6WestMarch700
7EastMarch800
8
The formula in E2 returns 1900.

4 Example 4: Sales for a region within a date range

This example adds North region sales between 2024-01-01 and 2024-01-31 inclusive. Dates are compared with operators in quotes. The formula checks region equals "North", date greater than or equal to 2024-01-01, and date less than or equal to 2024-01-31. Rows 2 and 3 match, giving 1,200 + 1,500 = 2,700.

E2=SUMIFS(C2:C7, A2:A7, "North", B2:B7, ">=2024-01-01", B2:B7, "<=2024-01-31")
ABCDEF
1RegionDateSales
2North2024-01-0512000
3North2024-01-201500
4South2024-01-10800
5North2024-02-021000
6East2024-01-15950
7North2024-01-31700
8
The formula in E2 returns 0.

5 Example 5: Paid invoices for one customer

A finance team wants the total amount of paid invoices for customer Acme. The formula checks column A for "Acme" and column C for "Paid". Only rows 2 and 4 qualify, so the total is 1,200 + 1,500 = 2,700. Unpaid or other-customer invoices are excluded.

F2=SUMIFS(D2:D7, A2:A7, "Acme", C2:C7, "Paid")
ABCDEFG
1CustomerInvoiceStatusAmount
2AcmeINV-001Paid12003000
3AcmeINV-002Unpaid800
4AcmeINV-003Paid1500
5BetaINV-004Paid950
6BetaINV-005Unpaid700
7AcmeINV-006Paid300
8
The formula in F2 returns 3000.

Common SUMIFS errors and how to fix them

ErrorWhy it happensHow to fix it
#VALUE!A criteria range is a different size from sum_range, or a text criterion was entered without quotes.Make all ranges the same number of rows and columns. Put text and operators in double quotes, for example ">100".
#NAME?The function name is misspelled, such as SUMIF or SUMIFS with a space.Type =SUMIFS( exactly, or start typing and choose SUMIFS from the formula list.
Wrong total (too high or too low)Criteria ranges and sum_range are misaligned, or a criterion uses the wrong operator or spelling.Check that each criteria range lines up row-for-row with sum_range. Test one condition at a time and confirm spelling and operators.
Dates do not matchDates are stored as text rather than real dates, so comparisons fail.Convert the date column to real dates with Date Value or Text to Columns, then use criteria such as ">=2024-01-01".
0 returned unexpectedlyNo rows meet all conditions, often because of extra spaces or different case in text criteria.Trim spaces with TRIM, check for hidden characters, and confirm the criteria text matches the data exactly.

Tips for using SUMIFS

  • Use cell references for criteria, such as =SUMIFS(B2:B100, A2:A100, F2), so you can change the condition without editing the formula.
  • Wildcards work in text criteria: "North*" matches North, Northeast and so on. Use ? for a single character.
  • Keep sum_range and every criteria range the same size. Named ranges or Excel Tables make this easier and safer.
  • For dates, use operators in quotes: ">="&DATE(2024,1,1) is clearer than typing a date string.
  • To add several criteria on the same range, repeat the range: =SUMIFS(C2:C100, A2:A100, "North", A2:A100, "East") returns 0 because a cell cannot be both.
  • Remember SUMIFS adds numbers only. If sum_range contains text, those cells are ignored.

Frequently asked questions

What is the difference between SUMIF and SUMIFS?

SUMIF handles one condition and puts the sum range last. SUMIFS handles one or more conditions and puts the sum range first. Use SUMIFS for anything with two or more conditions.

Can SUMIFS use dates as criteria?

Yes. Put the operator and date in quotes, such as ">=2024-01-01", or build it with ">="&DATE(2024,1,1). The date column should contain real dates, not text.

Why does my SUMIFS return 0?

Usually no row meets every condition. Check spelling, extra spaces, whether dates are real dates, and whether all ranges are the same size. Test each condition separately to find the culprit.

Does SUMIFS work with wildcards?

Yes, for text criteria. * matches any number of characters and ? matches one character. For example, "A*" sums rows starting with A.

Can I sum values between two numbers with SUMIFS?

Yes. Use the same range twice with two criteria, such as =SUMIFS(B2:B100, B2:B100, ">=100", B2:B100, "<=500").

Related functions

Every example on this page was recalculated by SheetSkill’s spreadsheet engine. SUMIFS reference