WorkbookLogic
FormulaFreeAggregationintermediateSUMIFSIFANDSUMROUNDCOUNTACOUNT

Sum Values with Multiple Criteria

By WorkbookLogic

Return one controlled subtotal from row-level data by placing every required condition inside a single SUMIFS formula and keeping all source and criteria ranges aligned.

ExcelLast reviewed Sep 11, 2026
sum-if-multiple-criteria-v1.0.0.xlsxFree
SUMIFS Formula Review
Use criteria pairs to include only rows that satisfy every required condition.
Source data, syntheticSUMIFS review, editable criteria
TransactionRegionCategoryAmount ($)Selected regionNorth
T-001NorthHardware1,250Selected categoryHardware
T-002NorthSoftware600
T-003SouthHardware1,100ExampleFormula syntaxResult ($)
T-004NorthHardware750Region only=SUMIFS($D$12:$D$19,$B$12:$B$19,$G$11)3,450
T-005EastServices900Category only=SUMIFS($D$12:$D$19,$C$12:$C$19,$G$12)4,300
T-006WestSoftware500Both criteria=SUMIFS($D$12:$D$19,$B$12:$B$19,$G$11,$C$12:$C$19,$G$12)2,000
T-007EastHardware1,200
T-008NorthServices850
Reliability checks
Two-condition result is not greater than either one-condition subtotalOK
North plus Hardware worked example returns the expected $2,000OK

Overview

Return one total from rows where every selected condition matches. The example sums Amount for North Hardware transactions, applying Region and Category tests to the same records and reconciling the compact formula to a row-level audit.

When to use it

Use it for departmental expense summaries, revenue by region and product, mapped reporting lines, or any normalized dataset where simultaneous exact conditions define the subtotal.

When not to use it

Use SUMIF for one condition. Use the OR-specific formula when a row may match any of several alternatives. Use a PivotTable for interactive multi-dimensional reporting, or SUMPRODUCT when criteria require array transformations.

Problem

Adding separate Region and Category subtotals does not return their intersection and can count unrelated rows. Each condition must be paired with its aligned source column inside one calculation so only records passing every test contribute.

Inputs

Input

Location

Sample

Selected region

Combined Example!I11

North

Selected category

Combined Example!I12

Hardware

Source data

The synthetic source in B12:D19 includes:

Transaction

Region

Category

Amount

T-001

North

Hardware

1,250

T-002

North

Software

600

T-003

South

Hardware

1,100

T-004

North

Hardware

750

T-005

East

Services

900

T-006

West

Software

500

T-007

East

Hardware

1,200

T-008

North

Services

850

Each row is one record. Criteria and amount ranges must share identical boundaries.

Region and Category are text fields; Amount is numeric. Source order does not affect the subtotal, and repeated qualifying transactions remain separate contributions. Headers are excluded from every formula range so their text cannot interfere with the aggregation.

Calculations

  1. Define the numeric amount range.
  2. Pair the Region range with the selected Region.
  3. Pair the Category range with the selected Category.
  4. Include an amount only when both pairs match on the same row.
  5. Reconcile the result to a visible included-amount column.

Outputs

Two rows match North and Hardware: 1,250 and 750. The formula returns $2,000. If no row matches the complete combination, SUMIFS returns zero rather than an error.

Formula map

=SUMIFS($D$12:$D$19,$B$12:$B$19,$I$11,$C$12:$C$19,$I$12)

The amount range comes first, followed by aligned range and criterion pairs. Absolute references keep both the source population and selected controls fixed.

Model checks

The workbook confirms that SUMIFS equals the row-level included-amount audit and that Region, Category, and Amount ranges contain the same number of populated rows. Both tests return OK.

Edge cases

  • A row matching only one criterion is excluded.
  • Text comparisons are not case-sensitive.
  • No complete match returns zero.
  • Blank or nonnumeric amounts contribute nothing.
  • Duplicate qualifying records each contribute.
  • Unequal range dimensions produce an error or invalidate row alignment.

Common errors

  • Adding separate totals: this behaves like OR and can double-count. Place both pairs in one SUMIFS.
  • Hardcoding selections: changes are difficult to review. Reference visible input cells.
  • Misaligning ranges: conditions apply to different records. Keep identical start and end rows.

Example

T-001 and T-004 pass both tests, so 1,250 + 750 = $2,000. T-002 is North but not Hardware, while T-003 is Hardware but not North; both are excluded. The visible helper column independently totals the same $2,000.

Example workbook

Edit the cream selections in Combined Example!I11:I12 or source rows in B12:D19. The result in J14, row-level flags, included amounts, and checks update automatically. Formula Review compares Region-only, Category-only, and combined totals.

Key takeaway

Put all required aligned criteria pairs inside one SUMIFS so a row contributes only when every condition is true at the same time.