SUMIFS with dates — month, quarter, and range totals (with answers)
How to total with SUMIFS between two dates, by month, and by quarter—without breaking on text “dates.” Twelve graded problems plus a live SUMIFS drill.
SUMIFS can filter on dates the same way it filters on region or status—but only if column A holds real Excel dates (numbers), not text that merely looks like 01/15/2025. This page is the date-focused companion to SUMIFS practice problems.
Live drill: SUMIFS practice · Guide: SUMIFS · Worksheet: expense totals · Dashboard habit: SUMIFS habit.
Pattern to memorize
Month of March 2025 on amounts in D and dates in A:
=SUMIFS(D2:D100, A2:A100, ">="&DATE(2025,3,1), A2:A100, "<"&DATE(2025,4,1))
Notes:
- Sum range first (
D), then each criteria pair. - Use two criteria on the same date column for a range (
>=start and<next period start is cleaner than<=last day when months differ in length). - Build criteria with
" >="&DATE(...)or" >="&$G$1if the start date lives in a cell.
Practice table
Enter as real dates in A2:A13 (format however you like):
| Date | Region | Category | Amount |
|---|---|---|---|
| 5-Jan-2025 | East | Hardware | 120 |
| 12-Jan-2025 | West | Software | 80 |
| 28-Jan-2025 | East | Hardware | 40 |
| 3-Feb-2025 | East | Software | 200 |
| 14-Feb-2025 | North | Hardware | 90 |
| 20-Feb-2025 | West | Hardware | 55 |
| 1-Mar-2025 | East | Software | 150 |
| 10-Mar-2025 | West | Hardware | 70 |
| 22-Mar-2025 | East | Hardware | 30 |
| 5-Apr-2025 | North | Software | 110 |
| 18-Apr-2025 | East | Hardware | 95 |
| 27-Apr-2025 | West | Software | 60 |
Problems (with answers)
- All of January 2025
=SUMIFS(D2:D13,A2:A13,">="&DATE(2025,1,1),A2:A13,"<"&DATE(2025,2,1)) → 240
- February Hardware only
=SUMIFS(D2:D13,C2:C13,"Hardware",A2:A13,">="&DATE(2025,2,1),A2:A13,"<"&DATE(2025,3,1)) → 145
- East in March 2025
=SUMIFS(D2:D13,B2:B13,"East",A2:A13,">="&DATE(2025,3,1),A2:A13,"<"&DATE(2025,4,1)) → 180
- Q1 2025 (Jan–Mar) total
=SUMIFS(D2:D13,A2:A13,">="&DATE(2025,1,1),A2:A13,"<"&DATE(2025,4,1)) → 835
- Q1 Software
=SUMIFS(D2:D13,C2:C13,"Software",A2:A13,">="&DATE(2025,1,1),A2:A13,"<"&DATE(2025,4,1)) → 430
- On or after 1-Mar-2025
=SUMIFS(D2:D13,A2:A13,">="&DATE(2025,3,1)) → 515
- Strictly before 1-Feb-2025
=SUMIFS(D2:D13,A2:A13,"<"&DATE(2025,2,1)) → 240
- West between 1-Feb and 31-Mar inclusive
Prefer half-open end: =SUMIFS(D2:D13,B2:B13,"West",A2:A13,">="&DATE(2025,2,1),A2:A13,"<"&DATE(2025,4,1)) → 125
- April East Hardware
=SUMIFS(D2:D13,B2:B13,"East",C2:C13,"Hardware",A2:A13,">="&DATE(2025,4,1),A2:A13,"<"&DATE(2025,5,1)) → 95
- Start/end in cells —
G1=2025-03-01,H1=2025-04-01
=SUMIFS(D2:D13,A2:A13,">="&G1,A2:A13,"<"&H1) → 250 (March total)
- YTD through March (same as Q1 here)
=SUMIFS(D2:D13,A2:A13,">="&DATE(2025,1,1),A2:A13,"<"&DATE(2025,4,1)) → 835
- Hardware excluding January
Full year Hardware minus January Hardware, or two ranges: =SUMIFS(D2:D13,C2:C13,"Hardware",A2:A13,">="&DATE(2025,2,1)) → 340
Month from a date without helper columns
If you must total “same month as G1” dynamically:
=SUMIFS(D2:D13,A2:A13,">="&DATE(YEAR(G1),MONTH(G1),1),A2:A13,"<"&DATE(YEAR(G1),MONTH(G1)+1,1))
(Watch December → use EDATE(DATE(YEAR(G1),MONTH(G1),1),1) as the exclusive end if you prefer.)
Traps that return 0 or wrong totals
- Dates stored as text → SUMIFS sees no matches. Fix with
DATEVALUE/ Text to Columns / multiply by 1, then retry. - Mixing
SUMIFargument order with SUMIFS. - Using
<=DATE(2025,2,28)in leap-year logic when<DATE(2025,3,1)is safer. - Time stamps in datetime cells (noon) still fall inside day bounds if you use
< next day.
More multi-criteria (non-date) drills: SUMIFS practice problems · SUMIF exercises.
Practice next
- Live SUMIFS lesson
- Download expense worksheet
- Use date SUMIFS inside a hiring workbook: Excel interview case study
- Lookups companion: XLOOKUP vs INDEX MATCH
- Practice hub · Placement test