+ Reply to Thread
Results 1 to 6 of 6

Mutliple SUM with dynamic SUM range within a Dynamic Data set

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Miami
    MS-Off Ver
    Excel 2010
    Posts
    3

    Mutliple SUM with dynamic SUM range within a Dynamic Data set

    I'm using Windows 7 with Office 2007 / Office 2010.
    I need a formula (No VBA) that will be able to cater for multiple SUM functions based on the cell value in the adjacent column. This cell value remains constant (the word "Invoice") but occurs at dynamic intervals which cannot be predetermined. The SUM function must only SUM from the 1st entry after the last invoice date up to the next invoice date. This must then be applied to the entire data set.
    The number of rows in the data set is dynamic and can grow or shrink.

    I've added a sample sheet to try and illustrate the scenario. Dynamic Range_Multiple Dynamic Sum.xlsx

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Mutliple SUM with dynamic SUM range within a Dynamic Data set

    Use in Row 2

    =IF(C2="Invoice",SUM($B$1:B2)-SUM($E$1:E1),"")

    and drag down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    09-05-2012
    Location
    Miami
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Mutliple SUM with dynamic SUM range within a Dynamic Data set

    That will work for a rolling total. However, I want to SUM per invoice period without adding the total of the previous period to the current SUM function.
    For example, the invoice amount adjacent to CELL A12 (11-Jan-12) should only SUM cells B5:B12 and the invoice amount next to CELL A16 (15-Jan-2012) should only SUM cells B13:B16.
    This logic must be applied to the entire data set, bearing in mind that the "Invoice" frequencies / occurrences is not predetermined and can contain any period.

    There is probably some combination formula of INDEX, MATCH, OFFSET and VLOOKUP that will solve this, but I just can seem to wrap my head around it.
    Any suggestions?

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Mutliple SUM with dynamic SUM range within a Dynamic Data set

    That's exactly what the formula achieves. See attached
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-05-2012
    Location
    Miami
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Mutliple SUM with dynamic SUM range within a Dynamic Data set

    I entered your formula in the wrong column previously!
    Thanks, that solution will work.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Mutliple SUM with dynamic SUM range within a Dynamic Data set

    Maybe a bit late, but here's another idea.
    Note that the formula in F2 is different from F3, Drag F3 Down
    The helper column (D) can be hidden with the grouping button.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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