Thanks.
That gives the sum of all "Sales" + sum of all "GM%". Any way to
modify so that it gives the sumproduct?
That is, I want a formula that gives (sales*GM% + sales*GM% + sales*GM
%....)
Assuming that Sales is always immediately followed by GM% then try this
=SUMPRODUCT($B$1:$B$15,$B$2:$B$16,--($A$1:$A$15="Sales"))
Charles
__________________________________________________
Outlines for my Sessions at the Australia Excel Users Group
http://www.decisionmodels.com/OZEUC.htm
> Thanks.
>
[quoted text clipped - 42 lines]
>>
>> > Thanks
jg70124@gmail.com - 09 Feb 2008 18:40 GMT
That's the ticket - thanks.
On Feb 9, 9:46 am, "Charles Williams" <Char...@DecisionModels.com>
wrote:
> Assuming that Sales is always immediately followed by GM% then try this
>
[quoted text clipped - 54 lines]
>
> >> > Thanks
Bernd P - 10 Feb 2008 10:13 GMT
Hello,
And maybe you would like to add a plausibility checks like
=SUMPRODUCT($B$1:$B$15,$B$2:$B$16,--($A$1:$A$15="Sales"),--($A$2:$A
$16="GM%"))
=SUMPRODUCT($B$1:$B$15,$B$2:$B$16,--($A$2:$A$16="GM%"))
If this does not show identical results then your data has some flaw
in it...(unless these formulas are wrong :-)
Regards,
Bernd
jg70124@gmail.com - 16 Feb 2008 03:55 GMT
> Hello,
>
[quoted text clipped - 8 lines]
> Regards,
> Bernd
Perfect. Thanks.
I guess I misunderstood your requirement.

Signature
Biff
Microsoft Excel MVP
> Thanks.
>
[quoted text clipped - 42 lines]
>>
>> > Thanks