Hi,

Thanks for the replying but I am not getting the same results as I was getting with manual formulas.
There should be amount in last month. For example, January 2017 amount should end in December 2017 and February 2017 amount should end in January 2018.

Can you please take a look again and let me know.

Thanks again,
Jai