+ Reply to Thread
Results 1 to 20 of 20

Payout Calculation

  1. #1
    Registered User
    Join Date
    09-23-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    23

    Payout Calculation

    For the payout of credits of multiple people over time, i wanted to setup a table where the “Available Payout Amount” is divided through the “Current Number Of People”. So everybody gets the same, unless its the last installment of a person and the amount is lower than the Divided Payout Amount. That’s where i’d need to use the difference of unused amounts for last installments and distribute it to the others again.

    How is that being done ? I manually calculated the values in the following screenshot. A sample .xls for Excel 2003 would be very cool.

    2014_01_06_23_26_10.jpg

    Regards,
    Frank

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Payout Calculation

    A sample .xls for Excel 2003 would be very cool (indeed)

    To attach a Workbook
    (please do not post pictures of worksheets)
    • Click Advanced (next to quick post),
    • Scroll down until you see "Manage Attachments",
    • Click that then select "add files" (top right corner).
    • Click "Select Files" find your file, click "open" click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Click "Done" at bottom right to close the Attachment Manager.
    • Click "Submit Reply"
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    09-23-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Payout Calculation

    Hi ProtonLeah,
    do you mean i should attach the manually created table ?

    Regards,
    Frank

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Payout Calculation

    Yes, that way we can see how you have it laid out and what you want (show us) and then we can return it with formulas.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    09-23-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Payout Calculation

    ok thx, have attatched it.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Payout Calculation

    This one's going to take some thought. ;/

  7. #7
    Registered User
    Join Date
    09-23-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Payout Calculation

    k thx, yea i was thinking and thinking about how to determine who has a rest amount and how to trigger to re-calculate the other people new and how to find out how many they are without additional columns, and came to the conclusion that it probably needs VBA to solve such a thing.

  8. #8
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Payout Calculation

    Quote Originally Posted by Frank1000 View Post
    how to find out how many they are without additional columns
    Is it not acceptable to add columns for the balance after each payment? It makes the formulas much simpler!
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  9. #9
    Registered User
    Join Date
    09-23-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Payout Calculation

    Hi Isandol, sure its ok, just was thinking if necessary. But yea the balances by each payment are good extra info for viewing anyways.

    Thx

  10. #10
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Payout Calculation

    In that case you may try this change to your file, although I am sure there will be more elegant suggestions to come.
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Payout Calculation

    Best I've come up with is:
    =IF(2*$B2-SUM($B2:B2)<=0,0,IF(2*$B2-SUM($B2:B2)<=C$6/IF(COLUMN(B2)=2,3,COUNTIF(B$2:B$4,MAX(B$2:B$4))),2*$B2-SUM($B2:B2),(C$6-IF(2*$B$2:$B$4-CHOOSE(ROW($A$1:$A$3),SUM($B$2:B$2),SUM($B$3:B$3),SUM($B$4:B$4))<=0,0,SUM(IF(2*$B$2:$B$4-CHOOSE(ROW($A$1:$A$3),SUM($B$2:B$2),SUM($B$3:B$3),SUM($B$4:B$4))<C$6/IF(COLUMN(B2)=2,3,COUNTIF(B$2:B$4,MAX(B$2:B$4))),2*$B$2:$B$4-CHOOSE(ROW($A$1:$A$3),SUM($B$2:B$2),SUM($B$3:B$3),SUM($B$4:B$4)),0))))/SUM(IF(2*$B$2:$B$4-CHOOSE(ROW($A$1:$A$3),SUM($B$2:B$2),SUM($B$3:B$3),SUM($B$4:B$4))>C$6/IF(COLUMN(B2)=2,3,COUNTIF(B$2:B$4,MAX(B$2:B$4))),1,0))))

  12. #12
    Registered User
    Join Date
    09-23-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Payout Calculation

    ok thx, does the solution allow to add / remove more people ?

  13. #13
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Payout Calculation

    sort of, to extend to four would be:
    =IF(2*$B2-SUM($B2:B2)<=0,0,IF(2*$B2-SUM($B2:B2)<=C$6/IF(COLUMN(B2)=2,3,COUNTIF(B$2:B$5,MAX(B$2:B$5))),2*$B2-SUM($B2:B2),(C$6-IF(2*$B$2:$B$5-CHOOSE(ROW($A$1:$A$4),SUM($B$2:B$2),SUM($B$3:B$3),SUM($B$4:B$4),SUM($B$5:B$5)<=0,0,SUM(IF(2*$B$2:$B$5-CHOOSE(ROW($A$1:$A$4),SUM($B$2:B$2),SUM($B$3:B$3),SUM($B$4:B$4),SUM($B$5:B$5)<C$6/IF(COLUMN(B2)=2,3,COUNTIF(B$2:B$5,MAX(B$2:B$5))),2*$B$2:$B$5-CHOOSE(ROW($A$1:$A$4),SUM($B$2:B$2),SUM($B$3:B$3),SUM($B$4:B$4),SUM($B$5:B$5),0))))/SUM(IF(2*$B$2:$B$5-CHOOSE(ROW($A$1:$A$4),SUM($B$2:B$2),SUM($B$3:B$3),SUM($B$4:B$4),SUM($B$5:B5)>C$6/IF(COLUMN(B2)=2,3,COUNTIF(B$2:B$5,MAX(B$2:B$5))),1,0))))

    I think.

    The problem would be that as it stands the choose() function needs Sum($B$2:B$2),Sum($B$3:B$3) writing out for every one individually so if you ahd say 20 names, the formula would become too large. You would need another way of constructing the array created by the choose function to use it with a lot of names.

  14. #14
    Registered User
    Join Date
    09-23-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Payout Calculation

    ya i came to the same conclusion, that IF chains are not dynamic and limited in capacity. Unfortunately i have not near enough knowledge for VBA to handle such a script.

  15. #15
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Payout Calculation

    How many payment columns are there likely to be, it might be possible to rearrange it so the number of people is dynamic and the payment columns are not.

  16. #16
    Registered User
    Join Date
    09-23-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Payout Calculation

    ok, yes it can be hundreds of people.

  17. #17
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Payout Calculation

    I was asking how many numbers of payouts there were likely to be....

  18. #18
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Payout Calculation

    If you prefer a VBA solution, there is one attached.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    09-23-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Payout Calculation

    ah ok, infinite number ... basically ongoing.

  20. #20
    Registered User
    Join Date
    09-23-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Payout Calculation

    wow that works like magic ! need some time to figure out how it works.
    Thank you :-)

+ 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 a formula which will show a payout grid.
    By aj34321 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-23-2013, 03:12 AM
  2. Stair Step Compensation Payout Calculation
    By puker33 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-10-2013, 11:47 PM
  3. Poker Payout Calculator
    By Ridgy in forum Excel General
    Replies: 3
    Last Post: 01-11-2010, 09:39 PM
  4. Life Insurance - Top Payout
    By jackla12 in forum Excel General
    Replies: 0
    Last Post: 08-23-2006, 07:40 AM
  5. [SOLVED] How to make a payout table
    By Chris Barnes in forum Excel General
    Replies: 4
    Last Post: 09-20-2005, 12: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