Beginner 8 min read

SUMIF and SUMIFS in Google Sheets

Learn how to use SUMIF and SUMIFS in Google Sheets to add values based on one or multiple conditions. Step-by-step examples, syntax, and common mistakes.

SB

Sheets Bootcamp

February 27, 2026

SUMIF in Google Sheets adds values in a range based on a condition you specify. It belongs to the same family of conditional functions covered in our IF function guide, and once you need more than one condition, SUMIFS picks up where SUMIF leaves off. We’ll cover both functions, walk through real examples, and highlight the argument order difference that catches most people off guard.

In This Guide

What Is SUMIF?

SUMIF adds values in a range where a corresponding cell meets a condition. Use it when you want to total revenue by region, sum expenses by category, or add up hours by employee.

SUMIF Syntax

Formula
=SUMIF(range, criterion, [sum_range])
ParameterDescriptionRequired
rangeThe range of cells to evaluate against the criterionYes
criterionThe condition that determines which cells to include. Text, numbers, or expressions like ">400"Yes
sum_rangeThe range of cells to add. If omitted, SUMIF adds the values in range insteadNo
Important

SUMIF puts the criteria range first: =SUMIF(range, criterion, sum_range). This is the opposite of SUMIFS, which puts the sum range first. Mixing them up is the most common SUMIF mistake.

How to Use SUMIF: Step-by-Step

We’ll use a sales records table with 10 transactions. The goal: add up all revenue from the Baker Street region.

1

Review your data

Your spreadsheet has sales records in columns A through G. Each row contains a Date, Salesperson, Region, Product, Units, Revenue, and Commission.

ABCDEFG
1DateSalespersonRegionProductUnitsRevenueCommission
21/5/2026Sherlock HolmesBaker StreetListening Device12$239.88$24.00
31/7/2026Irene AdlerScotland YardForensic Chemistry Set8$360.00$36.00
41/8/2026Inspector LestradeBaker StreetPocket Watch15$525.00$52.50
51/10/2026Sherlock HolmesBaker StreetField Binoculars5$325.00$32.50
61/12/2026Mycroft HolmesScotland YardCipher Decoder20$570.00$57.00
71/14/2026Irene AdlerWhitehallMagnifying Glass25$624.75$62.50
81/15/2026Inspector LestradeScotland YardListening Device10$199.90$20.00
91/18/2026Sherlock HolmesBaker StreetDisguise Kit3$269.97$27.00
101/20/2026Mycroft HolmesWhitehallBrass Telescope8$336.00$33.60
111/22/2026Irene AdlerScotland YardLockpick Set6$330.00$33.00

Sales records table with 10 transactions in Google Sheets

2

Enter the SUMIF formula

Select cell I2 and enter:

Formula
=SUMIF(C2:C11, "Baker Street", F2:F11)

Here is what each part does:

  • C2:C11 — the range to check (Region column)
  • "Baker Street" — the criterion (match rows where Region equals Baker Street)
  • F2:F11 — the sum range (add the Revenue values for matching rows)

SUMIF formula returning $1,359.85 for Baker Street revenue

3

Check the result

Press Enter. The formula returns $1,359.85. That is the total revenue from the four Baker Street transactions: $239.88 + $525.00 + $325.00 + $269.97.

Note

SUMIF is not case-sensitive. “Baker Street”, “baker street”, and “BAKER STREET” all match the same rows.

SUMIF with Comparison Operators

SUMIF works with more than exact text matches. You can use comparison operators to sum values above or below a threshold.

To add all revenue values greater than $400:

Formula
=SUMIF(F2:F11, ">400", F2:F11)

This returns $1,719.75. Three transactions have revenue above $400: $525.00, $570.00, and $624.75.

SUMIF with greater than operator returning $1,719.75

Tip

When the criteria range and sum range are the same column, you can omit the third argument. =SUMIF(F2:F11, ">400") returns the same $1,719.75 result.

Common comparison operators you can use as criteria:

OperatorMeaningExample Criterion
>Greater than">400"
<Less than"<200"
>=Greater than or equal to">=500"
<=Less than or equal to"<=300"
<>Not equal to<>"Whitehall"

What Is SUMIFS?

SUMIFS adds values based on two or more conditions. When you need to filter by region and salesperson at the same time, SUMIFS handles it in a single formula.

SUMIFS Syntax

Formula
=SUMIFS(sum_range, criteria_range1, criterion1, criteria_range2, criterion2, ...)
ParameterDescriptionRequired
sum_rangeThe range of cells to addYes
criteria_range1The first range to evaluateYes
criterion1The condition for criteria_range1Yes
criteria_range2The second range to evaluateNo
criterion2The condition for criteria_range2No

You can add as many criteria_range/criterion pairs as you need.

Warning

