I have a bunch of investments in columns going to the right (every new investment assumed to be $100 here) and these investments go down with principal payments received over time (in rows). As principal payments come in, those get reinvested in subsequent months so as to keep the total portfolio balance constant. I am not showing all this here but a simplified $100 investment every month in columns (so assume every new investment really has a different balance).
Table values are invested balances (going down over time in rows - new investments are in columns)
I am making an assumption that each investment has an average life (or duration) profile as laid out in Column B (starts at say 6.1 and declines with passing time). I am trying to calculate my portfolio duration every point in time (going down in rows). So, in Month 1, my $100's duration is 6.1. Month 2, my Month 1 investment is at $95 with a duration of 5.9 and Month 2 investment of $100 has a 6.1 duration. The weighted average formula would be ($95 * 5.9 + $100 * 6.1) / ($100+$95). And so on. This means, I have to invert the duration column numbers for the number of months I have made investments for - meaning for my portfolio duration calc in Month 2, I take the Top 2 duration column numbers and invert them to multiply with the Row 2 balances, in say Month 10, I would need to invert the Top 10 duration numbers and multiply with the Month 10 (in rows) balances.
The Offset function I created gives me these inverted durations beautifully, and a sumproduct of these with the balances would work, but I am not able to sum or sumproduct the results on the Offset array.
Thanks in advance for any suggestions. I am also curious, if anyone knows, why I cannot use the results of an offset array in sum or sumproduct. I have searched through other chat rooms and it seems some people have used them (those examples I found that supposedly work do not work for me in Excel 2007 or Excel 2010 - tried in both).
Mert
Bookmarks