Sales dated from 2026-01-15 to 2026-02-15 (both days included).
ABCDE
1DateAmountStart2026-01-15
22026-01-1510End2026-02-15
32026-01-2820
42026-02-1030
52026-02-2740

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

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.

Related guides