SUMIF based on range of DATE

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,841
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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
E1433: 1-Aug-06

F1433:

=SUMIF($E$2:$E$1430,">="&E1433,$F$2:$F$1430)-SUMIF($E$2:$E$1430,">"&EOMONTH(E1433,0),$F$2:$F$1430)

Or:

=SUMPRODUCT(($E$2:$E$1430-DAY($E$2:$E$1430)+1=E1433)+0,$F$2:$F$1430)
 
Upvote 0
Thank youi Aladin, sorry I clicked it twice, it posted twice.
Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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