SUMIFS puts the sum range FIRST. This is the opposite of SUMIF, where the criteria range comes first. Swapping the order is the number one SUMIFS mistake and returns wrong results without an error message.

How to Use SUMIFS: Step-by-Step

Using the same sales data, we want total revenue where the salesperson is Sherlock Holmes AND the region is Baker Street.

1

Enter the SUMIFS formula

Select cell I2 and enter:

Formula
=SUMIFS(F2:F11, B2:B11, "Sherlock Holmes", C2:C11, "Baker Street")

Here is what each part does:

  • F2:F11 — the sum range (Revenue column, listed first in SUMIFS)
  • B2:B11 — first criteria range (Salesperson column)
  • "Sherlock Holmes" — first criterion (match Sherlock Holmes)
  • C2:C11 — second criteria range (Region column)
  • "Baker Street" — second criterion (match Baker Street)

SUMIFS formula returning $834.85 for Sherlock Holmes in Baker Street

2

Check the result

Press Enter. The formula returns $834.85. Sherlock Holmes has three Baker Street transactions: $239.88 + $325.00 + $269.97.

You can also combine text criteria with comparison operators. For example, to sum revenue in Baker Street where revenue exceeds $300:

Formula
=SUMIFS(F2:F11, C2:C11, "Baker Street", F2:F11, ">300")

This returns $850.00 ($525.00 + $325.00). Only two Baker Street transactions have revenue above $300.

SUMIF vs SUMIFS: Key Differences

FeatureSUMIFSUMIFS
Number of conditionsOneTwo or more
Argument orderCriteria range first, then sum rangeSum range first, then criteria pairs
Syntax=SUMIF(range, criterion, sum_range)=SUMIFS(sum_range, range1, criterion1, ...)
Comparison operatorsYesYes
Wildcards (* and ?)YesYes

The argument order is the biggest difference. Writing SUMIFS with the SUMIF argument order (or vice versa) is a silent error. Google Sheets will not warn you. It will return a wrong number.

SUMIF vs SUMIFS argument order comparison side by side

Common Mistakes

Swapping argument order between SUMIF and SUMIFS

SUMIF: criteria range first. SUMIFS: sum range first. If you write =SUMIFS(C2:C11, "Baker Street", F2:F11) with the SUMIF argument order, Google Sheets tries to sum the Region column, which contains text, and returns 0. No error appears, which makes this hard to catch.

Forgetting quotes around comparison operators

Comparison operators need to be inside double quotes. =SUMIF(F2:F11, >400, F2:F11) breaks because >400 is not a valid expression. Write ">400" with the quotes.

Mismatched range sizes in SUMIFS

Every criteria range and the sum range must be the same size. If your sum range is F2:F11 (10 rows) but a criteria range is C2:C8 (7 rows), SUMIFS returns a #VALUE! error. Keep all ranges the same length.

Tips

1. Use SUMIFS even for a single condition. SUMIFS works with one criteria pair too, and it keeps your formulas consistent. You won’t have to remember which argument order to use if you standardize on SUMIFS.

2. Reference cells for criteria. Instead of hardcoding "Baker Street", reference a cell: =SUMIF(C2:C11, I1, F2:F11). This lets you change the filter value without editing the formula.

3. Combine SUMIF with COUNTIF for averages. To get the average revenue per transaction for a region, divide SUMIF by COUNTIF: =SUMIF(C2:C11, "Baker Street", F2:F11) / COUNTIF(C2:C11, "Baker Street"). This returns $339.96, the average of the four Baker Street sales.

Tip

For more flexible summarization with grouping and filtering, try QUERY with GROUP BY. QUERY can produce summary tables with multiple aggregations in a single formula.

Frequently Asked Questions

What is the difference between SUMIF and SUMIFS?

SUMIF adds values based on a single condition. SUMIFS adds values based on two or more conditions. They also use different argument orders: SUMIF takes the criteria range first, while SUMIFS takes the sum range first.

Why is the argument order different in SUMIF vs SUMIFS?

SUMIF was designed first with the syntax =SUMIF(range, criterion, sum_range). When Google added SUMIFS for multiple criteria, the sum_range moved to the front so that additional criteria_range/criterion pairs could be appended without limit. The result is two functions with reversed argument orders.

Can SUMIF add values greater than a number?

Yes. Use a comparison operator inside quotes as the criterion. For example, =SUMIF(F2:F11, ">400", F2:F11) adds all values in the range that are greater than 400.

How do you use SUMIF with multiple criteria in Google Sheets?

Use SUMIFS instead of SUMIF. SUMIFS accepts multiple criteria_range/criterion pairs. For example, =SUMIFS(F2:F11, B2:B11, "Sherlock Holmes", C2:C11, "Baker Street") adds revenue where the salesperson is Sherlock Holmes and the region is Baker Street.

Frequently Asked Questions

Next Steps

Continue learning with these related tutorials: