Region revenue inside a date window (three criteria)

Hard Math
Description
Hints 0/4
Solutions 2
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

The problem

Problem statement

The quarter pack needs revenue for one region inside one date window. Orders are in A2:C9, the region is in F1, and the window limits are F2 and F3. Put the total in the Total cell F4.

All three criteria must come from cells — including both date limits — so the same formula answers any region and any window.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
ABCEF
1 RegionDateAmountRegionEast
2 East2026-01-151200From2026-01-01
3 West2026-02-03800To2026-03-31
4 East2026-02-20950Total
5 East2026-04-02600
6 West2026-03-11700
7 East2026-03-28450
8 North2026-02-14300
9 East2025-12-20500

Notes

Three criteria pairs go into one SUMIFS, and two of them point at the same date column: ">="&F2 and "<="&F3. That is allowed, and it is the only way to express a range inside SUMIFS — there is no BETWEEN operator. Both operators live inside the quotes, the cell outside, joined by &.

How to approach

Your answer goes in F4. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.

  1. Target cell is F4
  2. SUMIFS takes the sum range first, then range/criteria pairs
  3. Two pairs target B2:B9, with ">="&F2 and "<="&F3
  4. Shape: =SUMIFS(?, ?, ?, ?, ?, ?)

Official solutions

Show 2 solutions — try it yourself first

Approach 1: SUMIFS with two date criteria

=SUMIFS($C$2:$C$9, $A$2:$A$9, F1, $B$2:$B$9, ">="&F2, $B$2:$B$9, "<="&F3)

East rows inside 2026-01-01 to 2026-03-31 are 1200, 950 and 450 = 2600. The April order and the December order are the two rows a single date criterion would wrongly keep or drop.

Approach 2: SUMPRODUCT with multiplied conditions

=SUMPRODUCT(($A$2:$A$9=F1)*($B$2:$B$9>=F2)*($B$2:$B$9<=F3)*$C$2:$C$9)

Each condition becomes a TRUE/FALSE array, multiplication is AND, and the amount column supplies the values. Same total, and the same pattern scales to conditions SUMIFS cannot express.

Function guide

Related practice

FAQ

How do I sum between two dates in SUMIFS?

Add the same range twice: =SUMIFS(sum, dates, ">="&start, dates, "<="&end). There is no BETWEEN.

Why is my date criterion ignored?

Check the quotes: ">="&F2 joins an operator string with a cell. ">=F2" compares against the literal text.