Hi and thanks in advance for the help!
I need to convert stock buy and sell requests into matched offsetting trade transactions. The Buys and Sells here are the inputs and the trades are the outputs.
Answers in PQ are preferred but VBA or Excel are fine too.
<tbody>
Inputs
Outputs...