I have a file that has, in the third row, cashflows on which interest is to be accrued (in this case, compounded at 10% annually). I am trying to show the cumulative value of those cashflows plus accrued interest, calculated in a single row. This formula is what I came up with:
=SUMPRODUCT(($S3:W3)*((1.1)^(COLUMN(W3)+1-COLUMN($S3:W3))))
Now, I need to introduce a limit by which interest is only compounded for a certain period of time. Trying to limit the interest to three years, I tried:
=SUMPRODUCT(($S3:W3)*((1.1)^(MIN(3,COLUMN(W3)+1-COLUMN($S3:W3)))))
However, the MIN function appears to be outside of the array as it keeps returning "1." So, I think what is happening is that I'm getting Min(3,{5,4,3,2,1})=1 where what I'm hoping for is an array of {min(5,3),min(4,3),min(3,3),min(2,3),min(1,3)} to multiply by the array of cashflows.
Just to be clear, the result that I'm looking for would look something like this:
Investment by Year: 1,0,1,0,0,0,1,... (it goes on for 50 or so columns)
Ending Value by Year: 1.1, 1.21, 2.43, 2.54, 2.66,2.66,3.76,...
Where the values are calculated as: 1.1^1, 1.1^2, 1.1^3 + 1.1^1, 1.1^3 + 1.1^2, 1.1^3 + 1.1^3,1.1^3 + 1.1^3, 1.1^3 + 1.1^3 + 1.1^1,...
Thanks!
P.S. - I hope my first post is worthy. I've used this board for some time and have generally been able to find an answer without posting. However, my search for 'Min and Sumproduct" was not fruitful.
=SUMPRODUCT(($S3:W3)*((1.1)^(COLUMN(W3)+1-COLUMN($S3:W3))))
Now, I need to introduce a limit by which interest is only compounded for a certain period of time. Trying to limit the interest to three years, I tried:
=SUMPRODUCT(($S3:W3)*((1.1)^(MIN(3,COLUMN(W3)+1-COLUMN($S3:W3)))))
However, the MIN function appears to be outside of the array as it keeps returning "1." So, I think what is happening is that I'm getting Min(3,{5,4,3,2,1})=1 where what I'm hoping for is an array of {min(5,3),min(4,3),min(3,3),min(2,3),min(1,3)} to multiply by the array of cashflows.
Just to be clear, the result that I'm looking for would look something like this:
Investment by Year: 1,0,1,0,0,0,1,... (it goes on for 50 or so columns)
Ending Value by Year: 1.1, 1.21, 2.43, 2.54, 2.66,2.66,3.76,...
Where the values are calculated as: 1.1^1, 1.1^2, 1.1^3 + 1.1^1, 1.1^3 + 1.1^2, 1.1^3 + 1.1^3,1.1^3 + 1.1^3, 1.1^3 + 1.1^3 + 1.1^1,...
Thanks!
P.S. - I hope my first post is worthy. I've used this board for some time and have generally been able to find an answer without posting. However, my search for 'Min and Sumproduct" was not fruitful.