Math & Statistical
8.1K monthly searches
Beginner
5 min read

SUMIF Function in Excel - Conditional Sum with Single Criteria

Add numbers that meet a specific condition with conditional summation....

Quick Start

Syntax

=SUMIF(range, criteria, [sum_range])

Parameters

range - Required. The range to evaluate with criteria (e.g., A1:A10 for category column).

criteria - Required. The condition that determines which cells to sum (e.g., "East", ">100", or cell reference like E2).

sum_range - Optional. Optional. The actual cells to sum. If omitted, Excel sums the cells in range that meet the criteria.

Simplest Example

ABC
1RegionPersonSales
2EastAlice45000
3WestBob38000
4EastCarol52000
5EastDave38000
6East Total:
=SUMIF(A:A, "East", C:C)
135000

Quick Reference

Basic SUMIF
=SUMIF(A:A, "East", B:B)

Sum column B where column A equals "East"

Adds all sales for East region

SUMIF with Comparison
=SUMIF(A:A, ">100", B:B)

Sum column B where column A is greater than 100

Total of values where quantity exceeds 100

SUMIF with Wildcards
=SUMIF(A:A, "*Pro*", B:B)

Sum B where A contains "Pro" anywhere in text

Totals for all products with "Pro" in name

SUMIF with Cell Reference
=SUMIF(A:A, E2, B:B)

Sum B where A equals the value in cell E2

Dynamic criteria from another cell

Real-World Examples

Sum Sales by Region

Calculate total sales for a specific region using conditional summation. This formula automatically finds and sums all matching entries, eliminating manual filtering and calculation errors. This pattern is essential for sales managers tracking regional performance, finance teams analyzing geographic revenue distribution, and business analysts building territory reports. It handles dynamic data ranges, making it perfect for ongoing sales tracking where new transactions are added daily. Use this conditional sum technique for any categorical aggregation: sum by salesperson, product line, customer segment, or any classification dimension in your business data.

ABC
1RegionPersonSales
2EastAlice$45,000
3WestBob$38,000
4EastCarol$52,000
5EastDave$38,000
6East Total:
=SUMIF(A:A, "East", C:C)
$135,000
Pro Tip: Use whole column references (A:A, C:C) for dynamic ranges that automatically include new rows.
Pattern: =SUMIF(category_range, "category_name", sum_range)
Calculate Expenses Above Threshold

Sum expenses that exceed a specific amount with comparison operators. Using SUMIF with operators (>, <, >=, <=) enables threshold-based analysis critical for budget management and financial control. Finance departments use this pattern to identify high-value transactions requiring special approval, audit teams flag expenses exceeding policy limits, and procurement managers track large purchases for vendor negotiations. This function with numeric criteria supports all standard comparisons, making it versatile for variance analysis, outlier detection, and compliance monitoring across financial workflows.

ABC
1CategoryAmount
2Travel$450
3Supplies$75
4Software$1,200
5Marketing$850
6Over $500:$2,050
=SUMIF(B:B, ">500")
Pro Tip: When sum_range is omitted, the function sums the cells in range that meet criteria.
Pattern: =SUMIF(values_range, ">threshold")

Common Mistakes to Avoid

=SUMIF(A:A, East, B:B)Forgetting quotes around text criteria

❌ The Problem:

  • Excel treats East as a named range, not text
  • Returns #NAME? error if named range doesn't exist
  • Common mistake when copying formulas from examples
  • Causes formula failures in production reports

✅ Solution:

=SUMIF(A:A, "East", B:B)

Always wrap text criteria in double quotes. This formula requires quotes for literal text values. Only omit quotes when using cell references (=SUMIF(A:A, E2, B:B)) or numeric comparisons. This is a fundamental syntax rule that prevents #NAME? errors and ensures your conditional sum formulas work reliably across all scenarios.

=SUMIF(A:A, ">100", B:B)Wrong range for numeric comparison

❌ The Problem:

  • Compares text in column A against number 100
  • Returns 0 if column A contains text
  • Logic error: checking wrong column for criteria
  • Should check numeric column (B:B) against 100

✅ Solution:

=SUMIF(B:B, ">100")

The first argument (range) should be the column you're testing with criteria. When summing values greater than 100, put the numeric column in range parameter. This formula uses range for criteria evaluation, and sum_range for actual summing. If you omit sum_range, it sums the cells in range that meet your condition - perfect for this scenario.

=SUMIF(A1:A10, "East", C1:C20)Mismatched range sizes causing incorrect totals

❌ The Problem:

  • Range is 10 rows but sum_range is 20 rows
  • SUMIF uses first 10 rows of sum_range (C1:C10)
  • Silently ignores C11:C20, causing wrong totals
  • Difficult to debug because formula doesn't error

✅ Solution:

=SUMIF(A1:A10, "East", C1:C10)

Always use matching sizes for range and sum_range. This formula aligns ranges by relative position - if range starts at A1, sum_range should start at the corresponding row in column C. When ranges are different sizes, only the overlapping portion is used, causing missing data in your conditional sums. Best practice: use whole column references (A:A, C:C) to avoid size mismatches entirely.

Frequently Asked Questions

Other Math & Statistical Functions

Related Formulas

Master these SUMIF variants:

Master Excel SUMIF

From basics to advanced - AI generates perfect formulas instantly.