I want to calculate the Net present value over a variable time of years.
Now I've got the formula =SUM(FV/(1+interest)^n where n is the amount of years.
However I want the SUM of all years apart.
I can set a expected number of years for the project but this is variable. So for instance I set the expected project years at 20 and I want Excel to automaticly calculate the SUM of (FV/(1+interest)^1+(FV/(1+interest)^2+(FV/(1+interest)^3....etc.+(FV/(1+interest)^20
How can I program this?
Now I've got the formula =SUM(FV/(1+interest)^n where n is the amount of years.
However I want the SUM of all years apart.
I can set a expected number of years for the project but this is variable. So for instance I set the expected project years at 20 and I want Excel to automaticly calculate the SUM of (FV/(1+interest)^1+(FV/(1+interest)^2+(FV/(1+interest)^3....etc.+(FV/(1+interest)^20
How can I program this?