G Guest Jan 27, 2005 #1 When using the SUMIF function it allows a criteria from one colomn. How do you right that to be between two dates.
When using the SUMIF function it allows a criteria from one colomn. How do you right that to be between two dates.
A Aladin Akyurek Jan 27, 2005 #2 =SUMIF(DateRange,">="&X2,SumRange)-SUMIF(DateRange,">"&Y2,SumRange) where X2 <= Y2, calculates a total for dates that are between X2 and Y2 inclusive.
=SUMIF(DateRange,">="&X2,SumRange)-SUMIF(DateRange,">"&Y2,SumRange) where X2 <= Y2, calculates a total for dates that are between X2 and Y2 inclusive.
J JE McGimpsey Jan 27, 2005 #3 one way: =SUMPRODUCT(--(A1:A100>DATE(2005,1,1)), --(A1:A100<TODAY()), B1:B100) See http://www.mcgimpsey.com/excel/doubleneg for an explanation of the "--"
one way: =SUMPRODUCT(--(A1:A100>DATE(2005,1,1)), --(A1:A100<TODAY()), B1:B100) See http://www.mcgimpsey.com/excel/doubleneg for an explanation of the "--"
B Bernard Liengme Jan 27, 2005 #4 Correction to link: http://www.mcgimpsey.com/excel/formulae/doubleneg.html
J JE McGimpsey Jan 27, 2005 #5 Thanks for the correction - the other will also work if you include the ..html (my browser adds it if necessary).
Thanks for the correction - the other will also work if you include the ..html (my browser adds it if necessary).