I've been using SUM-IF array formulas since Excel 4. But recently, I've
tried to use SUMPRODUCT instead.
That is...
{=SUM(IF((Name="Smith")*(State="Utah"),Amount,0))}
...does the same thing as...
=SUMPRODUCT(0+(Name="Smith"),0+(State="Utah"),Amount)
...but without the inconvience of arrays.
However, today I realized that if Amount is wider than one column,
SUMPRODUCT fails but SUM-IF works.
Am I mising something? Is there a simple way to make SUMPRODUCT work when
Amount is a dynamic range that could define any number of columns?
Charley
Harlan Grove - 08 Jun 2007 07:02 GMT
"Charley Kyd" <m...@nospam.com> wrote...
...
>=SUMPRODUCT(0+(Name="Smith"),0+(State="Utah"),Amount)
...
>However, today I realized that if Amount is wider than one column,
>SUMPRODUCT fails but SUM-IF works.
>
>Am I mising something? Is there a simple way to make SUMPRODUCT work
>when Amount is a dynamic range that could define any number of columns?
=SUMPRODUCT((Name="Smith")*(State="Utah")*Amount)
Charley Kyd - 08 Jun 2007 14:56 GMT
Great! Thanks.
Charley
> "Charley Kyd" <m...@nospam.com> wrote...
> ...
[quoted text clipped - 7 lines]
>
> =SUMPRODUCT((Name="Smith")*(State="Utah")*Amount)
T. Valko - 08 Jun 2007 07:07 GMT
Try it like this:
=SUMPRODUCT((name="smith")*(state="utah")*amount)
Biff
> I've been using SUM-IF array formulas since Excel 4. But recently, I've
> tried to use SUMPRODUCT instead.
[quoted text clipped - 12 lines]
>
> Charley