I had the same task ahead of me, so I decided to code an Excel VBA macro to handle the calculation. The benefit of this is that you can also look at the current year’s situation for year-end tax optimization.
Tested to work with Excel version:
If anyone is interested, I’ll share it: DegiroTo9A.xlsm (72.7 KB)
P.S. I made an observation that the exchange rates in Degiro’s transaction report are slightly different from those in the final annual report. So there are small differences in these sums.
P.S.2. Please give feedback if you notice anything strange.
P.S.3. The VBA macro codes are visible if anyone is suspicious of running such code downloaded from the internet.
Bug fixes:
14.4.2020 - report page row counter and row writing were not in sync