A two-way summary totals your data by two dimensions at once — region down the side, month across the top — building a matrix report without a PivotTable. The trick is one SUMIFS with cleverly locked references that you fill across and down.
$A2 and column labels in B$1:
$A2) and the row of the column label (B$1) so one formula fills the whole grid.
The example
Raw rows (region, month, amount) summarized into a region × month grid.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Jan | Feb | Mar | |
| 2 | West | $120 | $200 | $150 |
| 3 | East | $90 | $70 | $110 |
The formula
One formula, entered top-left and filled across and down:
How it works
Mixed references are the whole technique:
- The criteria for the row dimension is
$A2— column locked ($A), row relative — so every cell in a row reads its own region label. - The criteria for the column dimension is
B$1— row locked ($1), column relative — so every cell in a column reads its own month header. - SUMIFS totals the amounts where both match — the West/Feb cell sums only West February rows.
- Because the data ranges are fully locked (
$D:$Detc.), the single formula works in every cell of the grid.
Excel 365 shortcut: =SUMIFS() still rules for a fixed grid, but for a self-building matrix try GROUPBY or PIVOTBY — one formula spills the entire labelled summary.
Try it: interactive demo
Pick a region and month; see the matrix cell SUMIFS returns.
Variations
Add row and column totals
A SUM along each edge gives margins:
Count instead of sum
Swap SUMIFS for COUNTIFS for a tally matrix:
Self-building matrix (365)
PIVOTBY spills the whole labelled summary:
Pitfalls & errors
Wrong cells fill in. The mixed references must be exactly $A2 (column-locked) and B$1 (row-locked). Getting the dollar signs wrong scrambles the grid.
Labels must match the data exactly. A header “Jan” won’t match data that says “January.” Keep them identical (or use a helper).
Whole-column ranges are convenient but slower on big sheets. Use bounded ranges ($D$2:$D$999) for performance, still fully locked.
Practice workbook
Frequently asked questions
How do I make a two-way summary table in Excel without a PivotTable?
How do I add row and column totals to the matrix?
Is there a one-formula way in Excel 365?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class