Formula example

SUMIFS with Multiple Criteria

You want to total sales where Region is East and Product is Widget.

Copyable formula

Excel and Google Sheets formula
=SUMIFS(D2:D100, B2:B100, "East", C2:C100, "Widget")

Sample data

DateRegionProductAmount
2026-01-04EastWidget420
2026-01-12WestWidget310
2026-02-03EastGadget275
2026-02-15EastWidget640

Formula explanation

  • D2:D100 is the range being summed.
  • B2:B100 must equal East.
  • C2:C100 must equal Widget on the same row.

Common errors

  • Criteria ranges must match the sum range shape.
  • Text criteria require quotes.
  • SUMIFS uses AND logic across criteria pairs.

Build your own version

Use the deterministic builder for this pattern: SUMIFS Formula Builder.

Related formulas

FAQ

Can SUMIFS use OR logic?

Not directly in one criteria pair. Use multiple SUMIFS formulas or array logic for OR cases.

Does criteria order matter?

No, but keeping ranges near the source column order makes formulas easier to audit.