SUMIFS Formula Generator — Sum with Multiple Conditions | SheetMaster

Multi-Condition Mode

Add as many conditions as you need to filter the sum range.

1. Define Ranges & Criteria

Unlike SUMIF, the sum range always comes first in SUMIFS.

1

2. Visual Helper

#
Date
Region
Sales
...
1
2026-03-01
North
$500
2
2026-03-02
South
$300
3
2026-03-05
North
$850
Sum Range (Result)
Criteria Ranges (Filters)

3. Copy Formula

=SUMIFS(sum_range, criteria_range1, criteria1)

Master SUMIFS: Sum with Multiple Conditions

The SUMIFS function is an enhanced version of SUMIF that allows you to apply multiple criteria. It is essential for financial analysis, sales commission reports, and complex data aggregation.

Step-by-Step: Using SUMIFS for the First Time

Imagine a sales table:

  • Column A: Region (East, West, North)
  • Column B: Product Category (Electronics, Furniture, Clothing)
  • Column C: Sales Amount

Goal: Sum all sales in the "East" region for "Electronics" products.

=SUMIFS(C:C, A:A, "East", B:B, "Electronics")

How it works: SUMIFS scans column A for "East" AND column B for "Electronics". When a row matches BOTH conditions, it adds column C to the total.

SUMIF vs SUMIFS: Which should I use?

Many users struggle to choose between SUMIF and SUMIFS. Our recommendation is simple: Learn and always use SUMIFS. Why? SUMIFS can do everything SUMIF can (even just one condition), but its formula structure is entirely different and often easier to read because the result column comes first.

Feature SUMIF SUMIFS (Winner 🏆)
Conditions 1 max Up to 127
Argument order range, criteria, sum_range sum_range, range1, cr1, range2, cr2
Same-column multi criteria Not supported Supported (e.g. date ranges)

Real-World Examples

  • HR & Payroll: Sum total hours worked by a specific employee (Condition 1) between January 1 and January 31 (Conditions 2 & 3).
  • E-commerce: Sum total revenue for "Electronics" (Condition 1) where order status is "Delivered" (Condition 2) and discount was ">0" (Condition 3).
  • Finance: Sum all invoices over $5,000 in Q1 2026 that are still "Unpaid".
  • Marketing: Sum total ad spend for campaign "Summer Sale" where ROI > 200%.
  • Inventory: Sum stock quantities for "Electronics" items where reorder flag is "Yes".

SUMIFS with Date Ranges

Sum values between two dates by using two conditions on the same date column:

=SUMIFS(C:C, A:A, ">="&DATE(2026,1,1), A:A, "<="&DATE(2026,3,31))

For dynamic date ranges from cell references:

=SUMIFS(C:C, A:A, ">="&D1, A:A, "<="&E1)

This sums column C for all rows where column A dates fall within the range. Using cell references makes the formula reusable — just update the dates in D1 and E1.

Advanced: Same-Column Multi-Criteria

To sum values that fall within a numeric range, apply two criteria to the same column:

=SUMIFS(C:C, A:A, ">100", A:A, "<500")

This sums column C where column A is between 100 and 500 (exclusive). The same pattern works for dates, percentages, or any numeric criteria.

Common Mistakes and How to Fix Them

  • Wrong argument order: SUMIFS syntax is =SUMIFS(sum_range, criteria_range1, criteria1). The sum range comes FIRST — unlike SUMIF where it comes last. This is the #1 mistake.
  • Criteria not quoted: Text criteria need quotes: "=Sales". For cell references: ">"&A1.
  • Mismatched range sizes: All ranges must have the same number of rows. A1:A100 + B1:B99 = wrong results.
  • SUMIFS returns 0: Filter your data manually to verify rows matching all criteria exist. Check for hidden spaces with TRIM().

Pro Tip: Ensure that your sum_range and all criteria_range arrays are exactly the same size (e.g., all span rows 2 to 100). If they are mismatched, Excel will return an error.

Common Errors & Fixes

  • SUMIFS returns 0 or wrong total

    Causes:
    • Sum range and criteria ranges have different heights or columns.
    • Criteria in wrong order (text without quotes, date not as DATE() or cell ref).
    • Using SUMIF-style argument order (sum range must come first in SUMIFS).
    Fixes:
    • Use same-sized ranges: e.g. A1:A100, B1:B100, C1:C100.
    • Put text in quotes; use ">="&A1 for dates where A1 is a date.
    • Syntax: =SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2).

Frequently Asked Questions

How to use SUMIFS with multiple criteria in Excel?

Syntax: =SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2, ...). Example: =SUMIFS(C:C, A:A, "North", B:B, ">100") sums column C where column A is "North" AND column B > 100.

Why does SUMIFS return 0?

Three main causes: (1) sum_range and criteria_ranges have different sizes. (2) Text criteria missing quotes — use "North" not North. (3) Argument order wrong — sum_range must be FIRST, not last like SUMIF.

SUMIFS syntax: does sum_range come first or last?

FIRST. Unlike SUMIF (range, criteria, sum_range), SUMIFS places sum_range first: =SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2). This is the most common mistake for new users.

How do I use SUMIFS with dates between two dates?

Use two conditions on the same date column: =SUMIFS(C:C, A:A, ">="&DATE(2026,1,1), A:A, "<="&DATE(2026,3,31)). For cell references: =SUMIFS(C:C, A:A, ">="&D1, A:A, "<="&E1).

Can SUMIFS use wildcards?

Yes. * matches any sequence, ? matches single character: =SUMIFS(C:C, A:A, "*North*", B:B, ">100"). This sums values where column A contains "North" anywhere.

How to use SUMIFS with OR logic?

SUMIFS is AND-only. For OR, add multiple SUMIFS: =SUMIFS(C:C, A:A, "East", B:B, ">500") + SUMIFS(C:C, A:A, "West", B:B, ">500"). For complex logic, consider SUMPRODUCT.

Can SUMIFS sum across multiple columns?

Each SUMIFS handles one sum_range. To sum multiple columns, add separate SUMIFS: =SUMIFS(C:C, ...) + SUMIFS(D:D, ...). Or use SUMPRODUCT for non-contiguous ranges.

SUMIFS with blank / non-blank criteria?

Use "" for blank: =SUMIFS(C:C, A:A, "<>", B:B, "") sums C where A is not blank AND B is blank. This is useful for identifying incomplete records.

How do I sum values across multiple sheets using SUMIFS?

Use 3D references: =SUMIFS(Sheet1:Sheet3!D:D,Sheet1:Sheet3!A:A,"North",Sheet1:Sheet3!B:B,">100"). This sums column D across sheets 1-3 where column A equals 'North' and column B is greater than 100.

Can SUMIFS use OR logic to sum values matching either of two conditions?

SUMIFS uses AND logic only. For OR, add two SUMIFS: =SUMIFS(C:C,A:A,"East",B:B,">500") + SUMIFS(C:C,A:A,"West",B:B,">500"). This sums column C where region is East OR West AND amount > 500.

Why does my SUMIFS return #VALUE! error?

Common causes: (1) Criteria ranges have different sizes than the sum range. (2) Text criteria not enclosed in quotes. (3) Using operators incorrectly — for numbers use >500, for text use "East". Ensure all ranges are the same size.

Related Formulas

Explore related formula generators to solve similar problems

Want to become an Excel Pro?

Stop searching for formulas. Master Excel in 30 days with this top-rated course.

Learn More