SUMIF Function in Excel: Sum Values That Meet One Condition

SUMIF Function in Excel: Sum Values That Meet One Condition featured illustration

πŸ“Ž This article includes 2 downloadable practice files ↓

⏱ 3 min readUpdated 3 November 2026

Excel Core FunctionsLevel: Foundational β†’ IntermediateCompatibility: All Excel Versions

In this article
  1. Syntax & Parameter Breakdown
  2. Where You Will Use It
  3. Practical Worked Examples
  4. Mistakes People Make & How to Avoid Them
  5. Frequently Asked Questions
  6. Can SUMIF handle multiple criteria?
  7. Does SUMIF distinguish between uppercase and lowercase text?
  8. Can you use wildcards in SUMIF?
  9. SUMIF in practice
  10. Where you will use it
  11. Worked example
  12. Mistakes people make
  13. Continue learning

The SUMIF function in Excel is an essential spreadsheet tool designed to Calculate the total of numbers in a range that meet a specific condition, text match, date criteria, or logical comparison.

Advertisement

Syntax & Parameter Breakdown

=SUMIF(range, criteria, [sum_range])
Argument Requirement & Description
range Required. The range of cells you want evaluated by your criteria.
criteria Required. The condition that determines which cells to add (e.g., “>100”, “Apples”, or cell references like B2).
sum_range Optional. The actual cells to sum. If omitted, Excel sums the cells in the first range argument.

Where You Will Use It

Used constantly in finance, accounting, and sales analysis to aggregate totals by category, vendor name, transaction department, or date range.

Practical Worked Examples

Here are common real-world formula scenarios utilizing SUMIF:

Formula Expected Behavior & Purpose
=SUMIF(A2:A100, "North", C2:C100) Total revenue for all rows where Region equals ‘North’.
=SUMIF(C2:C100, ">5000") Sums all transactions greater than 5,000 directly from the amount range.
=SUMIF(B2:B100, "*Tech*", C2:C100) Wildcard match: sums amounts for any vendor containing ‘Tech’.

Mistakes People Make & How to Avoid Them

Common error: range and sum_range having unequal sizes, causing slow recalculations or misaligned additions. Criteria strings with operators must be enclosed in quotes (e.g., “>=” & D1).

Frequently Asked Questions

Can SUMIF handle multiple criteria?

No, SUMIF handles only one condition. For multiple criteria across different columns, use the SUMIFS function.

Does SUMIF distinguish between uppercase and lowercase text?

No, SUMIF is case-insensitive. ‘North’ and ‘north’ will match identically.

Can you use wildcards in SUMIF?

Yes! Use ‘?’ to match any single character and ‘*’ to match any sequence of characters.

πŸ“š Master spreadsheet formulas with our Free Excel Course or explore related functions in the Formula Lab.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

SUMIF in practice

Where you will use it

  • Sales of one region
  • Total of one expense head
  • Sum amounts above a limit

Worked example

RegionSaleFormulaResult
North12000=SUMIF($A$2:$A$4,A2,$B$2:$B$4)27000
South8000=SUMIF($A$2:$A$4,A3,$B$2:$B$4)8000
North15000=SUMIF($A$2:$A$4,A4,$B$2:$B$4)27000

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Sum range a different sizeKeep ranges the same height
Numbers as textText numbers aren't summed

πŸ“Ž Practice files for this article

⬇ Download all 2 files (ZIP Β· 38 KB)

  • πŸ“—
    SUMIFS/COUNTIFS scenarios workbookConditional sums and counts with dates, OR logic and wildcards, plus 4 classic reasons totals come out wrong β€” all with PASS/FAIL checks.
    ⬇ XLSX Β· 9 KB
  • πŸ“—
    Practice workbook: Math & rounding24 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 35 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong