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 / Programming / July 2008

Tip: Looking for answers? Try searching our database.

SumProduct with options

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
caroline - 31 Jul 2008 16:42 GMT
Hello,
I would like to be able to sum numbers in column I based on conditions in
A,B,C but  I would like to make the condition in each column optional, so I
could use the conditions in A and B only for instance (or in any combination)
The formula below works without the optio
=SUMPRODUCT(($A$112:$A$1155=$A$14)*($C$112:$C$1155=$C$14)*($B$112:$B$1155=$B$14)*(I$112:I$1155))
How can I add something like if($A$13=true,($A$112:$A$1155=$A$14),   etc
in the SUMPRODUCT formula?
Any help is appreciated.thanks

Signature

caroline

Chip Pearson - 31 Jul 2008 17:33 GMT
You can wrap the conditionals up within an IF function.

=SUMPRODUCT(--IF(A1:A10="",TRUE,
(A1:A10=2)),--IF(B1:B10="",TRUE,(B1:B10="b")),C1:C10)

This formula will return the SUM of values in C1:C10 where A1:A10 is either
empty or 2, and B1:B10 is empty or 'b'.

Signature

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
   Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

> Hello,
> I would like to be able to sum numbers in column I based on conditions in
[quoted text clipped - 7 lines]
> in the SUMPRODUCT formula?
> Any help is appreciated.thanks
 
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.