SUMIF using dates in cells

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

Guest

I need to sum a column of numbers in cells B1 - B5 from the range in Column A
from a date greater than the one in cell C1. How do I do this?

Example

A1 = 01/01/2007 B1 = 13 C1 = 20/02/2007
A2 = 01/02/2007 B2 = 4
A3 = 01/03/2007 B3 = 9
A4 = 01/04/2007 B4 = 31
A5 = 01/05/2007 B5 = 6

In this example, the sum total would be 46. How would I write that as a
formula? Would the sum total update if I changed the C1 date?
 
That worked....

If I wanted to change the example to include between 2 dates....
For example
C1 = 20/02/2007
C2 = 16/04/2007

How could I do that in the same formula?
 
Annie,

You do it using subtraction:-

=SUMPRODUCT((A1:A5<C2)*(B1:B5))-SUMPRODUCT((A1:A5<C1)*(B1:B5))

Mike
 
=SUMPRODUCT((A1:A5>C1)*(A1:A5<C2)*(B1:B5))

Decide whether you want > or >=, and similarly < or <=.
 
Back
Top