+ Reply to Thread
Results 1 to 4 of 4

Sum values based on a range of data

  1. #1
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    Sum values based on a range of data

    Hoping to get some help on the spreadsheet I am currently working on.

    Basically, I just need a formula in my column D and column G.

    Want I wanted is the formula to automatically calculate commission values based on the parameters I set in cells B3 to C5.

    Such that it calculates in this way in column D:

    First : Compute the commission value of the amount in cell C8 that is less than or equal to $350,000 by the rate in cell D3, (simple stated, compute the first $350,000).
    Second : Compute the commission value of the amount equal to or greater than $350,001 up to $500,000 (or actual value if lower than $500,000) by rate in cell D4
    Third : Compute the commission value of the amount greater than $500,000 by rate in cell D5.

    As for column G,

    I would want to get the totals of the commission value per code name but without using column D as reference. Which means the formula in column G has to calculate the values on it’s own.

    Note that I would need the formulas to reference the upper cells (B3:D5) as that figures might change from time to time.

    Really hoping someone could help me out. Thank you thank you so much! 
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Sum values based on a range of data

    I think you calculation missing 1-2$

    D10 =(B4*D3)+((B5-(B4+1))*D4)+((C10-(B5+1))*D5)

    if remove commission rate D3:D5
    A10 =(B4)+((B5-(B4+1)))+((C10-(B5+1))) = $683,266.00 from $683,268.00

    same as D24:D26

    E27 =B4+(C25-B25)+(C26-B26) = $683,267.00 from $683,268.00


    Please try E8 with Ctrl+Shift+Enter

    =SUM((C8>$C$2:$C$4)*(C8-$C$2:$C$4)*IFERROR($D$3:$D$5-$D$2:$D$4,$D$3))
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    Re: Sum values based on a range of data

    Hi Bo,

    This is great! I was so worried I couldn’t get this done. Your timing is just perfect. Thank you for helping me out! Have a blessed day ahead. 

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Sum values based on a range of data

    MyStix01,

    Happy to help
    Thank for the rep and mark topic Solved.

+ 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. Replies: 2
    Last Post: 06-18-2016, 11:17 AM
  2. Select range of data based on values in colum A
    By eddiej90 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-07-2016, 06:12 PM
  3. [SOLVED] Transfer data based on values in range to related sheets
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2015, 05:24 AM
  4. Categorise data based on a range of values
    By webnise in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2015, 11:20 AM
  5. Selecting data range based on another column's values
    By ostbert in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-28-2014, 06:23 AM
  6. Axis range based on data values?
    By SueWithQuestion in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 10-04-2010, 02:50 PM
  7. [SOLVED] Data Validation based on range of values
    By jej1216 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2006, 11:40 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