=SUMPRODUCT(--(A2:A1000="x"),--(B2:B1000=DATE(2005,9,5)),C2:C1000)
look in help for DATE, 09/03/05 can be either March 9th 2005 or September
3rd 2005 depending on if you use UK
d/m/y or US m/d/y/ I used US in my formula. You can also write it like this
=SUMPRODUCT(--(A2:A1000="x"),--(B2:B1000=--"2005-09-05"),C2:C1000)
still interpreting your example as US date
--
Regards,
Peo Sjoblom
"Roberto Villa Real" <(E-Mail Removed)> wrote in
message news:1D6A2878-EA94-4DF1-8034-(E-Mail Removed)...
>I need to sum some values in Column C, but with 2 criterias (one criteria
>for
> column A and another criteria for column B).
>
> Exemple:
> I need the SUM of values in column C, only if Column A="x" AND Column
> B="09/03/05"
>
> A______B__________C____
>
> x____09/03/05_____2.99(*)
> j____09/03/05_____10.34
> y____09/03/05_____1.78
> h____12/03/05_____9.21
> x____09/03/05_____5.6(*)
> x____10/04/05_____22.5
> a____05/05/05_____50.02
>
> Total: (2.99 + 5.6) = 8.59
>
> Hope someone helps me!
> Thanks a lot!
>
|