ExcelReady
CourseFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before the interview. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Function guides
  • Blog

Product

  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Conditional math
  3. Sum by Date Range or Month in Excel With SUMIFS

Sum by Date Range or Month in Excel With SUMIFS

By ExcelReady Team·Updated October 30, 2026·7 min read

The short answer

To sum between two dates, give SUMIFS the same date column twice: once with ">="&start and once with "<"&end. For January 2025, write =SUMIFS(D2:D9,A2:A9,">="&DATE(2025,1,1),A2:A9,"<"&DATE(2025,2,1)). Keep the operator in quotes and join the date with &. Using "before the 1st of next month" works for every month.

Key takeaways

  • A date range is two conditions on the same date column: on or after the start, and before the end.
  • Write the operator in quotes and join the date with &: ">="&DATE(2025,1,1).
  • DATE(year, month, day) is safer than typing a date, which other countries may read differently.
  • "<"&DATE(2025,2,1) catches all of January 31, including times later that day.
  • Point the criteria at cells, like ">="&J2, so the range changes without editing the formula.
On this page+
  1. How do dates work in SUMIFS criteria?
  2. How to count or sum from a date onwards
  3. How to sum between two dates with SUMIFS
  4. How to sum by month with EOMONTH
  5. How to use start and end dates from cells
  6. Why is SUMIFS with dates returning 0?
  7. Related guides
  8. Practise it

A SUMIFS date range is two conditions on the same date column: on or after the start date, and before (or on) the end date. With it you can total sales for a month, a quarter, or any two dates a manager types in. This guide is for anyone building monthly reports or facing a date question in an Excel test, and it shows the exact criteria syntax that trips most people up.

How do dates work in SUMIFS criteria?#

Excel stores every date as a number, so you compare dates with the same operators as numbers: >=, <=, < and >. The rule for writing them:

  • Put the operator in quotes: ">=".
  • Join the date outside the quotes with &: ">="&DATE(2025,1,1).

DATE(year, month, day) builds a real date. It's safer than typing ">=1/2/2025", because 1/2/2025 means January 2 in the US but February 1 in the UK and many other countries.

Don't write ">=DATE(2025,1,1)". Inside quotes, DATE is just letters, so nothing matches and the result is 0.

The examples use this order table in A1:D9:

ABCD
1DateRegionRepAmount
22025-01-02WestMarco2700
32025-01-14EastPriya950
42025-01-31EastSam1320
52025-02-01EastPriya1800
62025-02-18NorthJade760
72025-02-25SouthOwen3050
82025-03-03NorthOwen1480
92025-03-22EastSam2400

The dates are shown as year-month-day here. Your sheet may display them differently, depending on your regional settings.

How to count or sum from a date onwards#

For a one-sided range, such as "on or after Feb 1", use a single condition. To count those orders:

Excel formula
=COUNTIFS(A2:A9,">="&DATE(2025,2,1))

The result is 5 (rows 5 to 9). Use ">" instead and the Feb 1 order drops out, giving 4. The same criteria work in SUMIFS, COUNTIF and SUMIF.

How to sum between two dates with SUMIFS#

To total a date range, list the date column twice: once with the start condition and once with the end condition. For January 2025:

Excel formula
=SUMIFS(D2:D9,A2:A9,">="&DATE(2025,1,1),A2:A9,"<"&DATE(2025,2,1))

The result is 4,970 (2,700 + 950 + 1,320). Here is what each part does:

PartMeaning
D2:D9Add the Amount column
A2:A9,">="&DATE(2025,1,1)where the date is Jan 1, 2025 or later
A2:A9,"<"&DATE(2025,2,1)and before Feb 1, 2025

Why use "<" the 1st of next month?#

"<="&DATE(2025,1,31) gives the same total here, but "<"&DATE(2025,2,1) is the safer habit for two reasons. You never need to know whether a month has 28, 30 or 31 days. And if a date includes a time, such as Jan 31 at 3 PM, Excel stores it as slightly more than Jan 31, so <= would miss it.

