sum between dates

I

Ian Bartlett

I am trying to sum numbers from sheet one which has dates in column a range
name date07, and column B range name hours07.

I am trying to gather this info on sheet two where

in column a I have a date in cell a5 another date in cell a6
what I am trying to get is a formula
sumif(date07,>=a5 &<=a6) that's the logic but of course it doesn't compute.

Thanks for any help

Bart
 
G

Guest

Hi Ian,
Please be a little specific and start with an example so I reply you back.

Daoud Fakhry
 
G

Guest

Try this:

=SUMIF(date07,"<="&A6,hours07)-SUMIF(date07,"<"&A5,hours07)

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 
I

Ian Bartlett

Ron

Thanks for your reply, I didn't copy the file home so I can't check til
tonight, looks good, will advise.

Again thanks
Bart
 
D

Don Guillett

If I understand what you want dates in B
count
=sumproduct((b2:b22>=a5)*(b2:b22<=a6))
sum C
=sumproduct((b2:b22>=a5)*(b2:b22<=a6)*c2:c22)
 

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