Skip to main content

Sum if date is between two dates in Excel

To sum values within a certain date range in Excel, you can apply a formula based on the SUMIFS function.


How to sum values that are between two dates in Excel?

This example is going to sum values in column D if the dates in column B are between two given dates provided in G5 and G6.

Generic Formulas

Including given dates

=SUMIFS(sum_range, date_range,">="&start_date, date_range, "<="&end_date)

Excluding given dates

SUMIFS(sum_range, date_range,">"&start_date, date_range, "<"&end_date)

Arguments

Sum_range: The range of cells to sum;
Date_range: The range of date cells that you want evaluate by the start_date and end_date;
Start_date: The start date of the date range that defines which cells will be summed;
End_date: The end date of the date range that defines which cells will be summed.

How to use this formula?

Select a blank cell, copy or enter the formula below and press the Enter key to get the result.

Sum values that are between two dates (including these two dates)

=SUMIFS(D5:D12, B5:B12,">="&G5, B5:B12, "<="&G6)

Sum values that are between two dates (excluding these two dates)

SUMIFS(D5:D12, B5:B12,">"&G5, B5:B12, "<"&G6)

Note: In the formulas, you can change the cells containing the start date and end date, or directly type the start date and end date enclosed in double quotation marks.


Related functions

Excel SUMIFS function
The Excel SUMIF function can help to sum cell values based on multiple criteria.


Related formulas

Sum if cells contain an asterisk
To sum cells containing an asterisk that is regarded as a literal character not a wildcard, this tutorial explains a formula based on the SUMIF function and the tilde (~).

Sum if cells contain both x and y
This step-by-step tutorial demonstrates how to sum a range of cells if the corresponding cells containing both x and y by using the SUMIFS function.

Sum if cells contain or equal to either x or y
To sum the cells if contain or equal to either one value or another, this tutorial provides two formulas in detail to help solve the problems.

Sum if cells are equal or not equal to a certain value
This step-by-step tutorial explains two formulas to sum a range of cells that equal or not euqal to a certain value based on the SUMIF function.


The Best Office Productivity Tools


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations