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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top