FormulaCraft

How to sum with multiple criteria in Excel and Google Sheets

Topic:SUM & aggregation
Excel & Google Sheets
=SUMIFS(C2:C6,A2:A6,"East",B2:B6,"Widget")

Verified example

Computed by a real spreadsheet engine on the sample data below.

RegionProductSales
EastWidget500
WestWidget300
EastGadget200
EastWidget400
WestGadget150

=SUMIFS(C2:C6,A2:A6,"East",B2:B6,"Widget")900

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Identify the sum range (e.g. C2:C6 for sales amounts) and each criteria range with its matching value.
  2. 2Type =SUMIFS(C2:C6,A2:A6,"East",B2:B6,"Widget"). The first argument is always the sum range; criteria pairs follow in order.
  3. 3Press Enter. Only rows where column A = "East" AND column B = "Widget" contribute to the total.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

What is the difference between SUMIF and SUMIFS?

SUMIF supports a single condition; SUMIFS supports multiple. Also note the argument order differs: SUMIF is (range, criteria, sum_range) while SUMIFS is (sum_range, criteria_range1, criteria1, ...).

Can I use OR logic with SUMIFS?

SUMIFS uses AND logic. For OR logic, add separate SUMIFS calls together: =SUMIFS(..."East"...)+SUMIFS(..."West"...).

More on SUM & aggregation

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: