SUMIF function - criteria of between two dates. How?

F

Frannie21

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

=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

Thanks for the correction - the other will also work if you include the
..html (my browser adds it if necessary).
 
Top