SUMIFS with dates not working: how to fix it
Updated · Checked on a live sheet · Excel and Google Sheets
The most likely fix
Keep the dates in cells and join the comparison to each with &: SUMIFS(F2:F13, B2:B13, ">="&K1, B2:B13, "<="&K2). Writing ">=K1" inside quotes compares with the letters K1, which no date matches, so the total is 0.
Fix it yourself
The formula in K2 shows the problem. Edit it to the fixed version and watch the sheet recalculate.
| A | B | C | D | E | F | G | H | I | J | K | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order | Date | Customer | Product | Category | Qty | Price | Status | From | 3 Mar 2026 | |
| 2 | 1001 | 2 Mar 2026 | Mara Okafor | Monstera | Plants | 1 | $34.00 | Shipped | Items | 0 | |
| 3 | 1002 | 2 Mar 2026 | Jonas Lind | Terracotta pot | Pots | 3 | $12.50 | Shipped | |||
| 4 | 1003 | 3 Mar 2026 | Priya Raman | Snake plant | Plants | 2 | $22.00 | Shipped | |||
| 5 | 1004 | 4 Mar 2026 | Tomás Ruiz | Watering can | Tools | 1 | $18.00 | Pending | |||
| 6 | 1005 | 5 Mar 2026 | Elif Demir | Fern | Plants | 4 | $9.50 | Shipped | |||
| 7 | 1006 | 5 Mar 2026 | Mara Okafor | Potting mix | Soil | 2 | $7.25 | Returned | |||
| 8 | 1007 | 6 Mar 2026 | Kenji Mori | Pruning shears | Tools | 1 | $24.00 | Shipped | |||
| 9 | 1008 | 7 Mar 2026 | Ines Varga | Ceramic pot | Pots | 2 | $19.00 | Pending | |||
| 10 | 1009 | 8 Mar 2026 | Jonas Lind | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 11 | 1010 | 9 Mar 2026 | Sofia Rossi | Fern | Plants | 6 | $9.50 | Shipped | |||
| 12 | 1011 | 10 Mar 2026 | Priya Raman | Potting mix | Soil | 5 | $7.25 | Shipped | |||
| 13 | 1012 | 11 Mar 2026 | Leo Brandt | Snake plant | Plants | 1 | $22.00 | Pending |
Shows the problem
=SUMIFS(F2:F13,B2:B13,">=K1")Fixed
=SUMIFS(F2:F13,B2:B13,">="&K1)Causes, most likely first
1The cell reference is inside the quotes
Everything between quotes is literal text. To compare with the date in K1, put only the operator in quotes and join the cell with
&:">="&K1. In the sheet above that turns 0 into the items ordered on or after 3 March.Wrong
=SUMIFS(F2:F13,B2:B13,">=K1")Fixed
=SUMIFS(F2:F13,B2:B13,">="&K1)2A date typed into the criteria
">=3/3/2026"depends on the computer's date settings: the same text is 3 March in one region and something else, or nothing, in another. Build the date with DATE instead, which always means year, month, day:">="&DATE(2026,3,3).Wrong
=SUMIFS(F2:F13,B2:B13,">=3/3/2026")Fixed
=SUMIFS(F2:F13,B2:B13,">="&DATE(2026,3,3))3The dates in the data are text
Real dates are numbers, which is what makes
>=work. Dates imported as text (often left-aligned, sometimes with odd separators) never pass a numeric comparison. Check one with=ISNUMBER(B2); if it says FALSE, convert the column with DATEVALUE or re-enter it.4Times push rows past the end date
A timestamp like 8 March 14:30 is bigger than 8 March, which means midnight. So
"<="&K2leaves out everything later on the end day. Use “before the next day” instead:"<"&K2+1.Wrong
=SUMIFS(F2:F13,B2:B13,">="&K1,B2:B13,"<="&K2)Fixed
=SUMIFS(F2:F13,B2:B13,">="&K1,B2:B13,"<"&K2+1)5Month and year criteria on a date column
To total one month, don't compare the date column with a month name: the column holds full dates. Use the first day of the month and the first day of the next month:
">="&DATE(2026,3,1)and"<"&DATE(2026,4,1). SUMIFS can't apply MONTH() to its criteria range; if you need that, SUMPRODUCT can:SUMPRODUCT((MONTH(B2:B13)=3)*F2:F13).Wrong
=SUMIFS(F2:F13,B2:B13,"March")Fixed
=SUMIFS(F2:F13,B2:B13,">="&DATE(2026,3,1),B2:B13,"<"&DATE(2026,4,1))
Stop it happening again
Keep the start and end dates in their own labelled cells and build every criteria from them with &; then changing the period is one edit, and the formulas can't disagree about it. Use DATE for any date written inside a formula. Check one value in the date column with ISNUMBER after every import. For whole months, the first day of the month and the first day of the next month make a clean pair: \">=\"&K1 and \"<\"&EDATE(K1,1), which also handles times on the last day. Test the result against a filtered view of the same rows.
Questions
How do I sum by month with SUMIFS?
Use two criteria on the date column: on or after the first of the month, and before the first of the next month. With the month's first day in K1: SUMIFS(F2:F13, B2:B13, ">="&K1, B2:B13, "<"&EDATE(K1,1)). Change K1 and the total follows.
Why does SUMIFS with TODAY() change every day?
Because TODAY recalculates to the current date each day, so a criteria like ">="&TODAY()-30 covers a moving window. For a report that must not change, put the report date in a cell and refer to that instead.
Can SUMIFS use a date and another condition together?
Yes: add more range and criteria pairs after the dates. SUMIFS(F2:F13, B2:B13, ">="&K1, B2:B13, "<"&K2+1, E2:E13, "Plants") adds plant orders in the period. Every pair must match for a row to count.
In Google Sheets
Google Sheets' SUMIFS uses the same criteria syntax, including ">="&K1 and DATE. Dates are numbers there too, so text dates fail the same way; Sheets has DATEVALUE and ISNUMBER for checking and converting.
Why this happens
SUMIFS criteria are text that SUMIFS reads as a comparison. That's why the operator has to be inside quotes and the value outside, joined with &: the formula builds the text “>=46084” from the cell, and SUMIFS compares each date number with it. Once that clicks, every date range works. The sum between two dates section has a live example, and DATEDIF and date differences explains dates as numbers.
Sources
Official documentation the facts on this page were checked against.