How to sum by month with EOMONTH#

To build a monthly summary, put the first day of each month in a column and let EOMONTH find the last day. With Jan 1, Feb 1 and Mar 1, 2025 in F5:F7, type this in G5:

Excel formula
=SUMIFS($D$2:$D$9,$A$2:$A$9,">="&F5,$A$2:$A$9,"<="&EOMONTH(F5,0))

Fill down to G7 (Windows: Ctrl+D; Mac: ⌘D). EOMONTH(F5,0) returns the last day of F5's month, so you get:

MonthSales
Jan 20254,970
Feb 20255,610
Mar 20253,880

The three months add up to 14,460, the same as =SUM(D2:D9). To show the month name instead of a full date in F5:F7, give those cells a custom number format of mmm yyyy; the value stays a real date, so SUMIFS still works.

For a quarter, keep the same pattern and move the end three months on. The first quarter of 2025 runs from Jan 1 up to, but not including, Apr 1:

Excel formula
=SUMIFS(D2:D9,A2:A9,">="&DATE(2025,1,1),A2:A9,"<"&DATE(2025,4,1))

All eight orders fall in Q1, so this also gives 14,460. The data ranges have $ signs so they stay fixed, while F5 moves down to F6 and F7. For a whole year, use ">="&DATE(2025,1,1) and "<"&DATE(2026,1,1).

How to use start and end dates from cells#

Point the criteria at cells so anyone can change the range without touching the formula. Put a region in J1, a start date in J2 and an end date in J3. To count that region's orders with both days included:

Excel formula
=COUNTIFS(B2:B9,J1,A2:A9,">="&J2,A2:A9,"<="&J3)

Swap COUNTIFS for SUMIFS and add the amounts first to get the total. With East, Jan 14 and Feb 18, 2025, =SUMIFS(D2:D9,B2:B9,J1,A2:A9,">="&J2,A2:A9,"<="&J3) gives 950 + 1,320 + 1,800 = 4,070.

You can mix date pairs with any other condition. East sales in February 2025:

Excel formula
=SUMIFS(D2:D9,B2:B9,"East",A2:A9,">="&DATE(2025,2,1),A2:A9,"<"&DATE(2025,3,1))

Only the Feb 1 order matches, so the result is 1,800. For many regions and months at once, a PivotTable grouped by month can be quicker; PivotTable vs SUMIFS compares the two.

For a rolling period, use TODAY. The last 30 days, including today:

Excel formula
=SUMIFS(D2:D9,A2:A9,">="&TODAY()-30,A2:A9,"<="&TODAY())

Why is SUMIFS with dates returning 0?#

A date SUMIFS that returns 0 usually has the date inside the quotes or dates stored as text. Check these:

  1. Date or cell inside quotes. ">=J2" and ">=DATE(2025,1,1)" are plain text. Write ">="&J2.
  2. Dates stored as text. Imported dates often look right but sit on the left of the cell. Test one with =ISNUMBER(A2): FALSE means text. Convert them with Data > Text to Columns, or =VALUE(A2) in a helper column.
  3. Start and end swapped. ">="&end with "<="&start matches nothing.
  4. Typed dates read the wrong way. Use DATE instead of "1/2/2025".
  5. Ranges of different sizes. Every range must cover the same rows, or you get #VALUE!.

Related guides#

If SUMIFS is new to you, start with how to use SUMIF and COUNTIFS and SUMIFS with multiple conditions. For a quick count of rows that pass one test, COUNTIF criteria examples cover every operator. The SUMIFS function guide has the full syntax. To learn why dates behave like numbers, read why Excel dates are numbers.

Practise it#

