Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2007

Tip: Looking for answers? Try searching our database.

SUMPRODUCT vs Arrays

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charley Kyd - 08 Jun 2007 05:40 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.