How to sum by month in Excel with SUMIFS

The journal is the 2026 freelance sample on the self-employed expense tracker. Five deposits: $4,200 on January 8, $3,800 on February 5, $5,100 on March 4, $4,500 on April 9, and $3,600 on June 15. That is $21,200 of income. The costs that count in full or in part are advertising $180, supplies $64.50, insurance $240, a client lunch of $86, software $55, a train ticket of $220, and a phone bill of $75.

SUMIFS adds a row only when every test passes. A month needs two tests on the date: on or after the first day, and on or before the last day. EOMONTH supplies the last day, including February 28 in a year that is not a leap year.

SUMIFS
=SUMIFS(Journal[Amount], Journal[Type], "Income", Journal[Date], ">="&EOMONTH(B2,-1)+1, Journal[Date], "<="&EOMONTH(B2,0))
=SUMIFS(Journal[Amount],Journal[Type],"Income",Journal[Date],">="&B3,Journal[Date],"<="&B4)B5
January 2026
AB
1Value
2Receipt1/8/2026
3Month start1/1/2026
4Month end1/31/2026
5Income$4,200
6Deductible costs$244.50
A picture of the month bounds, not a live journal. B2 is the January 8 retainer. EOMONTH of that date with −1 is December 31, 2025, and adding 1 is January 1. EOMONTH with 0 is January 31. Income inside those bounds is the $4,200 retainer.

January income is the one deposit, $4,200. January costs are advertising $180 on January 20 and supplies $64.50 on January 28. Both count in full, so the deductible total is $244.50.

The deductible column is a formula on that sheet. Meals are multiplied by 50%. Every other expense is copied through. Income rows carry the deposit amount. The type test "Expense" keeps the $4,200 out of the cost total. Drop that test and January’s deductible SUMIFS adds the retainer.

February ends on the 28th

February 5, 2026 is the next retainer. The first of that month is February 1. The last day is February 28, because 2026 is not a leap year. EOMONTH returns that date from any day in February. You do not type 28, and you do not type 29 in a leap year either.

EOMONTH
=EOMONTH(B2,0)
=EOMONTH(B2,0)B4
February 2026
AB
1Value
2Receipt2/5/2026
3Month start2/1/2026
4Month end2/28/2026
5Income$3,800
6Deductible costs$283.00
A picture of the February retainer. 2026 is not a leap year, so EOMONTH returns February 28. Income is $3,800. Deductible costs are the $240 policy plus $43 of the lunch.

February income is $3,800. February costs are the $240 liability policy and the $86 lunch. The lunch is stored as $86 and the deductible column holds half of it, $43. The cost total is $283. A SUMIFS on the amount column, with the same dates and the type "Expense", returns $326, because it adds the whole lunch.

The month-start cell in that picture is DATE(YEAR(B2),MONTH(B2),1). xl.month.start is that formula under a name:

=xl.month.start(DATE(2026,2,5))

The name returns February 1, 2026. It needs Microsoft 365, Excel 2024, or Excel for the web. Excel 2021 returns #NAME?. EOMONTH and DATE work in Excel 2010.

The six months that have rows

Put January 1, 2026 in A2. The next month starts the day after this month ends:

=EOMONTH(A2,0)+1

Fill that down and each cell is the first of the next month: February 1, March 1, April 1, May 1, June 1. The income formula in B2, filled down, is:

=SUMIFS(Journal[Amount], Journal[Type], "Income", Journal[Date], ">="&A2, Journal[Date], "<="&EOMONTH(A2,0))

The cost formula uses Journal[Deductible] and the type "Expense".

Month Start End Income Deductible costs
January 1/1/2026 1/31/2026 $4,200 $244.50
February 2/1/2026 2/28/2026 $3,800 $283.00
March 3/1/2026 3/31/2026 $5,100 $55.00
April 4/1/2026 4/30/2026 $4,500 $220.00
May 5/1/2026 5/31/2026 $0 $75.00
June 6/1/2026 6/30/2026 $3,600 $0

May has the $75 phone bill and no deposit. June has the $3,600 project and no cost. The six income cells add to $21,200. The six cost cells add to $877.50. January through March is $13,100 of income and $582.50 of deductible costs, which is the first-quarter pair on the tracker. April through June is $8,100 and $295.00, the second quarter.

The quarterly sheet in the workbook writes the quarter ends with DATE, for example DATE(2026,3,31). The monthly list uses EOMONTH so the end of the month is calculated.

A month number by itself mixes years

MONTH of a date returns 1 through 12. A test that says the month equals 1 will add January 2026 and January 2027 once both years are in the journal. This journal has only 2026, so that test still returns $4,200 for January. The date bounds above do not have that problem, because January 1, 2027 is after January 31, 2026.

SUMIFS wants the numbers in the first argument. SUMIF wants the numbers last. The SUMIFS page uses the same shape for November groceries of $198.57.

A date stored as text fails the >= test and the row adds nothing. Type the date, or build it with DATE. The bounds in the formula are real date serials.

The workbook with this journal is the self-employed income and expense tracker.


Template for this article

Self-Employed Income and Expense Tracker

More from the blog