Hi Everyone,
I'm not sure if I should be posting here or in the VBA forum, but I think that starting here would be good.
I have a spreadsheet with 38,000 lines in it. They contain data from stock trades. When buying or selling a stock, the shares don't always necessarily get bought or sold in one big piece. They go off in lots of 100 or 500 shares. I want to write a procedure to take (for example) the following data and combine "multi executions":
Add a new line where SHARES are summed, RCHRG is summed, and CCHRG is summed keeping EXDATE the same, ACCT the same, and SYMBOL the same
Basically looking for trades that might be pieces of a larger trade (Same EXDATE, ACCT, SYMBOL; close in price (+/-a few cents)) and combine the SHARES RCHRG and CCHRG to get the data for the whole trade.
Hope this makes some sense at all.
I'm not sure if I should be posting here or in the VBA forum, but I think that starting here would be good.
I have a spreadsheet with 38,000 lines in it. They contain data from stock trades. When buying or selling a stock, the shares don't always necessarily get bought or sold in one big piece. They go off in lots of 100 or 500 shares. I want to write a procedure to take (for example) the following data and combine "multi executions":
Code:
EXDATE ACCT SYMBOL SHARES PRICE RCHRG CCHRG
Add a new line where SHARES are summed, RCHRG is summed, and CCHRG is summed keeping EXDATE the same, ACCT the same, and SYMBOL the same
Basically looking for trades that might be pieces of a larger trade (Same EXDATE, ACCT, SYMBOL; close in price (+/-a few cents)) and combine the SHARES RCHRG and CCHRG to get the data for the whole trade.
Hope this makes some sense at all.