"C01d" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Use sumproduct as follows:
>
> =SUMPRODUCT(A1:A19,B1:B19)
>
> You will have to change the references accordingly. The first parameter
> is an array of values representing the quantity while the second
> parameter is an array of values representing the cost price.
>
>
OK I've tried this
data! being the second sheet holding the data
the first array is a condition that I only want customers = "RETAILAC" to be
included
data!E = quantity
data!W=cost price
=SUMPRODUCT(data!DA2

A7199="RETAILAC",data!E2:E7199,data!W2:W7199)
but this returns a 0 value
any clues?
thanks
--
Vass