Link to home
Start Free TrialLog in
Avatar of garyrobbins
garyrobbinsFlag for United States of America

asked on

How to count and sum based on date criteria?

Hello experts:

See attached example.  How do I count and sum my data based on date range criteria?

Thanks, Gary
Training-History-Log-EE.xls
SOLUTION
Avatar of x-men
x-men
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Please take a look at the attached file. I've use this to count:

=COUNTIFS(H2343:H2357,">="&G2358,H2343:H2357,"<"&H2358)

and this to sum:

=SUMPRODUCT((H2343:H2357>=G2358)*(H2343:H2357<H2358)*(G2343:G2357))

between the 2 dates specified on cells G2358 and H2358.

jppinto
Training-History-Log-EE.xls
Avatar of garyrobbins

ASKER

x-men,
Could you elaborate and also show how to do the SUM formula?  
Also, is this compatible with Excel 2003?
Thanks, Gary
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks everyone for the prompt and thurough replies.

x-men, I'm sorry I was not more clear that I was working in Excel 2003.
jppinto, SUMPRODUCT comes through again...

Hope you all find my allocation equitable.

Gary