ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SumIf ( range, criteria, sum_range ) (https://www.excelbanter.com/excel-programming/424872-sumif-range-criteria-sum_range.html)

andré C.

SumIf ( range, criteria, sum_range )
 
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

Barb Reinhardt

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



All times are GMT +1. The time now is 03:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com