WorkbookLogic
FormulaFreeAggregationintermediateSUMIFSDATEIFANDSUMROUND

Sum Values Between Two Dates

By WorkbookLogic

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.

ExcelLast reviewed Sep 11, 2026
sum-if-date-is-between-v1.0.0.xlsxFree
Date-Window SUMIFS Formula Review
Construct a valid start date, then apply inclusive lower and upper boundaries.
Source data, syntheticFunction review, editable date inputs
TransactionDateAmount ($)Year2026
T-001Sep 1, 20262,000Start month9
T-002Sep 14, 20261,000Start day15
T-003Sep 15, 20262,500End dateOct 15, 2026
T-004Sep 20, 20261,800
T-005Sep 30, 20263,200ExampleFormula syntaxResult
T-006Oct 1, 20261,500Construct start=DATE(G11,G12,G13)Sep 15, 2026
T-007Oct 10, 20262,000On/after start=SUMIFS($C$12:$C$21,$B$12:$B$21,">="&$H$17)15,600
T-008Oct 15, 20262,500Inclusive window=SUMIFS($C$12:$C$21,$B$12:$B$21,">="&$H$17,$B$12:$B$21,"<="&$G$14)13,500
T-009Oct 16, 20261,200
T-010Nov 1, 2026900
Reliability checks
Inclusive 15-Sep through 15-Oct window returns the expected $13,500OK
Constructed start date does not exceed the selected end dateOK

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

Combined Example!I11

15-Sep-2026

End date

Combined Example!I12

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

  1. Apply >= to include the start boundary.
  2. Apply <= to include the end boundary.
  3. Test both conditions against the same date range.
  4. Sum the aligned amount only when both comparisons pass.
  5. 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.