What is SUMIF in Google Sheets?

SUMIF totals values in a sum_range when a matching row in criteria_range meets your criterion. It is the classic single-condition sum: add column B where column A equals West. Wildcards and comparison operators work in the criterion string.

When to use it

Use SUMIF when you need one rule: revenue by region, hours by project code, or expenses where category equals Travel.

When to skip it

Skip SUMIF when you need two or more AND conditions on different columns. Use SUMIFS instead. For counting matches without summing, use COUNTIF.

How it works

  1. 1

    Pick sum_range: the numeric column to add, such as Revenue in column C.

  2. 2

    Pick criteria_range: the column to test, often the same height as sum_range.

  3. 3

    Write criterion as a quoted string, cell reference, or expression like ">100".

  4. 4

    SUMIF scans criteria_range row by row and adds the parallel sum_range cell when the test passes.

  5. 5

    Use wildcards * and ? inside quotes for partial text matches on labels.

  6. 6

    Pair with absolute references ($C$2:$C) when copying the formula across summary columns.

Examples in Google Sheets

Sum sales for one rep

=SUMIF(A2:A500, "Jordan", C2:C500) adds revenue in column C where owner in column A is Jordan.

Sum above a threshold

=SUMIF(D2:D, ">=1000", E2:E) totals amounts in E where score in D is at least 1000.

Wildcard department match

=SUMIF(B2:B, "Marketing*", C2:C) includes Marketing, Marketing Ops, and similar labels.

Build this without starting from a blank cell

Use a Better Sheets tool for SUMIF, then watch a walkthrough when you want the full pattern.

Better Sheets resources

Common mistakes

  • Mismatched heights between sum_range and criteria_range, which returns wrong totals or errors.
  • Putting the criterion in the wrong argument order compared with SUMIFS.
  • Comparing dates stored as text, so SUMIF finds zero matches silently.
  • Using SUMIF on whole columns A:A and C:C in every summary cell on a huge sheet, slowing recalc.
  • Expecting OR logic across two columns from one SUMIF. Use two SUMIFs added together or SUMIFS.

Frequently asked questions

SUMIF vs SUM?
SUM adds every number in a range. SUMIF adds only rows where a separate column matches your rule.
Can criterion be a cell reference?
Yes. Put the test value in a settings cell and reference it instead of a quoted string.
SUMIF with dates?
Compare real date values or use DATE inside quotes. Text dates often fail to match.
SUMIF vs SUMIFS?
SUMIF handles one condition. SUMIFS accepts multiple range-criterion pairs with AND logic.
Wildcards in SUMIF?
Use * for any text run and ? for one character inside the quoted criterion.
SUMIF on text numbers?
SUMIF still adds if sum_range cells are numeric. Clean imports with VALUE if needed.
Why is my SUMIF zero?
Check extra spaces in criteria_range, wrong quote type, or criterion that does not match any row.
SUMIF across sheets?
Reference another tab in both ranges, such as Sales!A2:A and Sales!C2:C.

Related Tutorials

Watch how SUMIF works

Browse more tutorials
Hardest Formula: SumIF | Addition Based on Dates / Values

Hardest Formula: SumIF | Addition Based on Dates / Values

Demystifying the SumIF Formula. Add up your values based on a condition,...
How to Use AND(), OR() in IF() in Google Sheets For Multiple Criteria

How to Use AND(), OR() in IF() in Google Sheets For Multiple Criteria

One of the most simplest and useful formula combinations is using and an...
Learn Google Sheet Formulas The Hard Way

Learn Google Sheet Formulas The Hard Way

One weird way to learn more about what Google Sheets can do. https://bet...
How to Use AND() and OR() in IF() in Google Sheets For Multiple Criteria

How to Use AND() and OR() in IF() in Google Sheets For Multiple Criteria

One of the most simplest and useful formula combinations is using and an...
5 Ways to use IF() Formula to Create Magic in Your Sheets

5 Ways to use IF() Formula to Create Magic in Your Sheets

We're going to create some magic here. Some if magic, sprinkle a little ...
Ultimate Checklist in Google Sheets

Ultimate Checklist in Google Sheets

how to create and customize checklists using Google Sheets. I show you h...

Related blog posts

Guides that explain SUMIF in more depth.

Browse the blog

Related glossary terms

Done reading about SUMIF?

Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.