I have 4 arrays of data where I need a some product but with few conditions.
I'm unable to solve that and I'm not good at creating VBA functions as well.
Can anyone please help?
Apologies for the lack of clarity.
I'll try to give more details here. Please refer the below workbook.
https://drive.google.com/file/d/1XVEe4Sjw6ZeAh-7jyeLDs7Tp5RRQD20i/view?usp=sharing
Investment value is Row 2 * Row 3. This value is carried across all the months after amortization given in row 4. 5th row is converting the yearly value into monthly value (1/12).
So, in the first month 50 is invested and the value at the beginning of the month after amort of 100%, So 50 is available for month 1. This is further converted into monthly values with the help of row 5. So, the result for month 1 will be 100 * 50% * 100% * 8.33% = 4.1667 [Cell I9]
For the month 2, the value available is,
Value carried from month 1 after amort (100 * 50% * 99%) + New amount in month 2 (102 * 50% * 100%)
The above value is converted into the monthly value again with the help of row 5.
Result for month 2 => Cell I10 = (100 * 50% * 99% * 8.33%) + (102 * 50% * 100% * 8.33%) = 8.375
Similarly, for month 3 the value will be,
Month 1's investment (100*50%*98%*8.33%) + Month 2's investment (102*50%*99%*8.33%) + Month 3's investment (104*50%*100%*8.33%)
I need the above calculation to happen in single cell for all the months. I tried sumproduct with offset. But I couldn't.