View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Barb Reinhardt Barb Reinhardt is offline
external usenet poster
 
Posts: 3,355
Default SumIf ( range, criteria, sum_range )

You need to do something like this

=SUMPRODUCT(--(A2:A12DATE(2009,2,1)),--(A2:A12<=DATE(2009,3,1)),--(B2:B12="Code"),(C2:C12))

Assume Dates are in A2:A12, Codes are in B2:B12 and $$ is in C2:C12.

HTH,
Barb Reinhardt

"andré C." wrote:

Hi,

i'm using 3 columns in excel 2007

"dates" - "code" - "money"

I use sumIF to get the total of money for each code. This works great.

But I would like to do so between two dates from column "dates".

To sumIF the table between two dates...

How could I do this ?


Thanks,

Andy