hello,
for transparency, this is a follow-up to a wonderful bit of code that AlphaFrog provided (reference below link).
http://www.excelforum.com/excel-prog...ml#post3860133
the code has been working really well right up until December. what happened in December is that mutual funds started putting out capital gain distributions. once this happened, the code got confused and started doing unexpected things. I'm hopeful that AlphaFrog or someone similarly familiar with what he's done can take the code and make some slight modifications to it that will make it work again.
I've included a few things for context.
(a) the entirety of the code I've been using is below. the relevant portion of the code starts with the comment "handle the dual transaction....."
(b) a raw .csv file example of the sheet I've been using the code on is attached.
dpm_schwab_one_-_19_Transactions_20141231-103500.CSV
(c) a spreadsheet named "excelforum7.xlsx" has been attached to show the new transactions that are causing problems. I've included a "before" tab and an "after" tab to show what the code needs to do. it's similar to what the existing code performs for dividends; but as mentioned above the addition of capital gain distributions complicates things a bit.
excelforum7.xlsx
(d) also, to perhaps make it slightly easier, the code can simply delete one of the transaction pairs. I show what I'm talking about in the file named "excelforum7.xlsx". once we delete one of the transaction pairs, we're combining two transactions into one, so the final column needs to change from a negative number to a positive number.
please let me know if there's any additional clarity I can provide for more understanding. I think this makes sense; but of course, I've been staring at it for hours ;>)
thank you in advance for the assistance.
Bookmarks