using filters with the sum function

J

justinelliott

Hi,

I have 5 columns of data (please see attachment). What I would reall
like to do is to only add up the data in the 4 columns that are betwee
2 dates. For example, I would like to specify that all numbers in th
'calls made' column that are between 14/09/05 and 16/09/05 in the 'dat
changed' column are added up but leaving out all other data that doe
not fall between these two dates.

I hope this is clear and I would be extremely grateful if someone coul
steer me in the right direction!

Many many many thanks

Justi

+-------------------------------------------------------------------
|Filename: screen1.gif
|Download: http://www.excelforum.com/attachment.php?postid=3806
+-------------------------------------------------------------------
 
G

Guest

Here's one way:

A B C
Result in 'C' column
1 Starting Date 9/14/2005
2 Ending Date 9/16/2005
3
4 Calls Made Date
5 5 9/13/2005 =if(and(b5>=$b$1,b5<=$b$2),a5,0)
6 4 9/14/2005
7 2 9/15/2005
8 6 9/16/2005
9 7 9/17/2005

hope that helps.
 
D

Domenic

If you want to sum Column B where the corresponding date in Column A
equals Sepember 15, 2005, try...

=SUMIF(A2:A10,"2005/09/15",B2:B10)

If you want to sum Column B where the corresponding date in Column A is
greater than or equal to 2005/09/14 and less than or equal to
2005/09/16, try...

=SUMPRODUCT(--(A2:A10>="2005/09/14"+0),--(A2:A10<="2005/09/16"+0),B2:B10)

or

=SUMPRODUCT(--(A2:A10>=G2),--(A2:A10<=H2),B2:B10)

....where G2 contains your start date, and H2 contains your end date.

Hope this helps!

justinelliott
 

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