+ Reply to Thread
Results 1 to 3 of 3

Dynamic range setting

  1. #1
    Registered User
    Join Date
    10-22-2009
    Location
    chicago, il
    MS-Off Ver
    Excel 2002
    Posts
    2

    Red face Dynamic range setting

    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.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Dynamic range setting

    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))

  3. #3
    Registered User
    Join Date
    10-22-2009
    Location
    chicago, il
    MS-Off Ver
    Excel 2002
    Posts
    2

    Re: Dynamic range setting

    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!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1