Creating sumif statements to include/exclude a month within a date range

Phelp615

New Member
Joined
May 5, 2016
Messages
1
Hello - I am hoping someone can help me create a sumif statement looks a month, compares the month to a date range and pulls back amounts if the month falls within that range.

For example, I have a large list of transactions (see table). I would like to have a months as columns (Dec 15, Jan16, Feb16...) and have the sumif look to these dates, compare to my table and include if it falls within my ranges. My current formula uses >= equality signs but excludes transactions that span multiple months.

This is an example of my current statement (just to show my current line of thought) that excludes time spans over multiple months.
Column AS = volume
Column AP = Begin date
Column AQ = end date
Cell C4 = Start of the month
Cell C3 = End of the month

SUMIFS(Log!$AS$2:$AS$2000,Log!$AP$2:$AP$2000,">="&C$4,Log!$AQ$2:$AQ$2000,"<="&C$3)[TABLE="width: 500"]
<tbody>[TR]
[TD]Volume/month[/TD]
[TD]Begin date[/TD]
[TD]End Date[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]12/15/15[/TD]
[TD]12/30/15[/TD]
[/TR]
[TR]
[TD]115[/TD]
[TD]12/1/15[/TD]
[TD]2/28/16[/TD]
[/TR]
[TR]
[TD]500[/TD]
[TD]1/1/16[/TD]
[TD]1/31/16[/TD]
[/TR]
[TR]
[TD]700[/TD]
[TD]1/15/16[/TD]
[TD]6/30/16[/TD]
[/TR]
[TR]
[TD]800[/TD]
[TD]2/1/16[/TD]
[TD]2/28/16[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Formula looks ok, except I would gave thought it would have been ">=" begin, "<=" end?
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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