Hey thank you so much! It's working almost perfectly now, everything is updated and calculated automatically.
There was one thing I couldn't figure out though, for the very last column, % on capital, you wrote
So that calculates the day's profit divided by the capital remaining at the end of the day. But I'd like the day's profit divided by the previous day's capital. So for instance, if we have $100
And On Day 1: We make $10, % return on capital = 10/100 = 10%
On Day 2: We make $20. % return on capital should be 20/110 (Day 1's closing capital) but currently it's 20/130 (Day 2's closing capital).
I think I haven't quite grasped the RC[-1] sructure, I tried using RC[-1,-1] but it didn't work...
Thank you so much, again, I've gone from total vba neophyte to actually understanding what's happening in code thanks to this site!
Bookmarks