The interest rates can vary in each period.

Example

In the example shown, an initial sum of $1000 is invested for 4 years.

The formula in F5 is:

FVSCHEDULE returns $1,147.26, whencurrency number formatis applied.

Excel FV function

Excel PV function