Build a Two-Way Summary with SUMIFS
Turn normalized source records into a reusable row-by-column reporting grid using one SUMIFS formula with controlled mixed references, then reconcile row, column, and source totals.
| Two-Way SUMIFS Formula Review | |||||||
| Review each criterion separately before combining row and column dimensions. | |||||||
| Source data, synthetic | SUMIFS review, editable selections | ||||||
| Opportunity | Owner | Stage | Value ($) | Selected owner | Ava | ||
| O-001 | Ava | Prospect | 1,200 | Selected stage | Proposal | ||
| O-002 | Ava | Qualified | 800 | ||||
| O-003 | Ava | Proposal | 1,500 | Example | Formula syntax | Result ($) | |
| O-004 | Ava | Closed | 1,000 | Owner subtotal | =SUMIFS($D$12:$D$24,$B$12:$B$24,$G$11) | 4,800 | |
| O-005 | Ava | Prospect | 300 | Stage subtotal | =SUMIFS($D$12:$D$24,$C$12:$C$24,$G$12) | 3,200 | |
| O-006 | Ben | Prospect | 900 | Owner + stage | =SUMIFS($D$12:$D$24,$B$12:$B$24,$G$11,$C$12:$C$24,$G$12) | 1,500 | |
| O-007 | Ben | Qualified | 1,100 | ||||
| O-008 | Ben | Proposal | 700 | ||||
| O-009 | Ben | Closed | 1,300 | ||||
| O-010 | Cara | Prospect | 600 | ||||
| O-011 | Cara | Qualified | 1,400 | ||||
| O-012 | Cara | Proposal | 1,000 | ||||
| O-013 | Cara | Closed | 500 | ||||
| Reliability checks | |||||||
| Ava in Proposal returns the expected $1,500 | OK | ||||||
| Two-way result does not exceed either one-way subtotal | OK | ||||||
Overview
Convert normalized opportunity records into an owner-by-stage value grid. One formula fills across four stages and down three owners, while row, column, and grand totals provide a complete reconciliation.
When to use it
Use it for pipeline by owner and stage, products by region, departments by expense class, or compact dashboard tables where one row dimension and one column dimension define each subtotal.
When not to use it
Use a PivotTable when interactive filtering, grouping, and drill-down matter more than a fixed layout. Use the monthly-columns formula when column criteria are date windows. Use SUMPRODUCT when dimensions require in-memory transformations.
Problem
Writing separate formulas for every cell creates unnecessary maintenance and inconsistent ranges. Fully relative references also drift when filled in two directions. The row-label column, column-header row, and source ranges need different locking behavior.
Source data
The synthetic source in B12:D24 contains 13 opportunities. The resulting grid is:
Owner | Prospect | Qualified | Proposal | Closed | Total |
|---|---|---|---|---|---|
Ava | 1,500 | 800 | 1,500 | 1,000 | 4,800 |
Ben | 900 | 1,100 | 700 | 1,300 | 4,000 |
Cara | 600 | 1,400 | 1,000 | 500 | 3,500 |
Each source row has one Owner, Stage, and numeric Value. Axis labels should be unique, and all source ranges must align.
Source order does not matter because each grid cell evaluates the complete bounded dataset. Multiple opportunities at the same intersection are expected and are added together.
Calculations
- Match each record’s Owner to the current row label.
- Match its Stage to the current column header.
- Sum Values only where both conditions are true.
- Fill the same formula across and down using mixed references.
- Reconcile grid totals in both directions to the source total.
Outputs
The three-by-four grid totals $12,300. Ava contributes $4,800, Ben $4,000, and Cara $3,500. Column totals are $3,000 Prospect, $3,300 Qualified, $3,200 Proposal, and $2,800 Closed.
Formula map
=SUMIFS($D$12:$D$24,$B$12:$B$24,$F12,$C$12:$C$24,G$11)
$F12 locks the row-label column but lets the row change. G$11 locks the header row but lets the column change. The amount and criteria ranges are fully absolute.
Model checks
The workbook verifies that the grid grand total equals all source Values and that row totals reconcile to column totals. Passing checks return OK.
Edge cases
- Multiple records at one intersection are aggregated together.
- A valid owner-stage combination with no records returns zero.
- Duplicate axis labels repeat totals and can overstate the displayed grand total.
- Text comparisons are not case-sensitive.
- Blank or nonnumeric Values do not contribute.
- Unequal source ranges invalidate alignment.
Common errors
- Using fully relative headers: criteria drift during fill. Use
$F12andG$11. - Writing formulas individually: ranges diverge across the grid. Seed the top-left cell and fill.
- Repeating axis labels: subtotals appear more than once. Use unique row and column lists.
Example
Ava has Prospect records of $1,200 and $300, so her Prospect cell is $1,500. Her remaining stages total $800, $1,500, and $1,000, producing $4,800. Summing every owner row returns the same $12,300 as the source.
Example workbook
Edit the cream owner labels in Combined Example!F12:F14, stage headers in G11:J11, or source records in B12:D24. The grid and totals update automatically. Formula Review isolates owner-only, stage-only, and combined criteria.
Key takeaway
Lock the row-label column, column-header row, and all source ranges deliberately so one SUMIFS formula can drive and reconcile an entire two-way summary.