I have an Excel sheet where I track my financial investments. I have a field where I enter the latest current value of my portfolio, and have a table where I enter deposits I make (date, deposit, current value portfolio, ...).
What I want to calculate is the estimated yearly interest rate I make on these investments. I can't just do (profit/original value)/year or something like that, as extra deposits throughout the year change everything.
If I have $100 invested, and it grows to $150 in almost a year, but the last day I deposit $200 more, I would still want to see 50% yearly interest (or just below it), and not 16% ($50/$300).
So it should calculate the interest a bit as your bank does (but in reverse): taking into account how long the money has been invested.
I have no idea how to do this in Excel. Is this something that can be done with standard formulas, or will I need VBA?
XIRR
function