FORMULAS & FUNCTIONS

SUMIFS Between Two Dates (and Other Multiple-Criteria Examples)

Totals for a date range come up constantly: sales for a pay period, expenses for a quarter, invoices since the last statement. This tutorial shows how to use SUMIFS between two dates with start and end dates in cells, then adds a region, a NOT criterion, OR logic, whole-month ranges with EOMONTH and weekly totals, and a check that proves every number.

Excel SUMIFS between two dates: sales from Sep 15, 2026 to Oct 14, 2026 total $26,310.00, with extra criteria, OR logic, a whole-month total and weekly totals.
The finished result: one date range driving six different totals.

What you will build

Brightline Trading Co. has a list of 20 sales invoices for September and October 2026. We want the sales from Sep 15 to Oct 14, 2026, a billing period that does not line up with calendar months, and then a few variations of the same question.

AreaCellsWhat it holds
Sales listA3:E24Date, Invoice #, Customer, Region and Amount (inputs), with a total
CriteriaG2:H5Start date, end date and region (inputs)
ResultsG7:H15Six SUMIFS and COUNTIFS examples and an independent check
Weekly totalsG17:H23Sales for five weeks starting Sep 14

SUMIFS and COUNTIFS work in Excel 2010 and later, Microsoft 365 and Excel for the web. If you only need calendar-month totals, summing monthly values with SUMIFS covers that layout; this post is about any date range.

Free download: Get the SUMIFS between two dates workbook (.xlsx) and follow along. Yellow cells are inputs, and every formula in this tutorial is already in place.

How SUMIFS handles a date range

SUMIFS adds up a column where every condition is true. The arguments come in pairs after the sum range:

=SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2, ...)

A date range is simply two conditions on the same date column: the date is on or after the start, and on or before the end. Because both must be true, SUMIFS only adds the rows in between. The conditions are written as text, with the comparison operator in quotes, joined to the cell with &:

You wantCriteriaMeaning
On or after the start">="&$H$3Greater than or equal to the date in H3
On or before the end"<="&$H$4Less than or equal to the date in H4
Before a date (excluded)"<"&$H$4Strictly earlier than H4
Not equal to"<>"&$H$5Anything except the value in H5

Step 1: Set up the data and the date criteria

  1. Put the sales list in A3:E23 with the headers Date, Invoice #, Customer, Region and Amount, one invoice per row.
  2. In G3:H5 type the criteria: Start date 9/15/2026, End date 10/14/2026, Region East.
  3. In E24 enter =SUM(E4:E23). The whole list totals $47,955.00.
Excel sales invoice list for September and October 2026 with dates in column A and a start date of Sep 15, 2026 and an end date of Oct 14, 2026 in H3:H4.
The dates to compare against live in their own cells, not inside the formula.
Checkpoint: The dates in column A must be real Excel dates. =ISNUMBER(A4) should return TRUE. If it returns FALSE the dates are text and SUMIFS will ignore them, so standardize mixed date formats first.

Step 2: Sum between two dates

In G8 type Sales between the dates, then click H8 and enter:

=SUMIFS($E$4:$E$23,$A$4:$A$23,">="&$H$3,$A$4:$A$23,"<="&$H$4)
  • $E$4:$E$23 is what to add up: the amounts.
  • $A$4:$A$23,">="&$H$3 keeps dates on or after Sep 15, 2026.
  • $A$4:$A$23,"<="&$H$4 keeps dates on or before Oct 14, 2026.
Excel formula =SUMIFS($E$4:$E$23,$A$4:$A$23,">="&$H$3,$A$4:$A$23,"<="&$H$4) returning $26,310.00 for invoices from Sep 15 to Oct 14, 2026.
Sum range in green, the date column in blue, the two date conditions in orange.
Checkpoint: H8 should show $26,310.00, the eleven invoices in rows 8 to 18. In H9, =COUNTIFS($A$4:$A$23,">="&$H$3,$A$4:$A$23,"<="&$H$4) uses the same criteria to count them: 11.
Watch out: Do not put the cell reference inside the quotes. ">=H3" compares the dates with the text H3 and returns 0. The operator goes in quotes and the cell goes outside: ">="&H3.

