Summing all numbers that are between start and end date?

des378

New Member
Joined
Jun 11, 2024
Messages
8
Office Version
  1. 365
Platform
  1. MacOS
This is probably very simple, but for the life of me I can't seem to figure out. I have a list of dates and corresponding amounts. Trying to sum all values where one date falls in between start date (3 months for example, prior to end date) and end date

Ex:

SELECTED DATE: 2024-9-14


Start Date (3 months before End Date) / END DATE / AMOUNT
2024-07-16 / 2024-10-16. / 100
2024-08-19 / 2024-11-19 / 250
2025-07-19 / 2025-10-19 / 100

TOTAL should be: 350
(selected date - the month (e.g 9) falls in between two start and end dates)


Apologies for the lack of spacing in my example - the formatting got messed up when I copied and pasted.

Thanks in advance!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try:

Book1
ABCDEF
1Start DateEnd DateAmountSelected DateSum between start and end dates
27/16/202410/16/20241009/14/2024350
38/19/202411/19/2024250
47/19/202510/19/2025100
5
Sheet13
Cell Formulas
RangeFormula
F2F2=SUMIFS(C2:C10,A2:A10,"<="&E2,B2:B10,">="&E2)
 
Upvote 0
Hi - you could also try in F2;

=SUMPRODUCT((C2:C10)*(A2:A10<=E2)*(B2:B10>=E2))
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top