hello,
got a goofy one here. I need to include a count of items in a subtotal, that is listed on each line of the subtotal, including the rollup itself, without factoring the summary data:
<tbody>
</tbody>
In the above, i need to return the largest block number for each trade in the last colum, so 3 for rows 2-5, and 4 for rows 6-10
in a real scenario, these blocks could be 20+ rows, and there could be multiple blocks for the same security, just with different brokers or at different prices. No blocks will ever be guaranteed to be uniform in size.
i have messed around with a bunch of max/vlookup hybrids, but its everything has just returned the highest value in the column, regardless of the trade details. ultimately, this will need to be processed in a vba macro
Is this possible to do? i feel like it should be, but its driving me crazy. any help would be greatly appreciated.
Thanks!
Mike
got a goofy one here. I need to include a count of items in a subtotal, that is listed on each line of the subtotal, including the rollup itself, without factoring the summary data:
Tranaction | account | security | price | broker | shares | BlockNumber | need to return value in | |
Buy | BLOCK | aapl | 101.01 | abcd | 20 | 0 | g5 (3) | summary row |
Buy | a1 | aapl | 101.01 | abcd | 10 | 1 | g5 (3) | |
Buy | a2 | aapl | 101.01 | abcd | 6 | 2 | g5 (3) | |
Buy | a3 | aapl | 101.01 | abcd | 4 | 3 | g5 (3) | |
sell | BLOCK | xom | 50.05 | poiu | 50 | 0 | g10 (4) | summary row |
sell | a1 | xom | 50.05 | poiu | 20 | 1 | g10 (4) | |
sell | a2 | xom | 50.05 | poiu | 15 | 2 | g10 (4) | |
sell | a3 | xom | 50.05 | poiu | 10 | 3 | g10 (4) | |
sell | a4 | xom | 50.05 | poiu | 5 | 4 | g10 (4) |
<tbody>
</tbody>
In the above, i need to return the largest block number for each trade in the last colum, so 3 for rows 2-5, and 4 for rows 6-10
in a real scenario, these blocks could be 20+ rows, and there could be multiple blocks for the same security, just with different brokers or at different prices. No blocks will ever be guaranteed to be uniform in size.
i have messed around with a bunch of max/vlookup hybrids, but its everything has just returned the highest value in the column, regardless of the trade details. ultimately, this will need to be processed in a vba macro
Is this possible to do? i feel like it should be, but its driving me crazy. any help would be greatly appreciated.
Thanks!
Mike