How to use SUMIFS in Excel
SUMIFS adds the values that meet several conditions at once — North region and product Laptop and after 1 January.
Syntax
=SUMIFS(sum_range, range1, criteria1, [range2, criteria2], ...)
sum_range | The cells to add — this comes first in SUMIFS. |
criteria_range1, criteria1 | The first range and its condition. |
[criteria_range2, criteria2], … | More pairs — every one must be met. |
Examples
=SUMIFS(C2:C100, A2:A100, "North", B2:B100, "Laptop")Laptop sales in North.=SUMIFS(C2:C100, D2:D100, ">="&DATE(2025,1,1), D2:D100, "<"&DATE(2025,2,1))Sales in January 2025.=SUMIFS(C2:C100, A2:A100, E2, C2:C100, ">500")Region from E2, only amounts above 500.SUMIFS between two dates
Use the date column twice: once with >= the start date and once with <= the end date. Join the comparison to a cell with & so the dates are easy to change.
=SUMIFS(C2:C100, A2:A100, ">="&F1, A2:A100, "<="&F2)Sales from the date in F1 to the date in F2.OR conditions: North or South
All the conditions in SUMIFS must be true at the same time. For "this or that", add two SUMIFS together. In one formula: =SUM(SUMIFS(C2:C100, A2:A100, {"North","South"})).
=SUMIFS(C2:C100, A2:A100, "North") + SUMIFS(C2:C100, A2:A100, "South")Two regions added together.A summary table from one formula
Lock the ranges with $ and use mixed references for the conditions. One formula then fills a whole table: regions down column F, products across row 1.
=SUMIFS($C$2:$C$100, $A$2:$A$100, $F2, $B$2:$B$100, G$1)Region from column F, product from row 1: copy it across and down.Common mistakes
- Arguments in SUMIF order
- SUMIF ends with the sum range, SUMIFS starts with it. Mixing them up gives wrong totals.
- Or-conditions
- All conditions are AND. For North or South, add two SUMIFS together.
- #VALUE! error
- All ranges must be the same size.
Frequently asked questions
How many conditions can SUMIFS have?
Up to 127 range and criteria pairs. Every criteria range must be the same size as the sum range.
Why does SUMIFS return 0?
One of the conditions never matches: check for extra spaces, numbers stored as text and dates typed as text. Test each condition alone with COUNTIFS to find the one that fails.
Can SUMIFS use OR logic?
Not directly. Add two SUMIFS together, or give one condition a list like {"North","South"} and wrap the formula in SUM.
Does SUMIFS work in Google Sheets?
Yes, with exactly the same syntax.
Available in: Excel 2007 and later, Excel for the web, Google Sheets