SUMIF based on range of DATE

srizki

Well-known Member
I used these formula to sum by months, but I realized that not all dates are on the first day of the month, there for it did not work.
Can some one help me by providing a formula that sums on the base of range date or rather month.
thanks.
YTD August FA and GL.xls
DEFG
1433TotalForAugust3,405,503.26
1434TotalForJuly2,945,583.84
1435TotalForJune6,933,994.76
1436TotalforMay9,996,888.58
1437TotalforApril11,025,035.74
1438TotalforMarch3,620,218.39
1439TotalforFebruary4,319,309.93
1440TotalforJanuary8,322,190.62
AUGUST YTD FA

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Andrew Poulsom

MrExcel MVP
You could try:

=SUMIF(E2:E1430,"<=8/31/06",F2:F1430)-SUMIF(E2:E1430,"<8/1/06",F2:F1430)

or:

=SUMPRODUCT(--(MONTH(E2:E1430)=8),F2:F1430)

srizki

Well-known Member
Thank you Andrew.

Airfix9

Well-known Member
EG for August:

Code:
``=SUMIF(E2:E1430,">=8/1/06",F2:F1430)-SUMIF(E2:E1430,">=9/1/06",F2:F1430)``

srizki

Well-known Member
On the other sheet I have instead of whole date there is just 01, 02, 03 etc. I am trying to put that in the second formula you provided, but I am doing it worng, can you please correct my formaul.
=SUMPRODUCT(--(F9:F4832=8),G9:G4832)
Thanks

srizki

Well-known Member
I got it, Thank for checking it,

=SUMIF(F9:F4832,"=08",G9:G4832)

Replies
12
Views
505
Replies
4
Views
206
Replies
7
Views
299
Replies
7
Views
526
Replies
2
Views
291

1,171,585
Messages
5,876,314
Members
433,193
Latest member

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.

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

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