+ Reply to Thread
Results 1 to 11 of 11

2 Tiered Commisions Formula

  1. #1
    Registered User
    Join Date
    12-01-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    8

    2 Tiered Commisions Formula

    Hiya,

    I'm Looking for help with a formula used to calculate commisions.

    The problem is that the commisions are 2 tiered depending on type of product sold (Low end or high end)
    Low end products are identifed by the fact that their stockcode starts with either C,F,G,H,J,T eg: F-4050
    High end products are identified by the fact that their stockcode starts with either A,E,K,w eg: E-2074

    First commision is determined by summing the ValuetoDate column for each AccountCode (Low end and highend included)
    The same AccountCode can appear multiple times in the table.
    This total is then compared to a commisions table with the following criteria....see table1

    Low end product valuetoDate are summed to Give lowend Total

    Low end commision is then = lowend total x low end commision %

    Second commision is also determined by summing the ValuetoDate column for each AccountCode (Low end and highend included)
    This same total is then compared to a commisions table with the following cirteria....see table2

    High end product valuetoDate are summed to yield highend Total

    High end commision is = highend total x high end commision %


    The 2 commisions are then added together to give a total commison per Accountcode..

    can anyone help me with the forumala in either access or excel or SQL.
    I have attached some example data containing info on 2 accountcodes

    Any help greatlty appretiated..

    Ray


    Table1

    Total Sales Value Commission %
    0.00 - 300 0%
    301 - 1000 5%
    1001 - 2000 7.5%
    2001 - 3500 10%
    3501 - 4500 12%
    4501 - 7500 15%
    7501+ 20%



    Table2

    Total Sales Value Commission %
    0.00 - 300 0%
    300 - 1000 5.0%
    1001+ 7.5%
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: 2 Tiered Commisions Formula - Please Help !

    im not 100% sure i have full understood what your trying to do but take a look at this and see what you think. it might help you in your solution if i havnt answered it (also i noticed your in excel 2003 (maybe) so i have used to different versons of the commison one using IFERROR() the other using IF(ISERROR())

    hope this helps

    regards

    Twiggy

    Transactions (1).xls
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  3. #3
    Registered User
    Join Date
    12-01-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: 2 Tiered Commisions Formula - Please Help !

    Thx so much for the reply,
    I have attached excel again, I am using 2007.
    On the second sheet I have added an example calculation for 1 accountcode.
    I also had to add a description field.

    Overall accountcode total is compared to BOTH tables to get the HE LE bands.
    HE Products are totaled and multiplied by respective BAND
    LE Products are totaled and multipled by respective BAND

    Both are added together for a total commision of 1066.40

    Any more help greatly appretiated.

    Ray..
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: 2 Tiered Commisions Formula - Please Help !

    that really helped.

    have a look now i think i got what you want.

    i have done a summary row and then also included the cells in "Mega"formula mode where i have put all the formulas in to one cell.

    this means you can shose what you want to display (just the account and total comminsion or the account no and the sales total. and what ever you delete shouldnt effect the cells)

    hope this fixes what you need

    TransactionsEXAMPLE.xlsx

  5. #5
    Registered User
    Join Date
    12-01-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: 2 Tiered Commisions Formula - Please Help !

    Hiya Twiggy, this looks really good !
    But how do I apply the formula dynamically.
    ie: the example I sent you was for 2 accountcodes.
    Cell data goes from A2 to A50 So I can see from you formulas that you mention $50 to represent the last cell?
    How do I apply the formula to an excel sheet containing hundreds of account codes where the last cell is maybe $600?
    The idea is that the table will change daily so will always contain more rows.

    Thx again, we are getting close now !!
    ray..

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: 2 Tiered Commisions Formula

    do you have a list off accounts of is that going to be altering all the time also?

    if you have a list then you set it up as i have there and then drag it down to and then it will check that account.

    however if you dont have a list and that will constantly update i will need to sort you out another formula

    (also to change the ranges alter the $50 to what ever you need it doent have to be exact either as long as its more (so for 600 lines you could use 1000 but not 599)

  7. #7
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: 2 Tiered Commisions Formula

    see the attached. i have added a helper column incase your accounts arent static and then linked that to the table i have also altered the second table to allow up to 1000 rows see what you think

    obviously you still may need to tweak it but that should sort you out now

    TransactionsEXAMPLE (1).xlsx

  8. #8
    Registered User
    Join Date
    12-01-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: 2 Tiered Commisions Formula

    Thats it ! , I also tried earlier adding more account codes but the formula tables (top and bottom) all returned zero.
    Now that you added the helper column the bottom formula table is working !, top formula is still zero.
    I will test the data now and get back to you.
    What is the helper file doing that makes this work? the fact that account codes are not static ?
    Thanks so much for your help ..
    Ray..

  9. #9
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: 2 Tiered Commisions Formula

    if you had a list of account and they didnt change you wouldnt need the helper

    the helper columns counts how many times an account code is used as a running total. if it is the firs time its used then i shows what row this happens

    then using the index and small you can pull in the account numbers used.

    these are then used in the calculations i provided earlier.

    i know some this is unclear but over time you should be able to figure it out.

    i wont be on until tomorrow i think so i wont be able to help you further but im glad i got you as far as i did.

    if you need more assistance ill gladly help you out tomorrow.

    regards

    Twiggy

    Ps the top table didnt have the ranges adjusted so it wont pick up all the information (they still show $50) that might clear that up for you

    if all that answers your thread remember to mark it solved and a star tap to anyone that helps is always appreciated
    Last edited by twiggywales; 10-18-2012 at 12:34 PM.

  10. #10
    Registered User
    Join Date
    12-01-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: 2 Tiered Commisions Formula

    Thank you so much , very much appretiated.

    Ray..

  11. #11
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: 2 Tiered Commisions Formula

    edited the last post (while you wever posting i guess lol) too i think i figured out why the top wasnt working for you

+ 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