+ Reply to Thread
Results 1 to 15 of 15

Thread: commission formula query

  1. #1
    Registered User
    Join Date
    09-15-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    19

    Unhappy commission formula query

    I am trying to work out the formula for the following:

    If C26 is between 15 and 19, then I'd like to add 100 to the total in H26.
    If C26 is 20 or above, then I'd like to add 150 to H26.
    If C26, D26, E26, F26 are all above 15 then I'd like to add an extra 100 to H26.

    Any help would be greatly appreciated!

    Thanks.

  2. #2
    Registered User
    Join Date
    08-22-2008
    Location
    London
    Posts
    20

    Re: commission formula query

    Add a commission lin into row 27

    C27 - =IF(C26<15,0,(IF(C26<20,100,150)))
    D27 - =IF(D26<15,0,(IF(D26<20,100,150)))
    E27 - =IF(E26<15,0,(IF(E26<20,100,150)))
    F27 - =IF(F26<15,0,(IF(F26<20,100,150)))
    G27 - =IF(((IF(C26>14,1,0))+(IF(D26>14,1,0))+(IF(E26>14,1,0))+(IF(F26>14,1,0)))=4,150,0)

    Thanks,
    Jon

  3. #3
    Registered User
    Join Date
    08-22-2008
    Location
    London
    Posts
    20

    Re: commission formula query

    Sorry

    G27 needs to be -

    =IF(((IF(C26>14,1,0))+(IF(D26>14,1,0))+(IF(E26>14,1,0))+(IF(F26>14,1,0)))=4,100,0)

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,202

    Re: commission formula query

    In H26 where is your formula write this:

    =formula + IF(A7>=20,150,IF(A7>=15,100,0)) + IF(AND(C26:F26>=15),100,0)

    and confirm with ctrl + shift + enter
    "Relax. What is mind? No matter. What is matter? Never mind!"

  5. #5
    Registered User
    Join Date
    09-15-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: commission formula query

    Is there any way around this without having to add an extra line below?
    It's only because I have to use this formula for 8 rows of different people and it might get a bit messy if I have to add a line below each person...

    Thanks!

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,202

    Re: commission formula query

    Can you upload example?
    "Relax. What is mind? No matter. What is matter? Never mind!"

  7. #7
    Registered User
    Join Date
    09-15-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: commission formula query

    commission screenshot.jpg

    here is a screen shot of my spreadsheet - does that help?

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,202

    Re: commission formula query

    And my formula doesn't work?

    in H26: =SUM(C26:G26)

    in I26 =IF(C26>=20,150,IF(C26>=15,100,0)) + IF(AND(C26:G26>=15),100,0)

    confirm with ctrl+shift+enter
    Last edited by zbor; 01-07-2010 at 07:01 AM.
    "Relax. What is mind? No matter. What is matter? Never mind!"

  9. #9
    Registered User
    Join Date
    09-15-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: commission formula query

    No, I entered the formula and tried entering my figures, however it just displayed #value!

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,202

    Re: commission formula query

    Did you confirm with ctrl+shift+enter ?
    "Relax. What is mind? No matter. What is matter? Never mind!"

  11. #11
    Registered User
    Join Date
    09-15-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: commission formula query

    Yes, I pressed those keys together after pasting the formula and still no joy

  12. #12
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,202

    Re: commission formula query

    well, can you upload example
    "Relax. What is mind? No matter. What is matter? Never mind!"

  13. #13
    Registered User
    Join Date
    08-22-2008
    Location
    London
    Posts
    20

    Re: commission formula query

    In Cell I27 put the following formula in:

    =(IF(C26<15,0,(IF(C26<20,100,150))))+(IF(D26<15,0,(IF(D26<20,100,150))))+(IF(E26<15,0,(IF(E26<20,100 ,150))))+(IF(F26<15,0,(IF(F26<20,100,150))))+(IF(G26<15,0,(IF(G26<20,100,150))))+J26

    in J26 put the formula =IF(((IF(C26>14,1,0))+(IF(D26>14,1,0))+(IF(E26>14,1,0))+(IF(F26>14,1,0)))=4,100,0) and make the text white so people cannot see it....

    I know the formula is large but it will get the desired effect!

  14. #14
    Registered User
    Join Date
    08-22-2008
    Location
    London
    Posts
    20

    Re: commission formula query

    Put formula into I26 even....

  15. #15
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,202

    Re: commission formula query

    Here look example:

    Book1.xls

    Can't figure out what's not working
    "Relax. What is mind? No matter. What is matter? Never mind!"

+ 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.2.0