Multiple overlapping date ranges - sum a column if a date falls into any of these ranges

14UR4

New Member
Joined
Sep 22, 2017
Messages
1
Hi,

I've been trying to look around for anything similar, but I cant find anything at all

I have a list of ranged dates and a value next to them
then a date

for every date I want to check if it falls between any of the ranged dates and to sum every value where it does

This is an example of the structure:

[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl64, width: 64"]Start[/TD]
[TD="class: xl64, width: 64"]End[/TD]
[TD="class: xl64, width: 64"]People[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]01/09/2017[/TD]
[TD="class: xl65, align: right"]20/10/2017[/TD]
[TD="class: xl64, align: right"]2[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]05/09/2017[/TD]
[TD="class: xl65, align: right"]30/11/2017[/TD]
[TD="class: xl64, align: right"]3[/TD]
[/TR]
</tbody>[/TABLE]

This is what I would expect to return:
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl67, width: 64, align: right"]02/09/2017[/TD]
[TD="class: xl66, width: 64, align: right"]2[/TD]
[/TR]
[TR]
[TD="class: xl67, align: right"]07/09/2017[/TD]
[TD="class: xl66, align: right"]5[/TD]
[/TR]
[TR]
[TD="class: xl67, align: right"]21/10/2017[/TD]
[TD="class: xl66, align: right"]3[/TD]
[/TR]
</tbody>[/TABLE]


please can you help?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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