+ Reply to Thread
Results 1 to 3 of 3

Dynamic Range Reference, Varying Size of Range

  1. #1
    Registered User
    Join Date
    06-02-2011
    Location
    Arizona, United States
    MS-Off Ver
    Excel 2007
    Posts
    14

    Dynamic Range Reference, Varying Size of Range

    Hello!

    I would like to reference a range in a sum formula, but the range size depends on some other number called "months left". I have a formula that does this, but I am wondering if there is an easier, more efficient, way.

    A very simplified example: my range with numbers is A2:A6, if month left is 1, I want my formula to return A2, if months left is 2, I want my formula to give me A2+A3, if months left is 3, I want my formula to give me A2+A3+A4

    Here's my approach:
    Please Login or Register  to view this content.
    and so on, for up to 12 months.

    This does what I want, but can you tell me a nicer way? Is a nicer way even possible? As this is mostly out of curiosity and desire to learn, don't rack your brain, I don't mind if I don't get an answer.

    I added an attachment.

    Thanks. **
    Attached Files Attached Files
    Last edited by cdiaz; 06-30-2011 at 02:50 PM.

  2. #2
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: Dynamic Range Reference, Varying Size of Range

    My solution:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-02-2011
    Location
    Arizona, United States
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Dynamic Range Reference, Varying Size of Range

    Thanks Bentley! That was quick. I never knew about Indirect.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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