+ Reply to Thread
Results 1 to 3 of 3

Summing Columns until criteria is met then continue summing until another criteria is met.

  1. #1
    Registered User
    Join Date
    06-02-2015
    Location
    Utah, United States
    MS-Off Ver
    Excel 2013
    Posts
    2

    Summing Columns until criteria is met then continue summing until another criteria is met.

    Hello,

    New to posting to the forum, but a pro on looking up help via this forum. I would like to thank all those who contribute and share their insight.

    I have been stewing over this for the last few days and not getting anywhere.. so I am hopeful some of you excel pros can help me.

    I have a spreadsheet with a variety of transactions that took place on a given date. For example:

    4/1/2015 23
    4/2/2015 0
    4/3/2015 63
    4/4/2015 37
    4/5/2015 31
    4/6/2015 10
    4/7/2015 15
    4/8/2015 21
    4/9/2015 26
    4/10/2015 49
    4/11/2015 61
    4/12/2015 73
    4/13/2015 27
    4/14/2015 17
    4/15/2015 31
    4/16/2015 33
    4/17/2015 24
    4/18/2015 54
    4/19/2015 71
    4/20/2015 14
    4/21/2015 18
    4/22/2015 24
    4/23/2015 21
    4/24/2015 35
    4/25/2015 50
    4/26/2015 59
    4/27/2015 19
    4/28/2015 24
    4/29/2015 14
    4/30/2015 36
    Total 980

    I would like to know at which date the sum of the transactions totaled 124? Looking at the example I know that the sum of transactions was met/exceeded 124 on 4/5/2015. Once the criteria of 124 is met I want the addition of the transactions to continue to the next tier 249 and then 549 and so on and so on. Below is the table I am referencing each tier has different transaction criteria.

    LowLimit HighLimit
    0 124
    125 249
    250 549
    550 749
    750 949
    950 99999999

    I have added a spreadsheet to help illustrate my point. Any help would be appreciated. Thank you in advance.

    bcmb1b
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Summing Columns until criteria is met then continue summing until another criteria is

    Hi, welcome to the forum

    I did this with a helper column (D)
    D2=SUM($B$2:B2)
    copied down

    Then for your table...
    G
    H
    3
    124
    4/5/2015
    4
    249
    4/10/2015
    5
    549
    4/18/2015
    6
    749
    4/24/2015
    7
    949
    4/30/2015

    H3=INDEX($A$2:$A$31,MATCH(G3,$D$2:$D$31)+1)
    copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-02-2015
    Location
    Utah, United States
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Summing Columns until criteria is met then continue summing until another criteria is

    Ford,

    Thank you I appreciate the help. That worked great! Now for the second part. With in the spreadsheet (I'll reattach the spreadsheet with if statement built in) I have row totals in G34:L34 is there a way to make this formula dynamic? So when transactions reach a tier it automatically equates the transactions with the value for instance the first 124 transactions receive $10 per transaction. I have built an if statement (below) but I would like to keep the format how it is for our customer. As they won't understand the formula and want to see everything laid out in front of them.

    =IF(B34>=$N$5,($N$5-$M$5),IF(B34>=$M$5,(B34-$M$5)))*$O$5+IF(B34>=$N$6,($N$6-$M$6+1),IF(B34>=$M$6,(B34-$M$6+1)))*$O$6+IF(B34>=$N$7,($N$7-$M$7+1),IF(B34>=$M$7,(B34-$M$7+1)))*$O$7+IF(B34>=$N$8,($N$8-$M$8+1),IF(B34>=$M$8,(B34-$M$8+1)))*$O$8+IF(B34>=$N$9,($N$9-$M$9+1),IF(B34>=$M$9,(B34-$M$9+1)))*$O$9+IF(B34>=$N$10,($N$10-$M$10+1),IF(B34>=$M$10,(B34-$M$10+1)))*$O$10

    Excel Help.xlsx
    Last edited by bcmb1b; 06-03-2015 at 01:02 PM.

+ 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. [SOLVED] Need Help Summing Multiple Columns Based On Certain Criteria
    By aleboeuf in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-17-2013, 06:31 AM
  2. Summing from 2 criteria and multiple repeated columns
    By Bassteban in forum Excel General
    Replies: 7
    Last Post: 08-17-2011, 02:37 PM
  3. Issue with summing columns with multiple criteria
    By dcshaker in forum Excel General
    Replies: 4
    Last Post: 06-12-2011, 06:55 AM
  4. Summing multiple columns based on criteria
    By bigduke6 in forum Excel General
    Replies: 2
    Last Post: 04-06-2011, 10:45 AM
  5. Summing one column where criteria in two other columns are met
    By Rob in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-20-2006, 12:25 PM

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