FormulaCraft

How to use SUMIFS between two dates in Excel and Google Sheets

Topic:SUMIF & SUMIFS
Excel & Google Sheets
=SUMIFS($B$2:$B$5,$A$2:$A$5,">="&DATE(2024,1,1),$A$2:$A$5,"<="&DATE(2024,2,28))

Verified example

Computed by a real spreadsheet engine on the sample data below.

DateRevenue
2024-01-101200
2024-01-28800
2024-02-15950
2024-03-051100

=SUMIFS($B$2:$B$5,$A$2:$A$5,">="&DATE(2024,1,1),$A$2:$A$5,"<="&DATE(2024,2,28))0

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Identify your date column (e.g. A) and value column (e.g. B), and your start and end dates.
  2. 2Apply the first criterion: $A$2:$A$100,">="&startDate to include dates on or after the start.
  3. 3Add the second criterion on the same date column: $A$2:$A$100,"<="&endDate. Combined: =SUMIFS($B$2:$B$100,$A$2:$A$100,">="&E1,$A$2:$A$100,"<="&E2) where E1 holds the start and E2 the end date.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

How do I use SUMIFS to sum by month without specifying exact dates?

Use EOMONTH to dynamically compute month boundaries: start =DATE(YEAR(E1),MONTH(E1),1) and end =EOMONTH(E1,0) where E1 is any date within the target month.

More on SUMIF & SUMIFS

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: