SUMIF based on range of DATE

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,824
Office Version
  1. 365
  2. 2016
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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
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)
 

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,824
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Thank youi Aladin, sorry I clicked it twice, it posted twice.
Thanks again.
 

Forum statistics

Threads
1,141,681
Messages
5,707,796
Members
421,528
Latest member
datdude151

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
Top