Forum Discussion

Doug Childress's avatar
Doug Childress
Copper Contributor
Apr 21, 2018

I need help with a Sumif formula

Hi Everyone

 

I have 20 sales reps and we are kicking off a new commissions structure, whereby the sales rep is rewarded for selling more than 70 subscriptions in a month.  If they sell =< 70 subscriptions then they only receive their base pay.

 

For the life of me I cannot figure out how to create a formula to calculate this.....

 

 

Below is a example of what I am trying to achieve:

 

If a Sales Rep sells =<70 seats per month, then their commissions is $0

 

If a Sales Rep sells =<110 seats per month, then their commissions should be calculated at the full number of subscriptions or $6.00 X 110 or $660.00

 

Start of Month # of Seats SoldEnd of Month # of Seats SoldCommissions Payable Per Seat
070$                         
0100$5.00
0120$6.00
0150$7.50
0200$9.00
0>201$12.00

 

Help :-)

 

  • Detlef_Lewin's avatar
    Detlef_Lewin
    Silver Contributor

    Doug,

     

    build a lookup table and use LOOKUP() to find the value.

     

    =LOOKUP(D2,$A$1:$B$7)*D2

     

    NumberCommission   
    0$0,00 110$660,00
    71$5,00   
    101$6,00   
    121$7,50   
    151$9,00   
    201$12,00   

     

     

    • Doug Childress's avatar
      Doug Childress
      Copper Contributor

      Thank you Detlef, I really appreciate the prompt assistance - works great!

    • Doug Childress's avatar
      Doug Childress
      Copper Contributor

      Thanks you Haytham, I've been chasing my tail with sumifs and other formulas....

    • Doug Childress's avatar
      Doug Childress
      Copper Contributor

      Hi Gents

       

      Just a quick question, how do I avoid ending up with #N/A as an output, where a sales rep doesn't sell anything in a given month?

       

      Please disregard my last question, I figured out the issue.

    • Doug Childress's avatar
      Doug Childress
      Copper Contributor

      Hi Gents

       

      Just a quick question, how do I avoid ending up with #N/A as an output, where a sales rep doesn't sell anything in a given month?

  • yasir uddin's avatar
    yasir uddin
    Copper Contributor

    Hi Doug, 

     

    This question can be solved with lookup formula.

     

    It can also be solved using a combination of 'match' and 'index' functions, which are my favorite for various set of problems. I've shown in the file attached.

     

    I'm attaching the worksheet with both the formulas in it. I've used Haytam's Excel template to demonstrate. 

     

Resources