C
carl
I have 2 tables, A and B.
TableA
Side Symbol
Buy VKTA07C60.00
Buy SWFN06P65.00
Sell VAJA07C60.00
Buy OJMA07C55.00
Buy QQQO06P42.00
Buy QQQO06P42.00
Buy GE B06C35.00
TableB
Side Symbol TradeVolume
Buy GE B06C35.00 72
Buy QQQO06P42.00 360
Buy QQQO06P42.00 540
Buy QQQO06P42.00 100
Buy OJMA07C55.00 25
Sell OJMA07C55.00 50
Buy OJMA07C55.00 50
Buy OJMA07C55.00 25
Sell VAJA07C60.00 50
Buy SWFN06P65.00 67
Buy SWFN06P65.00 11
Sell SWFN06P65.00 52
Buy SWFN06P65.00 52
Buy SWFN06P65.00 124
Buy SWFN06P65.00 246
Sell VKTA07C60.00 462
Buy VKTA07C60.00 462
I am looking for a formula to place in ColC of Table A that will look at
Table B, Find the match for value in ColB Symbol, and if ColA in Table A is
"Buy", find "Sell" in ColA of Table B (similar if Table A is "Sell", Table B
match needs to be "Buy". If the 2 conditions are met, sum the values in ColC
of Table B.
Hope I explained my problem ok.
Thank you in advance.
TableA
Side Symbol
Buy VKTA07C60.00
Buy SWFN06P65.00
Sell VAJA07C60.00
Buy OJMA07C55.00
Buy QQQO06P42.00
Buy QQQO06P42.00
Buy GE B06C35.00
TableB
Side Symbol TradeVolume
Buy GE B06C35.00 72
Buy QQQO06P42.00 360
Buy QQQO06P42.00 540
Buy QQQO06P42.00 100
Buy OJMA07C55.00 25
Sell OJMA07C55.00 50
Buy OJMA07C55.00 50
Buy OJMA07C55.00 25
Sell VAJA07C60.00 50
Buy SWFN06P65.00 67
Buy SWFN06P65.00 11
Sell SWFN06P65.00 52
Buy SWFN06P65.00 52
Buy SWFN06P65.00 124
Buy SWFN06P65.00 246
Sell VKTA07C60.00 462
Buy VKTA07C60.00 462
I am looking for a formula to place in ColC of Table A that will look at
Table B, Find the match for value in ColB Symbol, and if ColA in Table A is
"Buy", find "Sell" in ColA of Table B (similar if Table A is "Sell", Table B
match needs to be "Buy". If the 2 conditions are met, sum the values in ColC
of Table B.
Hope I explained my problem ok.
Thank you in advance.