R
Rod
I have a table with basically the following data:
Date Security Purchase/Sales Qty Price
Jan 1 IBM Purchase 2 10
Jan 1 IBM Purchase 4 11
Jan 1 IBM Purchase 1 14
Jan 1 IBM Purchase 2 15
Jan 1 IBM Sale 2 10
Jan 1 IBM Sale 4 12
I am looking to have the data presented on a daily basis with a purchse and
then an offsetting sale such as:
Date Security Purchase/Sales Qty Price
Jan 1 IBM Purchase 2 10
Jan 1 IBM Sale 2 10
Jan 1 IBM Purchase 4 11
Jan 1 IBM Sale 4 12
Jan 1 IBM Purchase 1 14
Jan 1 IBM Purchase 2 15
The only other criteria is that the purchase and offsetting sale has to net
to zero and the order has to be lowest to highest.
Rod
Date Security Purchase/Sales Qty Price
Jan 1 IBM Purchase 2 10
Jan 1 IBM Purchase 4 11
Jan 1 IBM Purchase 1 14
Jan 1 IBM Purchase 2 15
Jan 1 IBM Sale 2 10
Jan 1 IBM Sale 4 12
I am looking to have the data presented on a daily basis with a purchse and
then an offsetting sale such as:
Date Security Purchase/Sales Qty Price
Jan 1 IBM Purchase 2 10
Jan 1 IBM Sale 2 10
Jan 1 IBM Purchase 4 11
Jan 1 IBM Sale 4 12
Jan 1 IBM Purchase 1 14
Jan 1 IBM Purchase 2 15
The only other criteria is that the purchase and offsetting sale has to net
to zero and the order has to be lowest to highest.
Rod