Date range sum

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi:
I need to find a specific date range i.e. 06/01/06 - 06/30/06, then add the
sum of the values in another column. I tried the if formula and then the
date value but I got a #value error. Here's where I'm at: If the date range
H2 to H522 is in the 06/01/06 to 06/30/06 range, then add the figures in
cells I2 to I522.
=if(H2:H522,"06/01/06:06/30/06",I2:I522) Can you help?
 
If you're always summing for a whole calendar month then perhaps this

=SUMPRODUCT(--(H2:H522-DAY(H2:H522)+1=J2),I2:I522)

where J2 contains the first day of the month in question, e.g. 1st June 2006
 

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

Back
Top