+ Reply to Thread
Results 1 to 4 of 4

Bonus calculations using Nested IF's

  1. #1
    Registered User
    Join Date
    07-16-2008
    Location
    London
    Posts
    7

    Bonus calculations using Nested IF's

    Hi,

    I am working on a spreadsheet to calculate bonus for sales staff.
    The scenario is as follows:

    We have 30 Products. These products have 7 categories to sell into. Which are Recruitment, Property, Motors, Classified, LROP, NROP, Ents, Features.

    People can sell into any product and any category.

    When they do, we calculate the Yield of the space sold, against a target.

    Each product and category has its own commission rate.

    So if person X sells into Title A, and category recruitment, and they do not meet target they get zero commission, they beat target by 0-15% they get 1% of the revenue, if they beat it by 16-30% they get 2.5%, if they get 31-50% they get 5%, 51-75% they get 7.5%. and 75% plus they get 10% of revenue.

    But these bandings can vary for each category and title.

    I have got a formula for when the category and title does not vary, but not when it does, and I was hoping that someone can point me in the right direction.

    The attached spreadsheet is what I am using. The sheet where I am performing the calculations is called Bonus Calculations, heading is Rate.

    Any help is much appreciated.

    I am using excel 2007, but even the 64 If’s now allowed by this will not cope with what is required.

    Please can you help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    One solution

    The formula became quite long, but I saw that you knew how to use INDEX/MATCH, so OFFSET shouldn't be a problem.

    Here's what I've done:
    1. I changed the layout of Sheet Commission Rates to simplify the formula.
    2. I made one formula:
    =IF(H7<0;0;INDEX('Commission Rates'!$B$5:$B$39;MATCH(VLOOKUP(A7;'Lookup Tables and Target Rates'!$A$40:$B$53;2;0);'Commission Rates'!$A$5:$A$39;0)+MATCH(H7;OFFSET('Commission Rates'!$B$4;MATCH(VLOOKUP(A7;'Lookup Tables and Target Rates'!$A$40:$B$53;2;0);'Commission Rates'!$A$5:$A$39;0);MATCH(C7;'Commission Rates'!$C$3:$BH$3;0);COUNTIF('Commission Rates'!$A$5:$A$39;VLOOKUP(A7;'Lookup Tables and Target Rates'!$A$40:$B$53;2;0));1);1)-1))
    3. I copied the Category texts. Sheet:Commission Rates (see the yellow note)
    4. I made a Total in Sheet: Bonus Calculation. The top rows can be deleted if you prefere.

    Hope it helped
    //Ola
    Attached Files Attached Files
    Last edited by olasa; 07-16-2008 at 02:50 PM. Reason: From Code to Quote. Easier to view.

  3. #3
    Registered User
    Join Date
    07-16-2008
    Location
    London
    Posts
    7
    Thank you very much, it seems to be working great.

    I need to read about this offset function as its not something I have used before.

    Thank you once again!

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    ...

    That for the feedback.
    //Ola

    Google search for "Excel Offset Video".

+ 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