SUMIF Function in Excel: Sum Values That Meet One Condition

📎 This article includes 1 downloadable practice file ↓

⏱ 1 min readUpdated 28 September 2026

MathLevel: IntermediateAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Related functions

SUMIF adds values where one condition is true. For two or more conditions use SUMIFS.

Syntax

=SUMIF(range, criteria, [sum_range])
Argument What it means
range Cells to test.
criteria The condition: “North”, “>1000”, “*cable*”.
sum_range Cells to add (defaults to range).

Examples

Example 1

=SUMIF(B:B, "North", E:E)

Total sales for North.

Example 2

=SUMIF(E:E, ">"&H1)

Sum of amounts above a threshold typed in H1.

SUMIFS · COUNTIF · AVERAGEIF

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

📎 Practice files for this article

  • 📗
    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

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