Date Range Formula Help

missdeannamarie

New Member
Joined
Mar 31, 2014
Messages
25
Hello, I am looking for a formula that will look at the dates in two columns, and return the sum of another column if those dates are included in a certain month.

For example below. The first table, is where my data is stored. The second table, I want to return the sum of resources needed if the two columns date ranges include that month. So for October in the second table, it would return 2 while November returns 3.

Hope that makes sense and that someone can help me out!

[TABLE="width: 500"]
<tbody>[TR]
[TD]PLANNED APPLICATION ENGINEERS[/TD]
[TD][TABLE="width: 63"]
<tbody>[TR]
[TD]START DATE[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 57"]
<tbody>[TR]
[TD]END DATE[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10/22/18[/TD]
[TD]3/10/19[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]11/5/18[/TD]
[TD]4/1/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]OCTOBER 18[/TD]
[TD]NOVEMBER 18[/TD]
[TD]DECEMBER 18[/TD]
[TD]JANUARY 19[/TD]
[/TR]
[TR]
[TD]TOTAL APPLICATION ENGINEERS NEEDED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hoping to get some help on this! Here is some more info.

I have the data on two sheets.

The first sheet we'll call raw data, the date ranges are in H:I, and I want G summed if the date range includes a certain month.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Planned Resources[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2[/TD]
[TD]10/22/18[/TD]
[TD]3/10/19[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[TD]11/5/18[/TD]
[TD]4/1/19[/TD]
[/TR]
</tbody>[/TABLE]


The second sheet we'll call calculation, i want cells (B2) to return 2 and (C2) to return 3 based on the start and end dates in the other sheet.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Oct 2018[/TD]
[TD]Nov 2018[/TD]
[TD]Dec 2018[/TD]
[TD]Jan 19[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]TOTAL APPLICATIONS RESOURCES NEEDED[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


I have tried this but am getting a return of 0

any ideas out there?

=SUMPRODUCT((MONTH('Raw Data'!H3:H4)<=MONTH(Calculation!C1))*(YEAR('Raw Data'!H3:H4)<=YEAR(Calculation!C1))*(MONTH('Raw Data'!I3:I4)>=MONTH(Calculation!C1))*(YEAR('Raw Data'!I3:I4)>=YEAR(Calculation!C1))*'Raw Data'!G3:G4)
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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