SUMIF based on range of DATE

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,844
Office Version
  1. 365
Platform
  1. Windows
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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
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)
 
Upvote 0
EG for August:

Code:
=SUMIF(E2:E1430,">=8/1/06",F2:F1430)-SUMIF(E2:E1430,">=9/1/06",F2:F1430)
 
Upvote 0
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
 
Upvote 0
I got it, Thank for checking it,

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

Forum statistics

Threads
1,215,065
Messages
6,122,944
Members
449,095
Latest member
nmaske

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