+ Reply to Thread
Results 1 to 11 of 11

cannot calculate formulas correctly for commissions

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    south carolina
    MS-Off Ver
    Excel 2010
    Posts
    12

    cannot calculate formulas correctly for commissions

    hello,

    i am new to excel and i happened to stumble upon this mecca of excel help! glad to be here.

    my dilemma revolves around accurately calculation each salesman's commission based off of several factors:

    inventory type:
    SR Broker
    SR Inventory
    Corp. Inventory
    Corp. Broker

    i use the first sheet, USA to enter the data. if sales rep. sells a machine that is a SR Broker or SR Inventory, i use a drop down to mark machine sold in USA and consult the subtotal (column X) on sheet 2, USA CALCULATIONS. i then need to consult the table found in $F$3:$G$11 in VARIABLES, sheet 3.

    each salesmen listed in column F and his specific % is listed next to him in column G.

    if a salesman sells a Corp. Inv. or Corp. Broker piece of machinery, salesman gets a flat fee based off of the net sales (which i call subtotal) the subtotal reflects all expenses involved.
    if column X<= 3999.99 = $500
    <= 5999.99 = $1000
    >= 6000.00 = $1500

    this is the current formula our it guy made for us but it is not calculating correctly.
    =IF(ISERROR((IF(C3="Corp Inventory",((IF((AA3-X3)>1999.99,IF((AA3-X3)<4000,500,"0"),"0"))+(IF((AA3-X3)>3999.99,IF((AA3-X3)<6000,1000,"0"),"0"))+(IF((AA3-X3)>5999.99,IF((AA3-X3)<40000000,1500,"0"),"0"))),IF(C3="SR Inventory",((AA3-X3)*VLOOKUP(AF3,VARIABLES!$F:$G,2,FALSE)),0)))),0,((IF(C3="Corp Inventory",((IF((AA3-X3)>1999.99,IF((AA3-X3)<4000,500,"0"),"0"))+(IF((AA3-X3)>3999.99,IF((AA3-X3)<6000,1000,"0"),"0"))+(IF((AA3-X3)>5999.99,IF((AA3-X3)<40000000,1500,"0"),"0"))),IF(C3="SR Inventory",((AA3-X3)*VLOOKUP(AF3,VARIABLES!$F:$G,2,FALSE)),0)))))


    another column is called MF Commission column Q. i need to construct a formula in this column that does the following: this guy gets 10% on all SR Broker/SR Inventory sold machines.
    if it is Corp. Inv./Corp. Broker he gets 20%. at the end of the year he gets a 1% bonus based off of the gross sales.

    this is the formula for the MF column and it is not calculating correctly, either.

    =IF(AF3="Blake",(0),IF(AF3="Mike",(0),(IF(ISERROR((IF(C3="Corp Inventory",((AA3-X3)*20%),IF(C3="SR Inventory",((AA3-X3)*10%),0)))),0,((IF(C3="Corp Inventory",((AA3-X3)*20%),IF(C3="SR Inventory",((AA3-X3)*10%),0))))))))


    note: blake is owner so he may sell machines, but he does not have a commission rate.

    any help would be greatly appreciated. below i have attached a sample of our chart with formulas.

    thank you!
    Attached Files Attached Files

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

    Re: cannot calculate formulas correctly for commissions

    So which is it;
    if column X<= 3999.99 = $500, <= 5999.99 = $1000, >= 6000.00 = $1500
    OR
    (AA3-X3)>1999.99, (AA3-X3)>3999.99, (AA3-X3)>5999.99
    At a glance, there are shorter ways to write the formula and your "0" should not be in quotes but want to make sure we're doing the right calculation first.
    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

  3. #3
    Registered User
    Join Date
    10-30-2012
    Location
    south carolina
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: cannot calculate formulas correctly for commissions

    Quote Originally Posted by ChemistB View Post
    So which is it; OR
    At a glance, there are shorter ways to write the formula and your "0" should not be in quotes but want to make sure we're doing the right calculation first.

    AA3-X3 option

    thank you

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

    Re: cannot calculate formulas correctly for commissions

    If you are using Excel 2010 and don't need to be 2003 compatable;
    =IF(OR(AF3={"Blake","Mike"}),0, IFERROR(IF(C3="Corp Inventory",(AA3-X3)*20%,IF(C3="SR Inventory",(AA3-X3)*10%,0)),0))
    Does that work for you?

  5. #5
    Registered User
    Join Date
    10-30-2012
    Location
    south carolina
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: cannot calculate formulas correctly for commissions

    i think that might do it for the MF category. any thoughts on the salesmen calculation?
    thank you!

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

    Re: cannot calculate formulas correctly for commissions

    Try this
    =IF(OR(C3={"SR Inventory","SR Broker"}),(AA3-X3)*VLOOKUP(AF3,VARIABLES!$F:$G,2,FALSE), IF(OR(C3={"Corp Inventory","Corp Broker"}), LOOKUP((AA3-X3),{0,2000,4000,6000}, {0,500,1000,1500}),""))
    This says (just so we get this straight)
    If it's an SR Inventory or SR Broker, calculate it based on the Variables salesperson table,
    If it's a Corp Inventory or Corp Broker, then between 0 and 1999.99 it's 0, between 2000 and 3999.99 it's $500, between 4000 and 5999.99 it's $1000 and over 6000 it's 1500.
    If C3 is none of the above, put a blank ("")
    Does that work for you?

  7. #7
    Registered User
    Join Date
    10-30-2012
    Location
    south carolina
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: cannot calculate formulas correctly for commissions

    ok, we are almost there!!! the only hiccup i see is that in the SR Commission column, Column O-- it still counts Mike as a salesman and therefore gives him the salesman 500, 1000 or 1500.. and not the 10% of (AA-X)... any thoughts?

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

    Re: cannot calculate formulas correctly for commissions

    =IF(OR(AF3={"Mike","Blake"}),0,IF(OR(C3={"SR Inventory","SR Broker"}),(AA3-X3)*VLOOKUP(AF3,VARIABLES!$F:$G,2,FALSE), IF(OR(C3={"Corp Inventory","Corp Broker"}), LOOKUP((AA3-X3),{0,2000,4000,6000}, {0,500,1000,1500}),"")))
    How's that?

  9. #9
    Registered User
    Join Date
    10-30-2012
    Location
    south carolina
    MS-Off Ver
    Excel 2010
    Posts
    12

    Smile Re: cannot calculate formulas correctly for commissions

    THANK YOU!! i had a little issue, but i tweaked the formula to this: =IF((AF16={"Blake"}),0, IFERROR(IF(OR(C16={"Corp Inventory","Corp Broker"}),(AA16-X16)*20%,IF(OR(C16={"SR Inventory","SR Broker"}),(AA16-X16)*10%,0)),0))

    and now it works!! thank you so much for your patience and help!!!

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

    Re: cannot calculate formulas correctly for commissions

    Okay, you can get rid of the brackets {} around Blake. Glad to help.

  11. #11
    Registered User
    Join Date
    10-30-2012
    Location
    south carolina
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: cannot calculate formulas correctly for commissions

    i am starting on year end accounting and i have another question..

    do you have a recommendation of how i can tweak the formula you gave me for the salesmen if there is a split commission? (co-broker) it would be split 50/50. there are some circumstances when it is a machine that is either SR Broker/ SR Inv. or Corp. Broker/ Corp. Inv.

    the commission would then need to be applied to both salesmen.

    any advice would be greatly appreciated!

    thank 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