Step 3: Add a third criterion (and a NOT criterion)

Each extra condition is one more range/criteria pair. For East only, in H10:

=SUMIFS($E$4:$E$23,$A$4:$A$23,">="&$H$3,$A$4:$A$23,"<="&$H$4,$D$4:$D$23,$H$5)

For every region except East, change the last criterion to "<>"&$H$5 in H11.

Excel SUMIFS with a third criterion returning $9,875.00 for the East region between the two dates and $16,435.00 for every other region.
The region pair narrows the same date range to East only.
Checkpoint: East between the dates is $9,875.00 and every other region is $16,435.00. Together they make $26,310.00, the total in H8, which proves no invoice was missed or counted twice.

Typing the region by hand invites spelling mistakes. A drop-down list in H5 (Data > Data Validation > List) keeps it consistent, and a dependent drop-down list can narrow customers by region.

Step 4: OR logic: East or West

SUMIFS joins its conditions with AND. If you add $D$4:$D$23,"East",$D$4:$D$23,"West", you are asking for invoices that are in East and West at the same time, so the answer is 0. To get East or West, give SUMIFS a list of regions and add up the results:

=SUMPRODUCT(SUMIFS($E$4:$E$23,$A$4:$A$23,">="&$H$3,$A$4:$A$23,"<="&$H$4,$D$4:$D$23,{"East","West"}))

SUMIFS returns two totals, one for East and one for West, and SUMPRODUCT adds them. In Microsoft 365 you can use SUM instead of SUMPRODUCT; SUMPRODUCT works in every version without pressing Ctrl+Shift+Enter.

Excel formula =SUMPRODUCT(SUMIFS(...,{"East","West"})) returning $20,265.00 for East or West between the two dates.
A list in curly braces turns one SUMIFS into an OR.
Checkpoint: H12 should show $20,265.00: $9,875.00 for East plus $10,390.00 for West. Only North is left out.

Step 5: Whole months and weekly totals

The start and end dates do not have to be typed. Two common patterns:

  1. The whole month of a date. EOMONTH returns the last day of a month, so EOMONTH($H$4,-1)+1 is the first day of the end date's month and EOMONTH($H$4,0) is the last day. In H13:
    =SUMIFS($E$4:$E$23,$A$4:$A$23,">="&EOMONTH($H$4,-1)+1,$A$4:$A$23,"<="&EOMONTH($H$4,0))
  2. Weekly totals. In G18 enter the first week start, 9/14/2026 (a Monday), and in G19 =G18+7, copied down to G22. In H18 enter the formula below and copy it down:
    =SUMIFS($E$4:$E$23,$A$4:$A$23,">="&G18,$A$4:$A$23,"<"&G18+7)
Excel weekly totals using SUMIFS with ">="&G18 and "<"&G18+7, and an EOMONTH formula returning the October total of $23,480.00.
EOMONTH for month ranges, start + 7 for weekly ranges.
Week startingSales
Sep 14, 20267,775.00
Sep 21, 20262,505.00
Sep 28, 202610,425.00
Oct 5, 20263,455.00
Oct 12, 20266,855.00
Total$31,015.00
Each week includes its start date and excludes the next week's start date.

The weekly formula uses "<"&G18+7, strictly less than the next start date, rather than "<="&G18+6. Both give the same answer for plain dates, but the strict version also works when the dates carry times, and it makes it impossible for a boundary date to land in two weeks. October from EOMONTH is $23,480.00.

Step 6: Verify the total

A second formula that works in a completely different way is the best check. In H14:

=SUMPRODUCT(($A$4:$A$23>=$H$3)*($A$4:$A$23<=$H$4)*$E$4:$E$23)

Each comparison returns TRUE or FALSE for every row; multiplying them turns TRUE into 1 and FALSE into 0, so only amounts inside the range survive. In H15, =IF(AND(ROUND(H8-H14,2)=0,ROUND(H10+H11-H8,2)=0),"Ties","Check") confirms that SUMPRODUCT agrees with SUMIFS and that East plus not-East equals the total.