Practise dates in criteria in a live spreadsheet: count orders from a date, total January with two conditions, build a monthly summary with EOMONTH, and drive a date range from input cells.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Total the February 2025 sales. Click G2 and use SUMIFS: add D2:D9 where the date in A2:A9 is on or after Feb 1, 2025 and before Mar 1, 2025. Build both dates with DATE.

fx
ABCDEFGH
1
Date
Region
Rep
Amount
2
1/2/2025
West
Marco
2700
February sales
3
1/14/2025
East
Priya
950
4
1/31/2025
East
Sam
1320
5
2/1/2025
East
Priya
1800
6
2/18/2025
North
Jade
760
7
2/25/2025
South
Owen
3050
8
3/3/2025
North
Owen
1480
9
3/22/2025
East
Sam
2400
10
11
12

Tip: Two pairs on A2:A9. Each criteria is an operator in quotes, then & and a DATE.

Practise this in a lesson

LessonDates in criteria: totals by date range and monthCount and total rows between two dates with COUNTIFS and SUMIFS, build a monthly summary, and drive the date range from input cells.Function guideSUMIFSTotal values that meet several conditions with SUMIFS. Examples by region, month and number range, common errors, and live practice.

Frequently asked questions

How do I sum values between two dates in Excel?

+

Use SUMIFS with two conditions on the date column: =SUMIFS(D2:D9,A2:A9,">="&J2,A2:A9,"<="&J3), where J2 is the start date and J3 the end date. Both days are included.

How do I sum by month in Excel?

+

Put the first day of the month in a cell, such as F5, and use =SUMIFS(D2:D9,A2:A9,">="&F5,A2:A9,"<="&EOMONTH(F5,0)). EOMONTH(F5,0) is the last day of that month.

Why does my SUMIFS with dates return 0?

+

The usual causes are a date inside the quotes, like ">=DATE(2025,1,1)", or dates stored as text. Keep only the operator in quotes, and check the dates with ISNUMBER.

How do I sum the last 30 days?

+

Use TODAY: =SUMIFS(D2:D9,A2:A9,">="&TODAY()-30,A2:A9,"<="&TODAY()). The result updates every day.

Do the dates need to be sorted?

+

No. SUMIFS checks every row, so the dates can be in any order.

Sources

  • SUMIFS function - Microsoft Support
  • DATE function - Microsoft Support
  • EOMONTH function - Microsoft Support

Written and checked by the ExcelReady Team. First published October 30, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How do dates work in SUMIFS criteria?
  2. How to count or sum from a date onwards
  3. How to sum between two dates with SUMIFS
  4. How to sum by month with EOMONTH
  5. How to use start and end dates from cells
  6. Why is SUMIFS with dates returning 0?
  7. Related guides
  8. Practise it

Keep reading

Conditional math· 6 min read

How to Use COUNTIF in Excel (With Criteria Examples)

COUNTIF counts the cells in a range that meet one condition. Write =COUNTIF(range, criteria), for example =COUNTIF(D2:D9,"Open") to count open tickets. Put text and comparisons in double quotes, like ">=8" or "<>Low". Numbers and cell references go in without quotes. For two or more conditions, use COUNTIFS.

Conditional math· 7 min read

How to Use SUMIF in Excel

SUMIF adds up the numbers in the rows that meet one condition. Write =SUMIF(range, criteria, sum_range): the cells to check, what they must match, then the numbers to add. For example, =SUMIF(C2:C9,"Travel",D2:D9) totals all Travel claims. Leave out sum_range when the condition is about the numbers themselves.

Conditional math· 7 min read

COUNTIFS and SUMIFS: Multiple Conditions in Excel

COUNTIFS counts rows that meet several conditions, and SUMIFS adds numbers from those rows. Each condition is a pair: a range, then its criteria. A row counts only if it matches every pair. SUMIFS puts the sum range first: =SUMIFS(E2:E9,A2:A9,"North",C2:C9,"Laptop") totals North laptop revenue.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback. The first lessons are free, with no download.

Start learning for free