formulastreak

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.

">=K1" compares each date with the text “K1”, so nothing matches · edit K2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultK2 = 0
ABCDEFGHIJK
1OrderDateCustomerProductCategoryQtyPriceStatusFrom3 Mar 2026
210012 Mar 2026Mara OkaforMonsteraPlants1$34.00ShippedItems0
310022 Mar 2026Jonas LindTerracotta potPots3$12.50Shipped
410033 Mar 2026Priya RamanSnake plantPlants2$22.00Shipped
510044 Mar 2026Tomás RuizWatering canTools1$18.00Pending
610055 Mar 2026Elif DemirFernPlants4$9.50Shipped
710065 Mar 2026Mara OkaforPotting mixSoil2$7.25Returned
810076 Mar 2026Kenji MoriPruning shearsTools1$24.00Shipped
910087 Mar 2026Ines VargaCeramic potPots2$19.00Pending
1010098 Mar 2026Jonas LindMonsteraPlants1$34.00Shipped
1110109 Mar 2026Sofia RossiFernPlants6$9.50Shipped
12101110 Mar 2026Priya RamanPotting mixSoil5$7.25Shipped
13101211 Mar 2026Leo BrandtSnake plantPlants1$22.00Pending

Shows the problem

=SUMIFS(F2:F13,B2:B13,">=K1")

Fixed

=SUMIFS(F2:F13,B2:B13,">="&K1)

Causes, most likely first

  1. 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)
  2. 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))
  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.

  4. 4Times push rows past the end date

    A timestamp like 8 March 14:30 is bigger than 8 March, which means midnight. So "<="&K2 leaves 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)
  5. 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.

Practise this in 5 minutes

SUMIFS is taught in Lesson 19: SUMIFS (Unit 5, Conditional totals), on a live sheet with instant feedback. Pro

Open “SUMIFS”

Get the formulastreak newsletter

Bite-sized formula tips you can use at work the next day, plus a heads-up when new free tools and lessons land. It arrives now and then, never in a flood.

No spam, unsubscribe in one click. We store your email, this consent and when you gave it. Details in our privacy policy.

Need a quick reference? The formula cheat sheet is free to read and print.