Adding up values that fall in a particular month is one of the most common reporting tasks in Excel. The reliable way to do it is SUMIFS with two date boundaries — the first and last day of the month — so it works no matter how the dates are formatted and never double-counts a day.
E2:
EOMONTH(E2,0) returns the last day of that month, so the two criteria fence in exactly one calendar month.
The example
Here is a short list of transactions. We want the total for February. The month to total is entered as a real date in E2 (the 1st of the month).
| A | B | D | E | ||
|---|---|---|---|---|---|
| 1 | Date | Amount | Month | Total | |
| 2 | 1/05/2026 | $120 | 2/01/2026 | $250 | |
| 3 | 1/19/2026 | $80 | |||
| 4 | 2/03/2026 | $200 | |||
| 5 | 2/21/2026 | $50 | |||
| 6 | 3/10/2026 | $300 |
The formula
The formula in E2’s neighbor (here, the total cell) is:
How it works
SUMIFS adds the numbers in the sum range only on rows where every condition is true. We give it two conditions that bracket the month:
- The sum range
B2:B6holds the amounts we want to add. - The first condition,
A2:A6, ">="&E2, keeps rows on or after the 1st of the month. The&glues the comparison operator onto the date inE2. - The second condition,
A2:A6, "<="&EOMONTH(E2,0), keeps rows on or before the last day of the month.EOMONTH(date, 0)returns the end of the same month. - Only the two February rows satisfy both conditions, so SUMIFS returns
200 + 50 = 250.
Why not just match the month number? =SUMIFS(B:B, A:A, 2) looks tempting but it adds every February across all years, and breaks the moment your data spans more than one year. The two-boundary method is year-safe.
Try it: interactive demo
Pick a month and watch the SUMIFS formula and its total update against the table above.
Variations
No SUMIFS? Use SUMPRODUCT (any Excel version)
In very old versions, or when you want the month and year pulled from the date directly:
Sum by month AND another condition
SUMIFS takes as many condition pairs as you like. Add a region column C and total February for the West region:
Build a clean month list with EOMONTH
To label a monthly summary, drop the first month in a cell and fill down:
Pitfalls & errors
Totals look too big. You probably matched on month number alone ("=2"), which sums that month across every year. Use the >= first-of-month and <= EOMONTH pair instead.
Dates stored as text won’t add up. If column A is left-aligned, Excel sees text, not dates, and the comparisons fail. Select the column and use Data → Text to Columns → Finish to convert, or check with =ISNUMBER(A2).
Lock your ranges before copying down. When you copy the formula beside a list of months, anchor the data: $B$2:$B$6 and $A$2:$A$6. An Excel Table (Ctrl+T) avoids this with structured references.
Practice workbook
Frequently asked questions
How do I sum by month and year together?
Can I sum by month without a helper column?
How do I total by month from a column of dates that span years?
What's the difference between SUMIF and SUMIFS here?
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