SOLVED

conditional addition of values

Copper Contributor

Hi all,

I'm trying to add up the amount of two different items in one column if a condition is met in another column.

bit stuck on the command

=sumproduct(B:B="TRADE")/countifs(O:O="W""L")

 

I only want to count the amount of "W"s and "L"s in a column if the corresponding row in another column says "TRADE"

4 Replies
best response confirmed by Hans Vogelaar (MVP)
Solution

@Ding080Try this:

=SUM(COUNTIFS(O:O,{"W","L"},B:B,"TRADE"))

 

Mate, Thank you!. I've been watching so many youtube videos. Legend!

@Ding080 

=SUMPRODUCT((B:B="TRADE")*((O:O="W")+(O:O="L")))

An alternative could be SUMPRODUCT. 

Thank you @OliverScheurich 

1 best response

Accepted Solutions
best response confirmed by Hans Vogelaar (MVP)
Solution

@Ding080Try this:

=SUM(COUNTIFS(O:O,{"W","L"},B:B,"TRADE"))

 

View solution in original post