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

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
Joined
Jul 21, 2002
Messages
73,092
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
Joined
Jan 14, 2003
Messages
1,824
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Thank you Andrew.
 

Airfix9

Well-known Member
Joined
Sep 23, 2005
Messages
886
EG for August:

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

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,824
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
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
Joined
Jan 14, 2003
Messages
1,824
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I got it, Thank for checking it,

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

Forum statistics

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

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