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)
Volume/monthBegin dateEnd Date
10012/15/1512/30/15
11512/1/152/28/16
5001/1/161/31/16
7001/15/166/30/16
8002/1/162/28/16

<tbody>
</tbody>
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Formula looks ok, except I would gave thought it would have been ">=" begin, "<=" end?
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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