WorkbookLogic
FormulaFreeAggregationintermediateSUMIFSEOMONTHSUMIFANDDAYROUND

Sum Transactions by Month in Columns

By WorkbookLogic

Convert dated transactions into a reusable dimension-by-month reporting grid with one fillable SUMIFS formula, using real month headers, EOMONTH boundaries, and carefully controlled mixed references.

ExcelLast reviewed Sep 11, 2026
sum-by-month-in-columns-v1.0.0.xlsxFree
Monthly SUMIFS Formula Review
Review the month-end boundary and client criterion before combining them in a reporting grid.
Source data, syntheticFunction review, editable selections
TransactionClientDateAmount ($)Selected clientAlpha
T-001AlphaJan 5, 20261,200Selected monthJan 1, 2026
T-002BetaJan 18, 2026800
T-003AlphaJan 29, 2026600ExampleFormula syntaxResult
T-004AlphaFeb 3, 2026900Month end=EOMONTH(G12,0)Jan 31, 2026
T-005BetaFeb 14, 20261,100Client subtotal=SUMIFS($D$12:$D$21,$B$12:$B$21,$G$11)4,900
T-006AlphaFeb 28, 2026500Client + month=SUMIFS($D$12:$D$21,$B$12:$B$21,$G$11,$C$12:$C$21,">="&$G$12,$C$12:$C$21,"<="&EOMONTH($G$12,0))1,800
T-007AlphaMar 1, 20261,300
T-008BetaMar 15, 2026700
T-009AlphaMar 31, 2026400
T-010BetaApr 1, 2026950
Reliability checks
Alpha in January returns the expected $1,800OK
Selected month is stored as the first day of the monthOK

Overview

Turn a dated transaction list into a client-by-month reporting grid. One SUMIFS formula fills across months and down clients, using the current row label and month header while keeping every source range fixed.

When to use it

Use it for budget-versus-actual schedules, rolling forecasts, management reports, or operating summaries where transactions must be aggregated by one dimension and repeated monthly columns.

When not to use it

Use a PivotTable when interactive grouping and filtering matter more than a fixed formula layout. Use a single date-window SUMIFS when only one period is required. Use a fuller timeline Block when month headers also drive forecast flags or other coordinated schedule logic.

Problem

Separate hardcoded formulas are difficult to maintain across a report. Text month labels cannot be compared reliably with transaction dates, and fully relative references shift the wrong inputs during a two-direction fill. The grid needs intentional date boundaries and mixed references.

Inputs

Input

Location

Requirement

Month headers

Combined Example!G11:I11

Real first-of-month dates

Client labels

Combined Example!F12:F13

Text

Source data

The synthetic source in B12:D21 contains one client, valid date, and amount per transaction. Relevant rows include:

Client

Date

Amount

Alpha

05-Jan-2026

1,200

Beta

18-Jan-2026

800

Alpha

29-Jan-2026

600

Alpha

03-Feb-2026

900

Beta

14-Feb-2026

1,100

Alpha

28-Feb-2026

500

Alpha

01-Mar-2026

1,300

Beta

15-Mar-2026

700

Alpha

31-Mar-2026

400

Beta

01-Apr-2026

950

The April row lies outside the displayed January-to-March window.

Calculations

  1. Match the transaction client to the current summary row.
  2. Include dates on or after the first-of-month header.
  3. Use EOMONTH for the inclusive final day of that month.
  4. Sum amounts satisfying all three conditions.
  5. Fill across and down using mixed header references.

Outputs

Alpha returns 1,800, 1,400, and 1,700 for January through March. Beta returns 800, 1,100, and 700. The six cells total $7,500; the $950 April transaction is excluded.

Formula map

=SUMIFS($D$12:$D$21,$B$12:$B$21,$F12,$C$12:$C$21,">="&G$11,$C$12:$C$21,"<="&EOMONTH(G$11,0))

$F12 fixes the client column while allowing the row to change. G$11 fixes the header row while allowing the month column to change. Source ranges remain fully absolute.

Model checks

The workbook verifies that the six-cell grid equals source amounts dated from 1-Jan through 31-Mar and that every displayed month header is stored as the first day of its month. Both checks return OK.

Edge cases

  • Transactions on the first and last day are included.
  • EOMONTH handles February and leap years automatically.
  • The first day of the next month is excluded.
  • A valid empty client-month intersection returns zero.
  • Date-like text must be converted to Excel dates.
  • Duplicate transactions each contribute independently.

Common errors

  • Using text headers: date comparisons fail or depend on locale. Store real dates and format them.
  • Locking the wrong reference parts: criteria drift during fill. Use $F12 and G$11.
  • Hardcoding month-end: February and 30-day months break. Use EOMONTH.

Example

Alpha’s January total includes $1,200 on 5-Jan and $600 on 29-Jan, giving $1,800. Its February total is $900 + $500 = $1,400, and March is $1,300 + $400 = $1,700. These values match the displayed row.

Example workbook

Edit the cream month headers in Combined Example!G11:I11, client labels in F12:F13, or source rows in B12:D21. The grid, displayed-window total, and checks update automatically. Formula Review isolates the month boundary and selected subtotal.

Key takeaway

Use real first-of-month headers, EOMONTH for the upper boundary, and mixed references so one SUMIFS formula can populate an entire monthly reporting grid.