Sum Values Between Two Dates
Total values inside an inclusive reporting window by applying lower and upper criteria to the same valid date range, with visible boundary and date-order checks.
| Date-Window SUMIFS Formula Review | |||||||
| Construct a valid start date, then apply inclusive lower and upper boundaries. | |||||||
| Source data, synthetic | Function review, editable date inputs | ||||||
| Transaction | Date | Amount ($) | Year | 2026 | |||
| T-001 | Sep 1, 2026 | 2,000 | Start month | 9 | |||
| T-002 | Sep 14, 2026 | 1,000 | Start day | 15 | |||
| T-003 | Sep 15, 2026 | 2,500 | End date | Oct 15, 2026 | |||
| T-004 | Sep 20, 2026 | 1,800 | |||||
| T-005 | Sep 30, 2026 | 3,200 | Example | Formula syntax | Result | ||
| T-006 | Oct 1, 2026 | 1,500 | Construct start | =DATE(G11,G12,G13) | Sep 15, 2026 | ||
| T-007 | Oct 10, 2026 | 2,000 | On/after start | =SUMIFS($C$12:$C$21,$B$12:$B$21,">="&$H$17) | 15,600 | ||
| T-008 | Oct 15, 2026 | 2,500 | Inclusive window | =SUMIFS($C$12:$C$21,$B$12:$B$21,">="&$H$17,$B$12:$B$21,"<="&$G$14) | 13,500 | ||
| T-009 | Oct 16, 2026 | 1,200 | |||||
| T-010 | Nov 1, 2026 | 900 | |||||
| Reliability checks | |||||||
| Inclusive 15-Sep through 15-Oct window returns the expected $13,500 | OK | ||||||
| Constructed start date does not exceed the selected end date | OK | ||||||
Overview
Return one total for transactions dated on or after a selected start and on or before a selected end. Both boundaries are inclusive, and a row-level audit shows which amounts contribute.
When to use it
Use it for reporting cutoffs, project or campaign windows, forecast periods, accruals, and cohort analysis where one measure must be aggregated inside two visible date boundaries.
When not to use it
Use the monthly-columns formula when the same logic repeats across a timeline. Use FILTER when the required output is the matching records rather than one total. Use SUMPRODUCT when the criteria require transformations that SUMIFS cannot accept as range arguments.
Problem
Manual filtering is not a repeatable calculation, and text dates can behave differently across regional settings. Omitting equality also excludes transactions exactly on the reporting boundaries. Both conditions must apply to the same valid date field.
Inputs
Input | Location | Sample |
|---|---|---|
Start date | | 15-Sep-2026 |
End date | | 15-Oct-2026 |
Source data
The synthetic source occupies Combined Example!B12:C21:
Date | Amount | Included? |
|---|---|---|
01-Sep-2026 | 2,000 | No |
14-Sep-2026 | 1,000 | No |
15-Sep-2026 | 2,500 | Yes |
20-Sep-2026 | 1,800 | Yes |
30-Sep-2026 | 3,200 | Yes |
01-Oct-2026 | 1,500 | Yes |
10-Oct-2026 | 2,000 | Yes |
15-Oct-2026 | 2,500 | Yes |
16-Oct-2026 | 1,200 | No |
01-Nov-2026 | 900 | No |
Dates must be numeric Excel dates and amounts numeric. Sorting is not required.
Records may share the same date, and each qualifying amount will contribute independently to the result.
Calculations
- Apply
>=to include the start boundary. - Apply
<=to include the end boundary. - Test both conditions against the same date range.
- Sum the aligned amount only when both comparisons pass.
- Confirm the start does not exceed the end and reconcile to the audit column.
Outputs
The six included transactions total $13,500. A valid date window with no matching rows returns zero. A reversed window can also return zero, so the separate date-order check is material to interpretation.
Formula map
=SUMIFS($C$12:$C$21,$B$12:$B$21,">="&$I$11,$B$12:$B$21,"<="&$I$12)
The operators are joined to numeric date cells. All references are absolute because this formula returns one total from one selected window.
Model checks
The workbook verifies that SUMIFS equals the independently calculated included-amount column and that the start date is less than or equal to the end date. Both checks return OK.
Edge cases
- Dates exactly on either boundary are included.
- Dates one day before or after are excluded.
- A valid empty window returns zero.
- Reversed boundaries trigger the date-order check.
- Date-like text must be converted before comparison.
- Duplicate dated rows each contribute to the total.
Common errors
- Using
>or<: boundary transactions disappear. Use inclusive operators when the period includes both dates. - Typing dates as text: results may depend on locale or fail. Reference date cells or use DATE.
- Reversing boundaries: zero is mistaken for no activity. Retain the order check.
Example
The included amounts are 2,500 + 1,800 + 3,200 + 1,500 + 2,000 + 2,500, totaling $13,500. The 15-Sep and 15-Oct transactions confirm the inclusive boundaries, while 14-Sep and 16-Oct are excluded.
Example workbook
Edit the cream start and end dates in Combined Example!I11:I12 or the source in B12:C21. The total in J14, row flags, included amounts, and checks update automatically. Formula Review demonstrates DATE construction and the two criteria separately.
Key takeaway
Apply inclusive lower and upper criteria to the same valid date range, then distinguish a genuinely empty window from invalid reversed inputs with a separate check.