+ Reply to Thread
Results 1 to 8 of 8

Capped money based on groups and months.

  1. #1
    Registered User
    Join Date
    07-09-2016
    Location
    UK
    MS-Off Ver
    2013, 2007
    Posts
    6

    Unhappy Capped money based on groups and months.

    Hi there,

    I have grouped the date into bands 0,1,2.

    If it band 0, then it is just equal to the paid_incurred.
    If it in band 1 or 2 in each dev_month, the paid incurred is capped by 150, then the rest of the money goes to the next column which is paid by someone else. I tried using sumifs and ifs functions in conjunction to produce it based on the band and dev_month, but I am a slight problem with it.

    On the sheet, you can also see the expected result I did which was very tedious.

    Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-09-2013
    Location
    Iran
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Capped money based on groups and months.

    Hi
    Sorry but i don't get it
    explain more specially about band 1 and 2 !
    thanks
    Islam = Peace
    Shia = Peace
    Iran = Peace

  3. #3
    Registered User
    Join Date
    07-09-2016
    Location
    UK
    MS-Off Ver
    2013, 2007
    Posts
    6

    Re: Capped money based on groups and months.

    I think I have probably writing a bad example in my sheet, because I deleted some parts off which mad the dev_mth inconsistent with the dates, ignore that for now.

    Band 1 is the order been purchased between 03/12/2016-07/12/2016. and Band 2 is order been order between 25/12/16 - 29/12/16.

    Each dev_month within each band has a capped of £150 excluding band 0.

    So if an order take place on 03/12 (2nd row) is band 1 and has dev_month 1 for £50. There is another order at row 18, band 1 and dev_month 1 for £130. The cumulative amount is £180 for that band 1 and dev_mth 1. As you can see on row 18 on the xol_incurred is £30, because my payment is capped at 150 during that month and dev_month.

    Does this help?

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,217

    Re: Capped money based on groups and months.

    In H2

    =IF($E2=0,$C2,IF(SUMIFS($C$2:$C2,$D$2:D2,$D2,$E$2:$E2,E2)>150,MAX(150-(SUMIFS($C$2:$C2,$D$2:$D2,D2,$E$2:$E2,$E2)-$C2),0),$C2))

    In I2

    =$C2-$H2

    Custom format cells as 0;;;@
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-09-2013
    Location
    Iran
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Capped money based on groups and months.

    Hi
    Ok it looks it is solved(Mr. Topley' answer)! i did it in opposite way and i think it is wrong!
    this time i'm wanna ask question!
    in one of the row that i've highlighted there is a difference do you know why !?!
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-09-2016
    Location
    UK
    MS-Off Ver
    2013, 2007
    Posts
    6

    Re: Capped money based on groups and months.

    Quote Originally Posted by JohnTopley View Post
    In H2

    =IF($E2=0,$C2,IF(SUMIFS($C$2:$C2,$D$2:D2,$D2,$E$2:$E2,E2)>150,MAX(150-(SUMIFS($C$2:$C2,$D$2:$D2,D2,$E$2:$E2,$E2)-$C2),0),$C2))

    In I2

    =$C2-$H2

    Custom format cells as 0;;;@
    Thank you!!!! =)

  7. #7
    Registered User
    Join Date
    07-09-2016
    Location
    UK
    MS-Off Ver
    2013, 2007
    Posts
    6

    Re: Capped money based on groups and months.

    Quote Originally Posted by rahi_feri View Post
    Hi
    Ok it looks it is solved(Mr. Topley' answer)! i did it in opposite way and i think it is wrong!
    this time i'm wanna ask question!
    in one of the row that i've highlighted there is a difference do you know why !?!
    I think the extra 10 is coming from row 21?

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,217

    Re: Capped money based on groups and months.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. total money spent only for months in 2014
    By rybussell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-06-2014, 09:06 AM
  2. Replies: 4
    Last Post: 09-03-2013, 10:10 AM
  3. Sales pipeline- Dividing money across months
    By tfboland in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-21-2013, 05:08 PM
  4. Calculate a capped deals amount based on client
    By Beautiful2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2013, 03:49 PM
  5. Calculate a capped deals amount based on client
    By Beautiful2 in forum Excel General
    Replies: 3
    Last Post: 05-11-2013, 01:33 PM
  6. Replies: 3
    Last Post: 01-21-2013, 12:22 PM
  7. Formula looking a date and groups it into months
    By Rosiepoo in forum Excel General
    Replies: 2
    Last Post: 06-30-2011, 07:07 AM

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