In column A: week numbers
In cell U4: a week number
In column I: if the trade was a B (buy) or S (sell)
In cell V3: the letter B
the CSE-formula {=SUM(IF($A$2:$A$111=$U4,IF($I$2:$I$111=V$3,1,0),0))} will give the number of B (buys) in a given week (specified by week number).
Using this I create a table with the number of buy order during a range of different weeks.
Now, instead, I would like to sum the total number shares bought during each week. The volume of bought shares for each order is in column J.
How can I do this?
My current CSE-function is a bit like a 2-condition CountIf. What I need to turn it into is a 2-condition SumIf.
Any ideas?
Many thanks
In cell U4: a week number
In column I: if the trade was a B (buy) or S (sell)
In cell V3: the letter B
the CSE-formula {=SUM(IF($A$2:$A$111=$U4,IF($I$2:$I$111=V$3,1,0),0))} will give the number of B (buys) in a given week (specified by week number).
Using this I create a table with the number of buy order during a range of different weeks.
Now, instead, I would like to sum the total number shares bought during each week. The volume of bought shares for each order is in column J.
How can I do this?
My current CSE-function is a bit like a 2-condition CountIf. What I need to turn it into is a 2-condition SumIf.
Any ideas?
Many thanks