This should be easy ... can't figure it out. If I want a formula that wants to perform an action (NPV, but I don't think that matters) on the cell directly above and the next "X" (say 20 cells/years of cash flow) to the right of it, how can I set it up so that I can copy the formula across as well as change "X".
(Obviously, it's easy to select a 20 cell range and copy it across ... but what if I want the length of the range to by dynamic (ie I want to switch to a 40 year NPV instead of a 20 year)?)
Last edited by KeithO; 10-22-2009 at 02:21 PM.
You can potentially use INDEX... let's simplify to a SUM
Say: row 1 contains numerics
A2: I enter no. of columns I wish to Sum from A onwards, eg 20
B2: =SUM(A1:INDEX(1:1,A2))
There is also the possibility of using OFFSET but unlike INDEX this is Volatile
B2: =SUM(OFFSET(A1,,,1,A2))
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Funny ... I just sent you a note saying I found a different solution written by you regarding INDEX and thought that might be the answer (... apparently you agree). Thx for the help!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks