+ Reply to Thread
Results 1 to 3 of 3

Sum a dynamic range, with start date specified in another cell

  1. #1
    Registered User
    Join Date
    05-07-2015
    Location
    herts, england
    MS-Off Ver
    2016
    Posts
    29

    Sum a dynamic range, with start date specified in another cell

    I want to sum numbers over a six month period, but have the start month of six month period be changeable in another cell.

    I've attached an example of what I mean.

    The cell that specifies the start month is A3.

    If A3 says Jan-15, I would like to sum from Jan-15 to Jun-15, and get an answer of 2287.
    If A3 says Aug-15, I would like to sum from Oct-15 to Mar-15, and get an answer of 2568.

    I can think how to use index/match to get the start month, but I don't know how to put this in a sum formula.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Sum a dynamic range, with start date specified in another cell

    Try

    =SUM(OFFSET(E2,MATCH(A3,D3:D19,0),,6))

    edit:-

    With index, you could use

    =SUM(INDEX(E3:E19,MATCH(A3,D3:D19,0)):INDEX(E3:E19,MATCH(A3,D3:D19,0)+5))

    But it would return an error if the start months was less than 6 months from the end of the data.
    Last edited by jason.b75; 06-24-2016 at 10:37 AM.

  3. #3
    Registered User
    Join Date
    05-07-2015
    Location
    herts, england
    MS-Off Ver
    2016
    Posts
    29

    Re: Sum a dynamic range, with start date specified in another cell

    Thanks! That works pefectly

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dynamic ranges with different start date
    By SnilleMikke in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2015, 09:49 AM
  2. [SOLVED] Dynamic Chart with start date and end date
    By engine44 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-16-2015, 10:48 AM
  3. [SOLVED] Start date on pull down list being dynamic
    By habsfan in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-11-2013, 06:02 AM
  4. Dynamic Name range for a Table should start from Row #3
    By acsishere in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2013, 12:43 AM
  5. [SOLVED] Dynamic named range based on a start date and end date
    By Gary Lockton in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-06-2012, 07:26 PM
  6. dynamic date range filter from cell value in vba
    By rustycanada in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-25-2011, 06:47 PM
  7. [SOLVED] select dynamic range with dynamic start point
    By Juli in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2005, 08:05 PM

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