#1   Report Post  
sumproduct if
 
Posts: n/a
Default sumproduct if

i need a "sumproductif" function:, a combination of sumif and sumproduct

e.g. i need to sumproduct values in columns A and B if a condition in column
C holds

does anyone know of anything that would do this??




  #2   Report Post  
papou
 
Posts: n/a
Default

Hi
SUMPRODUCT will allow multi-criteria whereas SUMIF only allows one criteria.
Now if I understand rightly, you have one criteria and several columns to
add.
In which case you may add several SUMPRODUCT together.

HTH
Cordially
Pascal

"sumproduct if" <sumproduct a écrit dans le
message de news:
...
i need a "sumproductif" function:, a combination of sumif and sumproduct

e.g. i need to sumproduct values in columns A and B if a condition in
column
C holds

does anyone know of anything that would do this??






  #3   Report Post  
sumproduct if
 
Posts: n/a
Default

can you give me an example? Say i have:

A B C
BUY 2 4
BUY 4 8
SELL 3 4
BUY 5 2

if i want to sumproduct columns B and C only where column A = "BUY", what
would be the formula?




"papou" wrote:

Hi
SUMPRODUCT will allow multi-criteria whereas SUMIF only allows one criteria.
Now if I understand rightly, you have one criteria and several columns to
add.
In which case you may add several SUMPRODUCT together.

HTH
Cordially
Pascal

"sumproduct if" <sumproduct a écrit dans le
message de news:
...
i need a "sumproductif" function:, a combination of sumif and sumproduct

e.g. i need to sumproduct values in columns A and B if a condition in
column
C holds

does anyone know of anything that would do this??







  #9   Report Post  
Harald Staff
 
Posts: n/a
Default

"papou" skrev i melding
...
Hello Harald
In the example your formula will amount to 50 which means it adds values
twice?


I thought the OP wanted something like
=SUMPRODUCT(B1:B4,C1:C4)
with the criteria added, and that
=SUMIF(A1:A4,"BUY",B1:B4)+SUMIF(A1:A4,"BUY",C1:C4)
was the not the thing. Guess I was wrong.

Best wishes Harald


  #12   Report Post  
Bob Phillips
 
Posts: n/a
Default

or even more so

=SUMPRODUCT((A1:A10="BUY")*(B1:C10))


--
HTH

Bob Phillips

"RagDyeR" wrote in message
...
A little more concise:

=SUMPRODUCT((A1:A10="BUY")*((B1:B10)+(C1:C10)))
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------


"papou" wrote in message
...
=SUMPRODUCT((A1:A10="BUY")*(B1:B10))+SUMPRODUCT((A 1:A10="BUY")*(C1:C10))

HTH
Cordially
Pascal

"sumproduct if" <sumproduct a écrit dans le
message de news:
...
can you give me an example? Say i have:

A B C
BUY 2 4
BUY 4 8
SELL 3 4
BUY 5 2

if i want to sumproduct columns B and C only where column A = "BUY",

what
would be the formula?




"papou" wrote:

Hi
SUMPRODUCT will allow multi-criteria whereas SUMIF only allows one
criteria.
Now if I understand rightly, you have one criteria and several columns

to
add.
In which case you may add several SUMPRODUCT together.

HTH
Cordially
Pascal

"sumproduct if" <sumproduct
a écrit dans
le
message de news:
...
i need a "sumproductif" function:, a combination of sumif and

sumproduct

e.g. i need to sumproduct values in columns A and B if a condition in
column
C holds

does anyone know of anything that would do this??












  #13   Report Post  
RagDyer
 
Posts: n/a
Default

I knew that when Don posted his at 5:30 this morning, and I didn't see it in
my O.E. for some reason.
I kicked myself when I finally did see his.
Are you repeating it here so that I kick myself again?<vbg

I wish these MS servers would get it all together, so that I could at least
put my foot in my mouth less often!

--
Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit!
-------------------------------------------------------------------

"Bob Phillips" wrote in message
...
or even more so

=SUMPRODUCT((A1:A10="BUY")*(B1:C10))


--
HTH

Bob Phillips

"RagDyeR" wrote in message
...
A little more concise:

=SUMPRODUCT((A1:A10="BUY")*((B1:B10)+(C1:C10)))
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------


"papou" wrote in message
...
=SUMPRODUCT((A1:A10="BUY")*(B1:B10))+SUMPRODUCT((A 1:A10="BUY")*(C1:C10))

HTH
Cordially
Pascal

"sumproduct if" <sumproduct a écrit dans

le
message de news:
...
can you give me an example? Say i have:

A B C
BUY 2 4
BUY 4 8
SELL 3 4
BUY 5 2

if i want to sumproduct columns B and C only where column A = "BUY",

what
would be the formula?




"papou" wrote:

Hi
SUMPRODUCT will allow multi-criteria whereas SUMIF only allows one
criteria.
Now if I understand rightly, you have one criteria and several

columns
to
add.
In which case you may add several SUMPRODUCT together.

HTH
Cordially
Pascal

"sumproduct if" <sumproduct
a écrit
dans
le
message de news:

...
i need a "sumproductif" function:, a combination of sumif and

sumproduct

e.g. i need to sumproduct values in columns A and B if a condition

in
column
C holds

does anyone know of anything that would do this??














  #14   Report Post  
Bob Phillips
 
Posts: n/a
Default


"RagDyer" wrote in message
...
I knew that when Don posted his at 5:30 this morning, and I didn't see it

in
my O.E. for some reason.
I kicked myself when I finally did see his.
Are you repeating it here so that I kick myself again?<vbg


Not at all. I hadn't seen Don's reply when I sent this, I just sent it as
a small ironic riposte as mine was even more long-winded (I'm English don't
forget, we do lots of irony ;-))

I wish these MS servers would get it all together, so that I could at

least
put my foot in my mouth less often!


Amen, then I would have seen Don's too. I still miss posts on this thing!


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 Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 11:27 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"