Excel check where SUMPRODUCT returns $26,310.00, the same as SUMIFS, on 11 invoices, and the status cell shows Ties.
SUMPRODUCT and SUMIFS agree on $26,310.00 from 11 invoices.

Then check the boundaries by eye. INV-2105 on Sep 15 and INV-2115 on Oct 14 must be included; INV-2104 on Sep 14 and INV-2116 on Oct 15 must not. Boundary dates are where date-range formulas usually go wrong.

Ready-to-share test: Change the start date to 10/1/2026 and the end date to 10/31/2026. H8 becomes $23,480.00 on 10 invoices, the same as the whole-month total in H13, and H15 still shows Ties. Change the dates back when you are done.

Where you will use this

Date-range SUMIFS is behind a lot of accounting work. The monthly profit and loss statement pulls each month from a transaction list with SUMIFS. A bank reconciliation often needs the deposits recorded between two statement dates. And in an accounts receivable aging report, the same technique totals the invoices issued in a period. To see the matching rows instead of just their total, the FILTER function takes the same conditions; to count overdue items instead, see COUNTIFS for overdue items.

Common mistakes and quick fixes

What you seeLikely causeFix
Result is 0The cell reference is inside the quotes, such as “>=H3”Use “>=”&H3.
Result is 0The dates in the list are textConvert them to real dates; check with ISNUMBER.
Last day is missingThe dates include times, so Oct 14 3:45 PM is later than Oct 14Use “<“&H4+1 instead of “<=”&H4.
OR returns 0Two criteria on the same column were joined with ANDUse SUMPRODUCT(SUMIFS(…,{“East”,”West”})).
#VALUE!The sum range and criteria ranges are different sizesMake every range cover the same rows, such as 4 to 23.
Totals change when copiedRanges were not lockedLock them with dollar signs: $A$4:$A$23.

Frequently asked questions

How do I SUMIFS between two dates in Excel?

Use two conditions on the date column: =SUMIFS(amounts,dates,”>=”&start,dates,”<=”&end). Keep the start and end dates in cells so you can change the range without editing the formula.

Can I type the dates directly into the formula?

Yes, but use the DATE function so Excel cannot misread them: =SUMIFS(E4:E23,A4:A23,”>=”&DATE(2026,9,15),A4:A23,”<=”&DATE(2026,10,14)). A typed text date like “>=9/15/2026” depends on the computer's regional settings.

How do I sum month to date?

Use =SUMIFS(E4:E23,A4:A23,”>=”&EOMONTH(TODAY(),-1)+1,A4:A23,”<=”&TODAY()). It updates every day. For a month-end report, use a fixed end date instead of TODAY().

Does SUMIFS work with whole columns like A:A?

Yes, and it is efficient, because SUMIFS only looks at the used range. Just make sure there is nothing else in those columns, such as a total row, that would be added in.

How do I sum with OR across two different columns?

Add two SUMIFS and subtract the overlap, or use SUMPRODUCT with ((condition1)+(condition2)>0) for each row. Simply adding two SUMIFS double-counts rows that meet both conditions.

Final checklist

  • Dates in the list are real dates, and the start and end dates are in their own cells.
  • Operators are in quotes and joined to the cell with &.
  • All ranges cover the same rows and are locked with dollar signs.
  • OR conditions use an array constant inside SUMPRODUCT, not two criteria on the same column.
  • Dates with times use “<“&end+1.
  • A SUMPRODUCT check agrees, and the boundary dates are included or excluded as intended.

Once you can total any date range, building period reports is mostly layout. The monthly P&L and the monthly SUMIFS summary are good next steps.

Practice file: Download the SUMIFS between two dates workbook. The “How It Works” sheet lists every formula and what it does.

Report on any period in seconds

Browse the OneXcel Tutorial Hub for more formula guides, explore ready-to-use Excel templates, or turn your date-range totals into a dashboard with the OneXcel Dashboard Builder.

Discover more from OneXcel Studio

Subscribe now to keep reading and get access to the full archive.

Continue reading