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.
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)
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.
The Best Office Productivity Tools
- 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.
Please leave your comments in English