SUMIFS with dates
To total values between two dates, give SUMIFS the same date range twice: once with >= and the start date, once with <= and the end date. Join the operator to the date with &, because a criterion is text.
Last updated 23 November 2026
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Date | Amount | Start | 2026-01-15 | |
| 2 | 2026-01-15 | 10 | End | 2026-02-15 | |
| 3 | 2026-01-28 | 20 | |||
| 4 | 2026-02-10 | 30 | |||
| 5 | 2026-02-27 | 40 |
In E3, write =SUMIFS($B$2:$B$5,$A$2:$A$5,">="&E1,$A$2:$A$5,"<="&E2) and it shows 60.
How a date criterion is written
A date is a number underneath, so a criterion such as ">="&H1 turns a start date in H1 into text like ">=46042". SUMIFS compares that with the date numbers in the range.
The range to add comes first, then each pair of a criteria range and a criterion: SUMIFS(amounts, dates, ">="&start, dates, "<="&end).
Both ends are included
With >= and <= the start day and the end day both count. Use < and the next day if you want the end to be excluded.
Why it breaks
- The dates in the range are text, not dates. They look the same but compare as text, so nothing matches.
- The operator is left out of the quotation marks or the & is missing, so the criterion is a plain number and only matches that exact day.
- The ranges are different sizes. SUMIFS needs every range to have the same number of rows.
Practise it
Module 4, Conditional totals, has 20 tasks on this, each checked on hidden data: open module 4. You can also try formulas in the sandbox.