Why it works
- What it does
- SUMIFS can test the same date column twice: once for “on or after the first day” and once for “before the first day of the next month”. Join the sign to a DATE with &. Both edges matter: lists soon hold the months on either side.
- The shape of the formula
- =SUMIFS(amounts, dates, ">="&DATE(start), dates, "<"&DATE(day after the end))
- How to remember it
- A date window has two edges: >= the start and < the next start.
- The usual mistake
- Summing the whole column because only one month is there today. The first orders of the next month land in this month’s total.
Keep practicing
- SUMIFS: totals with two or more conditionsHow do I total spend for one budget and one item type?Open
- Conditions like ">"&cell in COUNTIF and SUMIFHow do I use a number from a cell as the limit in COUNTIF?Open
- Count by month across all years with MONTHHow do I count dates in a given month, whatever the year?Open
Updated