Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 183
Default SumProduct with options

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

--
caroline
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default SumProduct with options

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'.


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




"caroline" wrote in message
...
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 option
=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

--
caroline


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SumProduct - checking for multiple options in one column edeaston Excel Discussion (Misc queries) 2 January 30th 09 04:56 PM
Using same fomula to count AND and OR options / sumproduct KCR Excel Worksheet Functions 5 December 12th 08 02:30 PM
Send mail with outlook message options-Delivery OptionS JC Excel Programming 1 April 30th 08 10:52 PM
Working with options from within Tools Options clears the Clipboar Peter Rooney Excel Programming 6 November 18th 05 04:49 PM
How to diasble the 'Tools - Options - View - Comments' options? Alan Excel Programming 3 May 19th 05 10:58 PM


All times are GMT +1. The time now is 04:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"