How to use SUMIFS in Excel: sum with multiple criteria
SUMIFS adds up numbers in rows that meet several conditions at once: sales by region, by product, between two dates and more. Syntax, examples, errors.
Syntax
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
- sum_range — The column of numbers to add (for example, sales amounts). In SUMIFS it is the first argument.
- criteria_range1 — The column where the first condition is tested. It must be the same size as sum_range.
- criteria1 — The condition: a number, text or expression — "Tashkent", ">100000", ">="&F1.
- criteria_range2, criteria2, ... — Optional. Additional pairs — up to 127. All conditions must be met at the same time (AND logic).
Example
Formula:
=SUMIFS(C2:C5,A2:A5,"Tashkent",B2:B5,"Notebook")→ result: 180000
How SUMIFS works
SUMIFS checks every row: if all conditions are met, the amount in that row is added to the total. In the example, rows 2 and 5 match — notebooks in Tashkent: 120,000 + 60,000 = 180,000. Pens in Tashkent and notebooks in Samarkand are skipped because each matches only one condition. Remember the order: first WHAT to add (the sum column), then pairs of WHERE to look and WHAT to match.
Writing criteria correctly
• Text: "Tashkent" — not case-sensitive. • Comparing numbers: ">100000", "<=50000", "<>0" — the operator and the number go inside quotes. • A value from a cell: ">="&F1 — the operator is in quotes and the cell is joined with &. Writing ">=F1" is a mistake: Excel reads it as the text “F1”. • Not equal: "<>Tashkent" — every region except Tashkent. • Blank cells: "", non-blank: "<>". • Partial match: "*notebook*" — any text containing “notebook”, "A*" — starts with A, "?" — any single character.
Sum between two dates
You can apply two conditions to the same column. If column A holds dates and column C amounts, January sales are: =SUMIFS(C2:C100,A2:A100,">="&DATE(2025,1,1),A2:A100,"<="&DATE(2025,1,31)) Even better, put the boundaries in cells — F1 for the start date and F2 for the end date: =SUMIFS(C2:C100,A2:A100,">="&F1,A2:A100,"<="&F2) Now you can change the reporting period without touching the formula.
OR logic: one of several values
All conditions in SUMIFS are combined with AND. For “Tashkent OR Samarkand”, add two SUMIFS together: =SUMIFS(C2:C5,A2:A5,"Tashkent")+SUMIFS(C2:C5,A2:A5,"Samarkand") In Excel 365 and 2021 a shorter form also works: =SUM(SUMIFS(C2:C5,A2:A5,{"Tashkent";"Samarkand"})) The values are mutually exclusive (same column), so nothing is counted twice.
SUMIF vs SUMIFS
SUMIF takes one condition, and the sum range comes last: =SUMIF(A2:A5,"Tashkent",C2:C5). In SUMIFS the sum range comes first: =SUMIFS(C2:C5,A2:A5,"Tashkent"). This different argument order is the most common source of mistakes. Tip: always use SUMIFS — it works fine with a single condition, and adding another one later is easy. COUNTIFS, AVERAGEIFS, MAXIFS and MINIFS follow the same pattern.
Common errors
• #VALUE! — the ranges are different sizes: C2:C100 and A2:A99. Every range must cover the same rows. • Result is 0 — the numbers in the sum range are stored as text (green triangle in the cell corner), or the criteria text has an extra space: “Tashkent ” ≠ “Tashkent”. Clean the data with TRIM. • 0 when filtering by date — the dates were entered as text. Convert the column to a date format or use DATEVALUE. • Ranges shift when you drag the formula — lock them with $: $C$2:$C$100 (F4).
Pro tips
• Put criteria in their own cells (region, month, manager) — you get a mini dashboard driven by one formula. • Turn the data into a table (Ctrl+T) so new rows are picked up by SUMIFS automatically. • Whole-column references (C:C) work and are convenient — just make sure the header row can’t match a condition. • When there are many combinations (every region × every month), a PivotTable is faster than dozens of SUMIFS formulas.
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.