SUMIF Multiple Criteria

If you just need to sumif multiple criteria and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: use SUMIFS (not SUMIF) to sum a range based on two or more conditions — =SUMIFS(C:C,A:A,E2,B:B,F2) sums column C where column A equals E2 AND column B equals F2.

On this page8

Formula: SUMIFS with Multiple Criteria

=SUMIFS(C:C,A:A,E2,B:B,F2)
▤Annotated stepsExcel
1

Identify the sum range (the column of values to add) and each criteria range-criteria pair.

2

Write =SUMIFS( followed by the sum range, then each criteria_range, criteria pair separated by commas.

3

Example: =SUMIFS(C:C, A:A, E2, B:B, F2)

4

For text criteria, put the value in a reference cell (like E2) or in quotes inside the formula.

5

For comparison criteria (greater than, between dates), use: criteria_range, ">="&value.

6

Press Enter. Test by changing E2/F2 to confirm the sum updates.

Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

What this does

SUMIFS extends SUMIF to support multiple simultaneous criteria. The syntax is =SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2, …) with up to 127 criteria pairs. Unlike SUMIF, SUMIFS places the sum_range first and always requires the sum range and criteria ranges to be the same size. All criteria must match simultaneously (AND logic) — use a helper formula or SUMPRODUCT for OR logic across criteria. SUMIFS is available in Excel 2007 and later and in Google Sheets. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. For “sumif multiple criteria”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That is what makes a calculation you can defend to a CFO or an auditor useful in real work: repeatable, auditable, and not dependent on memory or luck.

A worked example

Scenario: column A contains regions, column B contains product categories, column C contains sales amounts. You want to sum sales where region equals the value in E2 AND category equals the value in F2. =SUMIFS(C:C,A:A,E2,B:B,F2) sums every row in C where the same row in A matches E2 and the same row in B matches F2. Change E2 to "North" and F2 to "Electronics" to get total electronics sales in the North region. For date ranges: =SUMIFS(C:C,A:A,">="&E2,A:A,"<="&F2) sums rows where A falls between dates in E2 and F2. SUMIFS is the workhorse for conditional aggregation in Excel — use it any time you need a subtotal filtered by two or more conditions. It is faster than SUMPRODUCT on large datasets, clearer to read than array formulas, and available in every modern Excel version. Master it for finance models, sales dashboards, and any structured data table where you slice totals by multiple dimensions. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.

In Google Sheets

The standard worksheet functions used by this example are listed in Google Sheets. Check the cell references, argument separators and input types in the target spreadsheet, then compare the worked result. This formula-availability check does not establish identical menus, keyboard shortcuts or workbook features, and it is not a product execution test. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. For “sumif multiple criteria”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.

Common mistakes

  • Using SUMIF instead of SUMIFS for multiple criteria — SUMIF only supports one criterion; SUMIFS is the correct function for two or more.
  • Mismatching range sizes — all ranges in SUMIFS (sum_range and all criteria_ranges) must cover the same number of rows. A1:A100 and C1:C200 would return #VALUE!.
  • Treating SUMIFS as OR logic — SUMIFS requires ALL criteria to match simultaneously. For OR (sum where region=North OR region=South), use =SUMIFS(C:C,A:A,"North")+SUMIFS(C:C,A:A,"South") or SUMPRODUCT.

Frequently asked questions

What is the difference between SUMIF and SUMIFS?

SUMIF supports one criterion: =SUMIF(range, criteria, sum_range). SUMIFS supports multiple criteria simultaneously: =SUMIFS(sum_range, range1, criteria1, range2, criteria2, …). Note that sum_range is the FIRST argument in SUMIFS but the THIRD in SUMIF.

How do I use SUMIFS with date ranges?

=SUMIFS(C:C, A:A, ">="&E2, A:A, "<="&F2) sums column C where column A falls between the dates in E2 and F2. The &-concatenation attaches the comparison operator to the cell reference — essential for date criteria to work correctly.

How do I get SUMIFS OR logic (sum when any criterion matches)?

Add separate SUMIFS formulas: =SUMIFS(C:C,A:A,"North")+SUMIFS(C:C,A:A,"South"). Or use SUMPRODUCT with an OR array: =SUMPRODUCT(((A:A="North")+(A:A="South")>0)*C:C). The addition method is simpler for a small number of OR conditions.

Other ways people ask this

On the way here you may have searched this as “sumifs function in excel”, “how to use sumifs in excel”, “sumifs multiple columns” and “how to use sumifs formula in excel” — it is all the same task, and this page is the single, complete answer to it.

Why do people search for this in so many different ways?

Because the same task has many names. “sumifs function in excel”, “how to use sumifs in excel”, “sumifs multiple columns” all point at the one operation explained on this page, which is why they all lead here.