Skip to content
getgriddy.ai/blog/google-sheets-sumif-multiple-criteria
Google Sheets

Google Sheets SUMIF with Multiple Criteria

SUMIF only handles one condition. When you need to sum by multiple criteria in Google Sheets, use SUMIFS — or SUMPRODUCT for more flexibility. Here's exactly how.

·5 min read

SUMIF is great for summing by a single condition. The moment you need two conditions — sum sales for Region = "West" and Product = "Widget" — you need SUMIFS.

SUMIFS syntax

fx
=SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2)

Unlike SUMIF, SUMIFS puts the sum_range first, then alternates between criteria ranges and their conditions. You can add as many criteria pairs as you need.

Basic example

Sum all sales where the region is "West" and the product is "Widget":

fx
=SUMIFS(C2:C100, A2:A100, "West", B2:B100, "Widget")
  • C2:C100 — the column you're summing (Sales)
  • A2:A100 — first criteria column (Region)
  • "West" — first criteria value
  • B2:B100 — second criteria column (Product)
  • "Widget" — second criteria value

All ranges must be the same size.

TIP

Criteria values can reference cells instead of being hardcoded. Replace "West" with a cell reference like E2 to make the formula dynamic.

Using comparison operators

Criteria can include comparison operators as text strings:

fx
=SUMIFS(C2:C100, A2:A100, "West", D2:D100, ">1000")

This sums sales in the West region where the order value is greater than 1000.

OperatorExample
Greater than">1000"
Less than or equal"<=500"
Not equal"<>Cancelled"
Contains (wildcard)"*Widget*"

To use a cell reference with a comparison operator, concatenate:

fx
=SUMIFS(C2:C100, A2:A100, "West", D2:D100, ">"&E2)

Summing by date range

To sum values between two dates, use two criteria on the same date column:

fx
=SUMIFS(C2:C100, A2:A100, "West", B2:B100, ">="&DATE(2026,1,1), B2:B100, "<"&DATE(2026,4,1))

This sums West region sales in Q1 2026.

NOTE

Dates in Google Sheets are stored as numbers. SUMIFS compares them numerically, so >= and < work correctly with date values.

When to use SUMPRODUCT instead

SUMPRODUCT is more flexible than SUMIFS — it can handle OR logic and more complex array operations:

fx
=SUMPRODUCT((A2:A100="West")*(B2:B100="Widget")*C2:C100)

Each condition in parentheses evaluates to an array of 1s and 0s. Multiplying them together creates an AND: only rows where both are 1 contribute to the sum.

For OR logic — sum where Region is West or Product is Widget:

fx
=SUMPRODUCT(((A2:A100="West")+(B2:B100="Widget")>0)*C2:C100)

The >0 converts the OR result back to a binary array.

The Griddy way

SUMIFS and SUMPRODUCT get tricky fast once you're dealing with date ranges, partial text matches, or OR conditions. Describe the calculation you need:

"Sum revenue from the West and South regions for orders placed in Q1 where the product category is Hardware"

Griddy writes the correct formula for your exact columns and data structure — no guessing at syntax or debugging #VALUE! errors.

Skip the manual work

Describe it. Griddy does it.

Instead of writing this formula yourself, just tell Griddy what you need in plain English. Works in Excel and Google Sheets.